Distributions and expectation of DRVs

Distributions and expectation of DRVs

Spec SA1–SA4 · AQA A-Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A discrete random variable has probabilities that sum to 11.
  • Mode: most likely value. Median: smallest mm with P(X≤m)≥0.5P(X\le m)\ge0.5.
  • E(X)=∑xipiE(X)=\sum x_ip_i and E(X2)=∑xi2piE(X^2)=\sum x_i^2p_i.
  • Var(X)=E(X2)−[E(X)]2\mathrm{Var}(X)=E(X^2)-[E(X)]^2, which is never negative.
  • Use ∑P=1\sum P=1 and any given mean to find unknown probabilities.

Discrete random variables

A table or formula giving P(X=x)P(X=x) for each value, with every probability between 00 and 11 and a total of 11.

A discrete random variable (DRV) XX takes separate values, each with a probability. The probability distribution is a table or a function such as P(X=x)=kxP(X=x)=kx for x=1,2,3,4x=1,2,3,4.

Two rules always hold: 0≤P(X=x)≤10\le P(X=x)\le1 and ∑P(X=x)=1\sum P(X=x)=1.

To find an unknown constant, add all the probabilities, set the total equal to 11 and solve.

00.10.20.30.41234xP(X = x)
The distribution P(X = x) = x/10

Worked example

P(X=x)=kxP(X=x)=kx for x=1,2,3,4x=1,2,3,4. Find kk and the distribution.

P(X=x)=k(x+1)P(X=x)=k(x+1) for x=1,2,3x=1,2,3. What is kk?

Probabilities, mode and median

Add the probabilities of the values that qualify; use a cumulative row to find the median.

To find the probability of an event, add the probabilities of the values that satisfy it: P(X≥3)=P(X=3)+P(X=4)P(X\ge3)=P(X=3)+P(X=4). A cumulative row P(X≤x)P(X\le x) helps.

The mode is the value with the greatest probability. The median is the smallest value mm with P(X≤m)≥0.5P(X\le m)\ge0.5.

For P(X>a)P(X>a), list the values above aa or use 1−P(X≤a)1-P(X\le a).

00.10.20.30.41234xP(X = x)
Illustrative distribution: mode 3 (the tallest bar); P(X ≥ 3) = 0.4 + 0.3 = 0.7; the cumulative total first reaches 0.5 at 3, the median

x = 1

P(X = x):
0.1
P(X ≤ x):
0.1

x = 2

P(X = x):
0.3
P(X ≤ x):
0.4

x = 3

P(X = x):
0.4
P(X ≤ x):
0.8

x = 4

P(X = x):
0.2
P(X ≤ x):
1

Worked example

P(X=1,2,3,4)=0.1,0.3,0.4,0.2P(X=1,2,3,4)=0.1,0.3,0.4,0.2. Find the mode and median.

Using the same table, what is P(X≥3)P(X\ge3)?

Expectation

The expectation is the probability-weighted average of the values: a long-run mean.

The expectation (mean) of XX is E(X)=∑xipiE(X)=\sum x_ip_i.

More generally, E(X2)=∑xi2piE(X^2)=\sum x_i^2p_i: square the value, not the probability. Note E(X2)≠[E(X)]2E(X^2)\ne[E(X)]^2 in general.

A mean need not be a possible value of XX: it is a long-run average.

00.050.10.15123456xP(X = x)
A fair die: each score has probability 1/6, so E(X) = 3.5, a long-run average that is not a possible score
  • MeanE(X)=∑xipiE(X)=\sum x_ip_i
  • Mean of the squareE(X2)=∑xi2piE(X^2)=\sum x_i^2p_i

Worked example

Probabilities 0.1,0.3,0.4,0.20.1,0.3,0.4,0.2 on x=1,2,3,4x=1,2,3,4. Find E(X)E(X) and E(X2)E(X^2).

X=1,2,3X=1,2,3 with probabilities 0.5,0.3,0.20.5,0.3,0.2. What is E(X)E(X)?

Variance and standard deviation

Variance is the mean of the square minus the square of the mean.

The variance measures spread about the mean: Var(X)=E(X2)−[E(X)]2\mathrm{Var}(X)=E(X^2)-[E(X)]^2.

It equals ∑(xi−μ)2pi\sum(x_i-\mu)^2p_i, but the formula above is faster. The standard deviation is Var(X)\sqrt{\mathrm{Var}(X)}, in the same units as XX.

Variance is never negative; if you get a negative value, recheck E(X2)E(X^2).

00.10.20.30.40.512345ValueProbability
  • X
  • Y
Both X and Y have mean 3, but Y is more spread out: Var(X) = 0.5 and Var(Y) = 2
  • VarianceE(X2)−[E(X)]2E(X^2)-[E(X)]^2
  • Standard deviationVar(X)\sqrt{\mathrm{Var}(X)}

Worked example

E(X)=2.7E(X)=2.7 and E(X2)=8.1E(X^2)=8.1. Find the variance and standard deviation.

E(X)=3E(X)=3 and E(X2)=10E(X^2)=10. What is Var(X)\mathrm{Var}(X)?

Finding unknown probabilities

Use ∑P=1\sum P=1 plus any given mean: two unknowns need two equations.

With two unknowns pp and qq you need two equations: one from ∑P=1\sum P=1 and one from the given E(X)E(X).

For a function such as P(X=x)=kxP(X=x)=\frac kx, write out each probability, find the unknown constant kk from the sum, then find E(X)E(X), E(X2)E(X^2) and the variance as before. For x=1,2,3,4x=1,2,3,4: E(X)=4kE(X)=4k and E(X2)=10kE(X^2)=10k.

Check each final probability is between 00 and 11 and the total is 11.

00.10.20.30.40.51234xP(X = x)
P(X = x) = k/x for x = 1 to 4: the probabilities sum to 1 when k = 12/25 = 0.48
  • Probabilities∑P=1\sum P=1
  • Given mean∑xipi=E(X)\sum x_ip_i=E(X)

Worked example

P(X=1,2,3,4)=0.2,p,q,0.3P(X=1,2,3,4)=0.2,p,q,0.3 and E(X)=2.6E(X)=2.6. Find pp and qq.

P(X=1,2,3)=0.3,p,qP(X=1,2,3)=0.3,p,q and E(X)=2E(X)=2. What is qq?

Try an exam question

The discrete random variable XX takes the values 1,2,3,41,2,3,4 with P(X=1)=0.2P(X=1)=0.2, P(X=2)=pP(X=2)=p, P(X=3)=qP(X=3)=q and P(X=4)=0.3P(X=4)=0.3. Given that E(X)=2.6E(X)=2.6, find pp and qq, and find Var(X)\mathrm{Var}(X).

[5 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the value of kk.

1 mark, marked against the mark scheme

Revision notes