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

Expectation, variance, covariance and correlation

Watch 36 rolls of two dice give an average, a spread and a trend.


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.17 · DICE BAY36 ROLLS · P = 1/36 EACH · Y = X + D
01
Stage 1 of 6 · Roll two dice
Two dice give 36 rolls, each with probability 1/36. Each dot plots X, the first die, and Y = X + D.
Explain it simply

Each dot is one way the two dice can land. There are 6 times 6, so 36 rolls, and each one is equally likely. X and Y are random variables: rules that give each roll a number. Here Y is X plus D, the total of both dice.

36 dots, one per roll of two dice. X is the first die, from 1 to 6. Y is X + D, from 2 to 12.

roll, value of X or Yprobabilitymean, positive areamiss from the mean, negative areagrid
ledger36 rollsP(Y = y)one roll12345623456789101112XYX = die 1D = die 2Y = X + DP = 1/36 a rollX = 2D = 5Y = X + D = 2 + 5 = 7P(this roll) = 1/366 × 6 = 36 rollsledger36 rollsP(Y = y)one roll12345623456789101112XYX = die 1D = die 2Y = X + DP = 1/36 a rollX = 2D = 5Y = X + D = 2 + 5 = 7P(this roll) = 1/366 × 6 = 36 rolls
Toy: two fair dice · 36 equally likely rolls · X = die 1, D = die 2, Y = a rule · exact, no sampling
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
P(X=x, D=d)=136,Y=f(X,D)P(\sy{X}{data}{X}{=}x,\ D{=}d) = \sy{p}{param}{\tfrac{1}{36}},\quad \sy{Y}{data}{Y} = f(X, D)
P(X=2, D=5)=136,Y=7P(X{=}2,\ D{=}5) = \tfrac{1}{36},\quad Y = 7

Every roll has the same probability, and Y is a rule on the roll.

Common mix-ups

MYTHZero correlation means that X and Y are independent.

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

Predict, then reveal
3 CHECKS · PRO
Q01With Y = X + D, what is E[Y | X = 6]?

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.