Jill VanderStoep�Hope College – Holland, MI�
EAPOST Workshop: Comparing Two Means
Overview
Information on our Curriculum
Information on our Curriculum
How I Run my Class
How I Run my Class
How I Run my Class
Comparing Two Means: Simulation-Based Approach Exploration
Dung Beetles
Dung Beetles
Dung Beetles
Dung Beetles
Dung Beetles
Dung Beetles
Dung Beetles
Observed Variation in: | Sources of explained variation | Sources of unexplained variation |
Rolling time to edge of platform (seconds) | ||
Inclusion criteria Nocturnal African beetles Design 10 cm diameter platform
|
Cap type
Age
Unknown
Sex
.
.
Hypotheses
Parameters
Hypotheses
H0: µblack = µclear (µblack – µclear = 0)
Ha: µblack > µclear (µblack – µclear > 0)
Hypotheses
Remember
Step 3: Explore the data
Cap type | Sample size | Mean | SD | Min. | First Quart. | Med. | Third Quart. | Max. |
Black | 9 | 126.55 | 22.19 | 84.18 | 113.54 | 123.61 | 145.99 | 156.99 |
Clear | 9 | 42.78 | 15.52 | 16.17 | 35.53 | 38.46 | 53.82 | 70.70 |
Results
Step 4: Draw inferences beyond the data
Statistic
Simulation
Simulation
Black Cap Clear Cap
mean = 42.78 sec
mean = 126.55 sec
139.77
156.99
131.54
34.2
114.29
152.21
123.61
112.78
84.18
43.77
123.56
37.23
16.17
49.5
58.13
70.7
36.86
38.46
mean =74.33 sec
mean = 94.99 sec
74.33 – 94.99 = -20.66 sec
Shuffled Differences in Means
Black Cap Clear Cap
139.77
156.99
131.54
34.2
114.29
152.21
123.61
112.78
84.18
43.77
123.56
37.23
16.17
49.5
58.13
70.7
36.86
38.46
mean =97.38 sec
mean = 71.95 sec
97.38 – 71.95 = 25.42 sec
Shuffled Differences in Means
Black Cap Clear Cap
139.77
156.99
131.54
34.2
114.29
152.21
123.61
112.78
84.18
43.77
123.56
37.23
16.17
49.5
58.13
70.7
36.86
38.46
mean =84.48 sec
mean = 84.85 sec
84.48 – 84.45 = -0.37 sec
Shuffled Differences in Means
More Simulations
20.1
-18.6
-5.6
-15.2
30.0
0.5
4.6
-2.3
-2.0
-4.7
.6.9
-6.7
-10.2
-6.7
-1.2
-9.9
5.6
-1.9
12.9
1.6
1.3
4.3
2.0
10.0
0.2
3.3
6.9
Out of 30 simulated statistics, there aren’t any that are as large or larger than our observed difference in means of 83.77, hence our p-value for this null distribution is 0/30 = 0.
Shuffled Differences in Means
Multiple means applet
P-value
P-value
Confidence Interval
Step 5: Formulate �Conclusions
Was the sample randomly selected from a larger population?
Were the observational units randomly assigned to treatments?
Conclusions
Step 6: Look back and �ahead
Questions