Log inStart free
LESSON 2.24 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Hypothesis testing

Watch a permutation test decide if agent B truly beats agent A.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 2.24 · TEST BAYMEAN A 103.9 · MEAN B 124.5 · GAP +20.6
01
Stage 1 of 6 · Two agents
Each dot is one seed’s final score, 10 per agent. B scores 20.6 points more on average.
Explain it simply

Two agents, A and B, each learn the same task 10 times, with a new random seed each time. Each dot is the final score of one run. The scores scatter a lot, so luck matters. The blue lines mark each average. B's average is 20.6 points higher. Is B better, or did it get lucky seeds?

Two rows of 10 dots. Agent A averages 103.9 points and agent B 124.5. The gap D is +20.6.

seed scores, shuffled gapstrue means, αmeans, gap D, p, right callswrong callsaxes
final scores · 10 seeds per agent6080100120140160final score per seed (points)ABmean 103.9mean 124.5D = +20.6final scores · 10 seeds per agent6080100120140160final score per seed (points)ABmean 103.9mean 124.5D = +20.6
Toy: n seeds per agent · score 100 + 20z, B adds 20d · 9999 shuffles · 100 repeats · 20 tweaks
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
D=xˉB−xˉA\sy{D}{out}{D} = \sy{xb}{out}{\bar x_B} - \sy{xa}{out}{\bar x_A}
D=124.5−103.9=20.6D = 124.5 - 103.9 = 20.6

The gap is the mean score of B minus the mean score of A.

Common mix-ups

MYTHNot significant means agent B is no better.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With no real gap, about how many of 100 repeats pass α = 0.05?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.