Statistical power
Power is the chance that a study detects an effect that is really there. The chart shows two worlds: what the null hypothesis predicts, and what would happen if the effect were real. Change the settings and watch how far the two worlds overlap.
The tool has three designs. The first tests one mean against a fixed value, which keeps the picture simple. The other two compare a treatment group with a comparison group, as a randomized study does: one randomizes students, and the other randomizes whole schools. Those two use the notation of the Week 6 reading and slides, and they give the minimum detectable effect (MDE) for any study you set up, so you can use them to plan the power calculation for your final paper.
This is a tool to play with, not an assignment.
Things to try
Each link opens the tool ready to go. Before you press anything, predict what will happen.
- Four levers. Start at 80% power. Change alpha, the test, the sample size, and the effect size, one at a time. Which one moves power the most?
- A typical education effect. Try 0.10 SD with 200 people. That’s the median effect from the Week 2 reading. How much power is there? Raise Sample size n until power reaches 80%.
- When there is no effect. Set d to 0. The null hypothesis is true here, so the only possible mistake is a Type I error.
- Two groups. 400 students, half treated, a true effect of 0.2 SD, the study in the Week 6 reading. Power is 52%. Find the number of students that gives 80% power. Then go back to 400 and raise the variance explained by controls to 50%. What happens to power?
- Schools instead of students. 396 schools of 40 students, ρ = 0.16, a true effect of 0.12 SD, the Balsakhi example in the Week 6 reading. Power is 80%. Now test 80 students per school instead of 40. How much does power rise? Then halve the number of schools instead.
Credit
This tool was written for EDUC 15 and adapted for this course. It was inspired by Kristoffer Magnusson’s power visualization at R Psychologist, used under a CC BY license.