LightMySky

Discrete Random Variables and Probability Distributions

A random variable attaches a number to each outcome, and its distribution lists every value the variable can take with the probability of taking it. Those probabilities have to total 1.

Start learning thisNo account needed. Progress saves in this browser.

What a learner can do afterwards

  • Write the distribution of the total when two dice are added
  • Use the total of 1 to find a missing probability in a table
  • Find P(X ≥ 3) from a given distribution

1 · Read

The dice stall pays on the total of two fair dice rolled independently. Each pair has chance 1/6 × 1/6 = 1/36. A random variable is a rule assigning a number to each outcome. Here X adds the two faces. The rule is defined before rolling; the roll reveals its value. For equally likely outcomes, divide the count giving a value by the total count. For known unequal outcome probabilities, add the probabilities of outcomes giving that value.

Tap to fill the grid, one at a time: 6 rows of 6.
Thirty-six squares, one for each pair of faces, all equally likely. Every square carries a total, and several squares carry the same one.

Count the pairs giving each total. Only double one gives 2, so P(X = 2) = 1/36. Four pairs give 5: 1 and 4, 2 and 3, 3 and 2, 4 and 1, so P(X = 5) = 4/36. Listing each total from 2 to 12 with its chance gives the probability distribution of X. These probabilities describe the model. Observed relative frequencies are counts divided by the number of rolls. In a finite run they may be close to the model or far from it; exact agreement is possible.

2132435465768594
The number of pairs behind each total, climbing to six at a total of 7. Totals 10, 11 and 12 carry on down the other side at 3, 2 and 1.

Add those counts: 1 + 2 + 3 + 4 + 5 + 6 + 5 + 4 + 3 + 2 + 1 = 36, so the probabilities add to 36 / 36 = 1. Every roll produces exactly one total, so the eleven totals cover every roll with no overlaps. Every distribution totals 1 and has no negative entries, so you can find a missing probability.

Try it together

A spinner stall has a random variable Y with values 1, 2, 3 and 4. Its probabilities are 0.2, 0.35, a smudge and 0.15. They total 1, so the smudge is 1 - 0.2 - 0.35 - 0.15 = 0.3. P(Y ≥ 3) means 3 or 4. One spin gives one score, so these events cannot both happen and their joint chance is 0. Add their probabilities: 0.3 + 0.15 = 0.45. At most 2 means adding the entries for 1 and 2 instead.

One missing entry from the total of 1, and P(Y at least 3) by adding upwards.

X is a rule, not a number. It assigns a number to each outcome. Its distribution lists every possible value with its probability, so it answers questions about the total. Unlisted values have probability zero; for two dice, 13 cannot occur. The table keeps values and probabilities, not the faces that produced a total of 6. Different games can share the same distribution.

A random variable turns an outcome into a number. Its distribution lists each value with its chance, built by counting. The chances total 1, which finds a missing one. For P(X ≥ k), add upwards.

Original lesson, question and flashcard revisions authored for this dataset.

The rewritten readings were written for this dataset. Includes original questions, references to Shafer and Zhang and OER Commons, and videos by Khan Academy. Third-party license terms are unknown.

2 · Watch

3 · Play

At the last stop, you learned that independent chances multiply. The dice stall runs on it: two fair dice, each roll independent, so 6 × 6 = 36 equally likely pairs of faces. The stall pays on the total of the two, not on which die showed what.

The stall calls the total X. What sort of thing is X before the dice are thrown?

  • One fixed number that is the same for every pair of faces

    Different pairs can give different totals. X is the rule assigning a total to every possible pair, not one fixed total shared by all pairs.

  • A rule: add the two faces, whatever they turn out to be (The answer)

    Yes. The rule is defined before rolling. Once the dice land, their faces reveal the observed value of X.

  • The chance that the dice add to seven

    That is one probability the stall might quote. X is the quantity being asked about, not the chance of any particular value of it.

A rule that turns each outcome into one number is called a random variable.

Every one of the 36 squares carries a total, and several carry the same one. Mia starts filling in a table of how many squares give each total.

How many of the 36 pairs give a total of 5?

  • 1, since there is one way to make five

    There is one way to make a 2: double one. To make five, the first die could be a 1, 2, 3 or 4, and the second makes up the difference.

  • 5, because the total is five

    The total and the count of ways are different numbers. Nothing says a total of five has to come from five pairs.

  • 4: 1 and 4, 2 and 3, 3 and 2, 4 and 1 (The answer)

    Yes, and note that 1 and 4 is a different square from 4 and 1. So P(X = 5) = 4 / 36.

Do that for every total from 2 to 12 and the table is the probability distribution of X.

The busiest total is 7, and the stall's prizes are set around it. Mia wants the pairs behind it counted out loud.

Tap out the pairs of faces that add to seven.

Six of the thirty-six, so P(X = 7) = 6 / 36. That is more than any other total gets, so 7 is the most common total.

Leo looks at the finished table, counts eleven totals from 2 to 12, and says each one must therefore come up about an eleventh of the time, since the eleven probabilities add to 1.

The eleven entries do add to 1. Where has Leo gone wrong?

counts add to 3636 / 36 = 1nothing left out
  • Nowhere, the totals really are all equally likely to come up

    The counts behind the totals run 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1. Six pairs make a 7 and only one makes a 2, so those two cannot be equally likely.

  • Equally likely applies to the 36 pairs, not to the eleven totals built from different numbers of them (The answer)

    Yes. Each of the 36 squares carries the same 1 / 36, and a total's probability adds those shares for all its squares. The entries add to 1, so he passed that check for the wrong reason.

  • The eleven entries should not have added to 1 at all

    They should, and they do. Every roll gives exactly one total, so the table has to account for all of them. That test is fine; his conclusion is not.

Every distribution totals 1, and that alone never tells you the entries are equal.

The spinner stall next door has a card with values 1, 2, 3, 4 and probabilities 0.2, 0.35, something smudged, 0.15. A player asks the chance of scoring at least 3.

How do you get there?

  • The four entries total 1, so the smudge is 0.3, and 0.3 + 0.15 = 0.45 (The answer)

    Yes. At least 3 means 3 or 4, and those cannot both happen, so their probabilities add. The stall can quote a probability of 0.45.

  • The smudge is 0.3, so the answer is 0.3, since that is the entry for 3

    Half done. At least 3 takes in the 4 as well, so the entry for 4 has to be added on.

  • Multiply the entries for 3 and 4 together

    One spin cannot score both 3 and 4, so their joint chance is 0. Multiplying their probabilities would require independence, which these scores do not have. For at least 3, add: 0.3 + 0.15 = 0.45.

You can answer the whole card from the table alone, without using the spinner.

You turned thirty-six squares into eleven totals with a chance attached to each, checked the table against 1, and then read two answers straight off a card without touching the spinner.

  • A random variable is a rule turning each outcome into one number
  • Its distribution lists every value with the probability of taking it
  • Count how many equally likely outcomes give each value
  • The entries total 1, which finds a missing one; add upwards for at least

Take it off screen

Print a worksheetA4 with an answer key page for grown-ups. No screen, no internet.

Where it sits

Where this leads

Then practise

30 questions wait behind this lesson, each with its answer explained. Every answer feeds the sky: stars light as they are learned, and dim when it is time to come back.

Start learning this