3
Kevin Brooks MSc., PhD.
Structure of the Book
4
Kevin Brooks MSc., PhD.
Summarizing data
5
Kevin Brooks MSc., PhD.
Binary Response Variable
Examples of binary response variables
• Classification of a respondent as a current smoker:
“yes” or “no”
• Gender: “male” or “female”
• Whether a patient survives five or more years:
“survived” or “did not survive”
• Whether the subject developed a blood clot: “case”
or “non-case”
6
Kevin Brooks MSc., PhD.
Binary Response Variable, cont
7
Kevin Brooks MSc., PhD.
Proportions
• Conditions:
– Single SRS
– Response variable is binary.
• Describe the proportion of successes in the
sample, denoted “p-hat”:
x
pˆ =
n
• where x = no. of successes and n = sample size
8
Kevin Brooks MSc., PhD.
Proportion, cont
x 2
pˆ = = 0.1 (or
= 0.2 (or10%)
20%)
n 10
9
Kevin Brooks MSc., PhD.
A Proportion is an Average of 0s and 1s
Observation X
Here are the data in tabular form with
1 1
the variable coded 1= risk factor present 2 0
and 0 = risk factor absent. Note that 3 0
with n =10 and ∑x = 2 and sample mean 4 0
5 0
x=
∑ x
=
2 6
7
0
0
n 10 8 0
The sample mean and sample proportion 9 1
are equivalent when we think of binary 10 0
responses in this way. ∑x = 2
10
Kevin Brooks MSc., PhD.
Incidence and Prevalence
11
Kevin Brooks MSc., PhD.
Illustrative Example: Prevalence of Smoking
17
pˆ = = .2982
57
• Calculations should carry at least 4 significant digits.
For reporting purposes, the APA publication guide
(2001) recommends that proportions be converted to
percentages and reported with one-decimal accuracy
(e.g., 29.8%).
12
Kevin Brooks MSc., PhD.
Inference about a Proportion
13
Kevin Brooks MSc., PhD.
Simulation of a sampling distribution of proportions showing
superimposed Normal approximation.
14
Kevin Brooks MSc., PhD.
Sampling Distribution of a Proportion
15
Kevin Brooks MSc., PhD.
Sampling distribution of a proportion, Normal approximation
⎛ pq ⎞
pˆ ~ N ⎜ p, ⎟
⎜ n ⎟
⎝ ⎠
where q = 1 − p
16
Kevin Brooks MSc., PhD.
Hypothesis Test, Normal Approximation Method
17
Kevin Brooks MSc., PhD.
Illustration: Hypothesis Test
B. z = pˆ − p0 .2982 − .25
stat = = 0.84
p0 q0 n .25 ⋅ .75 57
19
Kevin Brooks MSc., PhD.
Exact Binomial Method
21
Kevin Brooks MSc., PhD.
Thank You
For Viewing
The End