Lecture 6-3 - Simple Random Sampling
Lecture 6-3 - Simple Random Sampling
Lecture 6-3 - Simple Random Sampling
Reading Assignment:!
Scheaffer, Mendenhall, Ott, & Gerow!
2/1/13
Chapter 4! 1
Goals for this Lecture!
2/1/13
2
Definition!
2/1/13
4
How to Draw a SRS!
• Easiest way: !
– Assign every element in the sampling frame a
uniformly distributed random number (say
between 0 and 1)!
– Sort the list according to the random numbers!
• Either ascending or descending, doesn’t matter!
– Then take the first n elements!
• Don’t try to actually generate all possible
combinations of n elements out of N…!
• Chapter 4 describes other manual ways to do
this using tables of random numbers!
2/1/13
5
Example!
UNSORTED
SORTED
2/1/13
6
Note the Difference!
2/1/13
7
Horvitz-Thompson Under SRS!
2/1/13
8
But What If Population Is Finite?!
2/1/13
“finite population correction” or fpc! 9
Finite Population Correction!
• For various
sample sizes,
margins of error
for an infinite-
sized population
and one with
N=300
– Binary question!
– Conservative
p=0.5 assumption!
2/1/13
11
Another Example!
2/1/13
13
Mean Estimation Summary!
1 n
• Estimator for the mean:! y = ∑ yi
n i =1
⎛ n ⎞ s 2
( ) ⎜⎝ N ⎟⎠ n
y = 1−
• Variance of y :! Var
⎛ n ⎞ s 2
( ) ⎜⎝ N ⎟⎠ n
y = 2 1−
2 Var
2/1/13
14
Estimating Totals!
N n
• Estimator for the total:! τˆ = N × y = ∑ yi
n i=1
⎛ n ⎞ s 2
( ) ( Ny ) = N 2 ⎜⎝ 1− N ⎟⎠ n
τˆ = Var
• Variance of τˆ :! Var
⎛ n ⎞ s 2
2 Var ()
τˆ = 2N 1−
⎜⎝ N ⎟⎠ n
2/1/13
15
Estimating Proportions!
1 n
• Estimator for the proportion:!pˆ = y = ∑ yi
n i =1
⎛ n ⎞ p̂ (1− p̂ )
• Variance of p̂ :! Var ( p̂ ) = ⎜ 1− ⎟
⎝ N⎠ n
⎛ n ⎞ p̂ (1− p̂ )
2 Var ( p̂ ) = 2 ⎜ 1− ⎟
⎝ N⎠ n
2/1/13
16
Sample Size Calculations (w/ fpc)
for Estimating Means !
• Typically, we want to determine a sample size
to achieve a particular margin of error B
• So, solving the following for n
⎛ N −n ⎞σ
2
2 ⎜ ⎟ =B
⎝ N −1 ⎠ n
gives!
Nσ 2
n= 2
B ( N − 1) 4 + σ 2
• This is the number of respondents required!
– Will need to inflate to account for nonrespondents!
2/1/13
17
Sample Size Calculations (w/ fpc)
for Estimating Totals !
• Proceed as before, but use the expression for
the margin of error for totals!
• That is, solve the following for n
⎛ N − n ⎞ σ 2
2N ⎜ ⎟ =B
⎝ N −1 ⎠ n
• ! gives!
Nσ 2
n= 2
B ( N − 1) 4 N 2 + σ 2
• Same assumptions:!
– Binary question!
– p=0.5
• If we’re going to
survey ~900 people
out of 1500, might
as well do them all?!
– Plus, 1500 gives
some insurance if
response rate < 0.7!
2/1/13
21
Doing the Calculations Directly!
2/1/13
23
Example!
2/1/13
24
How Does That Work?!
Np (1 − p )
n= 2
B ( N − 1) 4 + p (1 − p )
⎛ N ⎞
4⎜ ⎟ p (1 − p )
N −1 ⎠
= ⎝
p (1 − p )
B +4
2
N −1
⎛ N ⎞
⎜ ⎟
−
= ⎝ ⎠
N 1
(for p = 1/ 2)
1
B +
2
N −1
1
≈ 2 for large N
B
2/1/13
25
Take-Aways !!
2/1/13
26
What We Have Covered!
2/1/13
27