Sampling and Randomization Techniques
Sampling and Randomization Techniques
Marc Shotland
MIT
Outline
A. 1
100%
B. 2
C. 3
D. 4
E. 5
F. 6
0% 0% 0% 0% 0%
A. B. C. D. E. F.
J-PAL | S AMPLING AND S AMPLE S IZE 5
Roll one die 10 times.
Register your result each time
A. 1
40% 40%
B. 2
C. 3
D. 4
E. 5
20%
F. 6
0% 0% 0%
A. B. C. D. E. F.
J-PAL | S AMPLING AND S AMPLE S IZE 6
Rolling 1 die:
possible results & probability
1/6
0
1 2 3 4 5 6
A. 1
B. 2 13% 13% 13% 13% 13% 13% 13% 13%
C. 3
D. 4
E. 5
F. 6
G. All of the above
H. None of the above
A. B. C. D. E. F. G. H.
J-PAL | S AMPLING AND S AMPLE S IZE 8
Rolling 1 die:
“Expected Value”
1/6
0 3.5
1 2 3 4 5 6
1/6
0
2 3 4 5 6 7 8 9 10 11 12
Frequency 1/36 1/18 1/12 1/9 5/36 1/6 5/36 1/9 1/12 1/18 1/36
2 3 4 5 6 7
3 4 5 6 7 8
4 5 6 7 8 9
Die 2
5 6 7 8 9 10
6 7 8 9 10 11
7 8 9 10 11 12
1/4
1/6
Likelihood
0
1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6
Frequency 1/36 1/18 1/12 1/9 5/36 1/6 5/36 1/9 1/12 1/18 1/36
2.5
0
1 1 1/3 1 2/3 2 2 1/3 2 2/3 3 3 1/3 3 2/3 4 4 1/3 4 2/3 5 5 1/3 5 2/3 6
Frequency 0% 1% 3% 5% 7% 10% 12% 13% 13% 12% 10% 7% 5% 3% 1% 0%
0% 0% 0% 0% 0% 0% 0% 0%
A. B. C. D. E. F. G. H.
J-PAL | S AMPLING AND S AMPLE S IZE 16
Rolling 4 dice:
21 results, 1296 permutations
14%
12%
10%
8%
6%
4%
2%
0%
1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6
10%
8%
6%
4%
2%
0%
1 2 3 4 5 6
5.0%
4.0%
3.0%
2.0%
1.0%
0.0%
1 1.5 2 2.5 3 3.5 4 4.5 5 5.5
3.0%
2.5%
2.0%
1.5%
1.0%
0.5%
0.0%
1 1.5 2 2.5 3 3.5 4 4.5 5 5.5
1.5%
1.0%
0.5%
0.0%
1 1.5 2 2.5 3 3.5 4 4.5 5 5.5
I. II.
A. I.
B. II.
C. Don’t know
0% 0% 0%
A. B. C.
J-PAL | S AMPLING AND S AMPLE S IZE 27
Accuracy versus Precision
estimates
truth
Accuracy (Randomization)
estimates truth
Precision (Sample Size) truth
estimates
truth truth
estimates
estimates
Accuracy (Randomization)
450
400
350
300
250
frequency
200
150
100
50
0
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
test scores
450
400
350
300
250 26
frequency
200 mean
150
100
50
0
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
test scores
350
400
300
100
100
50
0 0
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
test scores
500 4.0%
450
3.5%
400
3.0%
350
2.5%
300
250 2.0%
frequency
200 freq (N=1)
1.5%
150
1.0%
100
0.5%
50
0 0.0%
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
test scores
500 4.0%
450
3.5%
400
3.0%
350
26 2.5%
300
200 frequency
1.5%
freq (N=1)
150
1.0%
100
0.5%
50
0 0.0%
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
test scores
A. True
B. False
C. Depends
D. Don’t know
0% 0% 0% 0%
A. B. C. D.
J-PAL | S AMPLING AND S AMPLE S IZE 40
The sampling distribution may not be normal
if the population distribution is skewed
A. True
B. False
C. Depends
D. Don’t know
0% 0% 0% 0%
A. B. C. D.
J-PAL | S AMPLING AND S AMPLE S IZE 41
Outline
• Sampling distributions
– population distribution
– sampling distribution
– law of large numbers/central limit theorem
– standard deviation and standard error
– with clusters
• Practical Strategies for Sampling and Randomization
– Sampling in practice
– Randomization in practice
500
400
This is the distribution
300
of the population
200
(Population Distribution)
100
0
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
test scores
0
1 2 3 4 5 6 7 8 9 10111213141516171819202122232425262728293031323334353637383940414243444546474849505152
Frequency of Means with 100 Samples
10
0
1 2 3 4 5 6 7 8 9 10111213141516171819202122232425262728293031323334353637383940414243444546474849505152
A. B. C. D.
J-PAL | S AMPLING AND S AMPLE S IZE 48
Draws of 10 Draws of 50
8 8
6 6
4 4
2 2
0 0
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52
0 0
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52
50
J-PAL | S AMPLING AND S AMPLE S IZE
Draws of 10 Draws of 50
70 80
60
50
40
30
20
10
0
-10 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52
10 0
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 51
-40
J-PAL | S AMPLING AND S AMPLE S IZE
Outline
• Sampling distributions
– population distribution
– sampling distribution
– law of large numbers/central limit theorem
– standard deviation and standard error
– with clusters
• Practical Strategies for Sampling and Randomization
– Sampling in practice
– Randomization in practice
450
3.5%
400
3.0%
350
2.5%
300
26
250 2.0% mean
frequency
200
1.5% freq (N=1)
150
1.0%
100
0.5%
50
0 0.0%
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
test scores
450 4.0%
400
3.5%
350
3.0%
300
2.5%
26
250 mean
2.0% frequency
200
freq (N=4)
1.5%
150
1.0%
100
50 0.5%
0 0.0%
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
test scores
450
6.0%
400
350 5.0%
300
4.0%
250 26 mean
3.0% frequency
200
freq (N=9)
150 2.0%
100
1.0%
50
0 0.0%
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
test scores
450
400 20.0%
350
300 15.0%
250 26
mean
frequency
200 10.0%
freq (N=100)
150
100 5.0%
50
0 0.0%
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
test scores
450
3.5%
400
3.0%
350
2.5%
300
26 mean
250 2.0%
frequency
200 dist_1
1.5%
150 freq (N=1)
1.0%
100
0.5%
50
0 0.0%
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
test scores
450 4.0%
400
3.5%
350
3.0%
300
2.5%
26 mean
250
frequency
2.0%
200 dist_4
1.5% freq (N=4)
150
1.0%
100
50 0.5%
0 0.0%
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
test scores
450
6.0%
400
350 5.0%
300
4.0%
mean
250 26
frequency
3.0%
200 dist_9
freq (N=9)
150 2.0%
100
1.0%
50
0 0.0%
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
test scores
450
400 20.0%
350
300 15.0%
mean
250 26
frequency
200 10.0% dist_100
freq (N=100)
150
100 5.0%
50
0 0.0%
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
test scores
𝜎𝜎 2 = 400
𝜎𝜎 = 20
SE = 20� 𝑁𝑁
450
3.5%
400
3.0%
350
2.5%
300
26 mean
250 2.0%
frequency
200 sd
1.5%
dist_1
150
1.0%
100
0.5%
50
0 0.0%
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
test scores
500 4.5%
SD = 20 SE = 10
450 4.0%
400
3.5%
350
3.0%
300
2.5% mean
250 26 frequency
2.0% sd
200
se4
1.5%
150 dist_4
1.0%
100
50 0.5%
0 0.0%
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
test scores
450
6.0%
400
350 5.0%
300
4.0%
mean
250 26
frequency
3.0% sd
200
se9
150 2.0% dist_9
100
1.0%
50
0 0.0%
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
test scores
450
400 20.0%
350
300 15.0%
mean
250 26 frequency
sd
200 10.0%
se100
150 dist_100
100 5.0%
50
0 0.0%
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
test scores
A. B. C. D. E.
J-PAL | S AMPLING AND S AMPLE S IZE 68