Lesson 2 of 8 · 15 min

Uniform distributions and estimates from data

Model equally likely outcomes with a uniform discrete random variable, and use relative frequencies from data as point estimates of a probability function when no model is known.

What you will be able to do

  • Recognise a uniform discrete random variable and write its probability function, P(X=x)=1nP(X = x) = \frac{1}{n}.
  • Tell a uniform random variable from a non-uniform one in context.
  • Use relative frequencies from data as point estimates of P(X=x)P(X = x).
  • Judge whether data are consistent with a proposed model.

Some random variables come from a model you can reason about, like a fair die. Others come from the real world, like the number of people in each car crossing the Story Bridge, where nobody can tell you the probabilities in advance. This lesson covers both: the simplest model there is, and how to estimate a probability function from data.

Definition

Uniform discrete random variable

A discrete random variable is uniform when each of its nn values is equally likely:

P(X=x)=1nfor each value x.P(X = x) = \frac{1}{n} \quad \text{for each value } x.

The score on a fair die is uniform on {1,2,3,4,5,6}\{1, 2, 3, 4, 5, 6\}, with P(X=x)=16P(X = x) = \frac{1}{6}.

Interactive

The score on a fair die

A uniform distribution has bars of equal height. Turn on the cumulative view: what is P(X≤4)P(X \le 4)?

A fair spinner has eight equal sectors numbered 1 to 8. Let XX be the number it lands on. Find P(X≤3)P(X \le 3).

Reads asYour answer shows here as maths.

A model is uniform only when the values of XX are equally likely, not just the outcomes underneath. A fair die with faces 1, 1, 2, 3, 3, 3 has six equally likely faces, but XX takes the values 1, 2 and 3 with probabilities 26\frac{2}{6}, 16\frac{1}{6} and 36\frac{3}{6}. That is a non-uniform random variable.

Which random variable is uniform?

Choose one answer

For real data there is often no model. Instead, observe many repetitions and use relative frequencies as point estimates of the probabilities:

P(X=x)≈number of times X=xtotal number of observations.P(X = x) \approx \frac{\text{number of times } X = x}{\text{total number of observations}}.

The estimated probabilities automatically add to 1, so they form a probability function you can use like any other.

Worked example

Estimate a probability function from data

  • Simple familiar

A traffic survey records the number of people in each of 200 cars crossing the Story Bridge in peak hour.

People in car12345
Number of cars925826168

Let XX be the number of people in a randomly chosen car.

(a) Use the data to estimate the probability function of XX.

(b) Estimate the probability that a car carries at least three people.

(c) Estimate how many of the next 1000 cars will carry at least three people.

3 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Find the total number of observations.

  2. Divide each frequency by the total to estimate P(X=x)P(X = x).

  3. Use the estimates like any probability function, and call the answers estimates.

Watch out for

  • Dividing by the number of categories (5) instead of the number of cars (200).

  • Stating an estimate as if it were an exact probability.

Estimated probability function of XX, the number of people in a car, from 200 cars.

Using the estimates in the graph, estimate the probability that a car crossing the bridge carries at most two people.

Note

Estimates are not exact

A different 200 cars would give slightly different relative frequencies. Larger samples give better estimates, which is why you should say "estimate" and not "the probability is". In Unit 4 you measure how far such estimates can be trusted.

Data can also test a model. If a die is fair, 120 rolls should give each score about 120×16=20120 \times \frac{1}{6} = 20 times. Counts of 18, 23, 19, 21, 17 and 22 are consistent with a fair die: they are all close to 20, and chance alone produces differences that size. Counts of 8, 12, 15, 20, 25 and 40 are not: a six turning up 40 times in 120 rolls would make you doubt the model.

Exam tip

Say what your estimate is based on

When you estimate a probability from data, show the relative frequency as a fraction of the total (58200=0.29\frac{58}{200} = 0.29) and call it an estimate. When you compare data with a model, compare the observed counts with the expected counts and conclude in words.

Summary

  • A uniform discrete random variable has nn equally likely values, each with P(X=x)=1nP(X = x) = \frac{1}{n}.

  • Equally likely outcomes don't always make equally likely values: check the values of XX.

  • Relative frequencies from data are point estimates of P(X=x)P(X = x), and they add to 1.

  • Estimates vary from sample to sample; larger samples give better estimates.

  • Compare observed counts with the counts a model predicts to judge whether the model is reasonable.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 2 of 80% read

Save your progress with a free account