EDUC 265
  • Syllabus
  • Schedule
  • Content
  • Assignments
  • Resources
  • Perusall
  • Canvas
  1. Interactive
  2. Statistical power
  • Overview
    • Resources
  • Interactive
    • Regression explorer
    • Sampling distributions
    • Statistical power
  • Causal inference
    • Going beyond
  • R
    • R
    • Installing R, RStudio, tidyverse, and tinytex
    • R style suggestions
    • Using Markdown
    • Using R Markdown
  • Stata
    • Stata
  • Other topics
    • Citations and bibliography
    • Data
    • Unzipping files
    • Writing and presenting
  1. Interactive
  2. Statistical power

Statistical power

See how effect size, sample size, alpha and the design of a study change its 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.

Open in a full window

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.

Sampling distributions
Going beyond

Original content 2027 by Andrew Heiss
Additional content 2027 by Andreas de Barros
All content licensed under a Creative Commons Attribution-NonCommercial 4.0 International license (CC BY-NC 4.0)

 

Made with and Quarto