9A

Probability distributions

Discrete random variables, probability distribution tables and graphs, the condition that probabilities add to 1, and relative frequencies as estimates of probabilities.

In Year 11 you found the probability of single events: "a 6", "two heads". Now we look at all the possible outcomes at once, as numbers, and ask how the probability is spread across them. That spread is called a distribution, and it is the starting point for averages and spread in the next two sections.

Random variables and distributions

A random variable $X$ is a number that comes out of a random experiment: the number of heads in three tosses, the score on a die, the number of customers in an hour. It is discrete when it takes separate values you can list, usually counts. (Heights and times, which can be any value in a range, are continuous: that is chapter 10.)

The probability distribution of $X$ lists every value $x$ with its probability $P(X = x)$.

Example 1: three coins●

Three fair coins are tossed and $X$ is the number of heads. Find the probability distribution of $X$.

HHH has 3; HHT, HTH, THH have 2; HTT, THT, TTH have 1; TTT has 0.
List the 8 equally likely outcomes and count heads in each.
$x$$0$$1$$2$$3$
$P(X = x)$$\tfrac18$$\tfrac38$$\tfrac38$$\tfrac18$
Each outcome has probability 1/8. Count how many give each value.
$\tfrac18 + \tfrac38 + \tfrac38 + \tfrac18 = 1$
Check the second condition.

As a graph, a distribution is drawn as a column (bar) graph: one column per value, with height equal to the probability. For Example 1 the columns rise and fall symmetrically, with the two tallest at $x = 1$ and $x = 2$.

Finding an unknown probability

When a probability is missing, the sum-to-one condition gives you an equation.

Example 2: an unknown in a table●●

Find $k$, then $P(X \ge 1)$.

$x$$0$$1$$2$$3$
$P(X = x)$$0.1$$2k$$0.3$$k$
$0.1 + 2k + 0.3 + k = 1$, so $3k = 0.6$ and $k = 0.2$.
All the probabilities add to 1.
$P(X \ge 1) = 1 - P(X = 0) = 1 - 0.1 = 0.9$
Quicker to use the complement: everything except x = 0.
Example 3: a formula●●

A random variable has $P(X = x) = kx$ for $x = 1, 2, 3, 4$. Find $k$ and $P(X \ge 3)$.

$k + 2k + 3k + 4k = 10k = 1$, so $k = 0.1$.
Substitute each value to get the four probabilities, and add.
$P(X \ge 3) = 0.3 + 0.4 = 0.7$
P(X = 3) = 0.3 and P(X = 4) = 0.4.

Uniform distributions and the mode

A distribution is uniform when every value is equally likely, like the score on a fair die: each of the $6$ values has probability $\tfrac16$, and the column graph is flat. The mode of a distribution is the value with the highest probability, the tallest column. A uniform distribution has no single mode.

Relative frequency

When you can't work out probabilities from equally likely outcomes (a biased die, a real basketball player's free throws), you run the experiment many times. The relative frequency of a value is

Relative frequency
$$\frac{\text{number of times it happened}}{\text{number of trials}}$$

Relative frequencies behave just like a probability distribution: each is between $0$ and $1$, and they add to $1$. They are estimates of the true probabilities, and the estimates usually improve as the number of trials grows.

Example 4●

A spinner with sections labelled $1$, $2$ and $3$ is spun $400$ times. It lands on $1$ a total of $92$ times, on $2$ a total of $188$ times and on $3$ a total of $120$ times. Estimate the probability distribution.

$P(1) \approx \dfrac{92}{400} = 0.23$, $P(2) \approx \dfrac{188}{400} = 0.47$, $P(3) \approx \dfrac{120}{400} = 0.30$
Divide each frequency by 400.
The spinner is probably not fair: $2$ comes up about twice as often as $1$.
Check: 0.23 + 0.47 + 0.30 = 1.

Your turn

$P(X = x) = \dfrac{x}{c}$ for $x = 2, 3, 5$. Find $c$.

Show the working

$\dfrac{2}{c} + \dfrac{3}{c} + \dfrac{5}{c} = \dfrac{10}{c} = 1$, so $c = 10$.

Flashcards
Two conditions for a discrete distribution
Each probability is between $0$ and $1$, and they add to $1$.
Relative frequency
$\dfrac{\text{frequency}}{\text{number of trials}}$, an estimate of the probability
Mode of a distribution
The value with the highest probability
Practice
  1. Which is a discrete random variable?

  2. Three fair coins are tossed. Find $P(X = 2)$, where $X$ is the number of heads.

  3. $X$ takes the values $1, 2, 3, 4$ with probabilities $0.15$, $0.25$, $k$ and $0.4$. Find $k$.

  4. $P(X = x) = kx$ for $x = 1, 2, 3, 4$. Find $k$.

  5. With $P(X = x) = 0.1x$ for $x = 1, 2, 3, 4$, find $P(X \gt 2)$.

  6. Which list could be the probabilities of a distribution?

  7. A die is rolled $300$ times and shows a six $63$ times. Estimate the probability of a six.

  8. $X$ takes the values $1, 2, 3, 4$ with probabilities $0.2$, $0.25$, $0.35$, $0.2$. Find the mode of $X$.

  9. Exam style: two fair dice are rolled and $X$ is the larger of the two numbers (or the common number, if they are equal). Find $P(X = 4)$ correct to two decimal places.

  10. Exam style: $P(X = x) = k(x^2 + 1)$ for $x = 0, 1, 2$. Find $k$.

Formula sheet