Skip to main content
ScotlandStatisticsSyllabus dot point

How do you model a count with a discrete random variable and find its expected value and variance?

Work with discrete probability distributions, calculate the expectation and variance of a discrete random variable and apply the laws of expectation and variance, and use the binomial, Poisson and geometric distributions as models.

A focused answer to the SQA Advanced Higher Statistics discrete random variables content: probability distributions, the expectation and variance of a discrete random variable, the laws of expectation and variance, and the binomial, Poisson and geometric distributions with their means and variances.

Generated by Claude Opus 4.813 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. Expectation and variance of a discrete random variable
  3. The laws of expectation and variance
  4. The binomial distribution
  5. The Poisson distribution
  6. The geometric distribution
  7. Try this

What this dot point is asking

A random variable turns the outcomes of a random experiment into numbers, and a discrete one takes separate values, typically counts. The SQA wants you to handle a general discrete distribution, find its expectation and variance, apply the laws of expectation and variance to linear transformations and sums, and recognise when the binomial, Poisson or geometric model applies.

Expectation and variance of a discrete random variable

Expectation is the long-run mean; variance measures spread about that mean.

The laws of expectation and variance

These laws let you transform and combine random variables without recomputing the whole distribution.

The binomial distribution

The binomial counts successes in a fixed number of independent yes/no trials.

The conditions are: a fixed number nn of trials, two outcomes per trial, a constant success probability pp, and independent trials. If any condition fails, the binomial does not apply.

The Poisson distribution

The Poisson models the number of events in a fixed interval of time or space when events occur independently at a constant average rate λ\lambda.

A signature feature is that the mean equals the variance. Independent Poisson counts add: if XPo(λ1)X\sim\text{Po}(\lambda_1) and YPo(λ2)Y\sim\text{Po}(\lambda_2) are independent then X+YPo(λ1+λ2)X+Y\sim\text{Po}(\lambda_1+\lambda_2).

The geometric distribution

The geometric models the number of independent trials up to and including the first success.

Try this

Q1. XPo(3)X\sim\text{Po}(3). Find P(X=2)P(X=2). [2 marks]

  • Cue. P(X=2)=e3322!=9e320.224P(X=2)=\dfrac{e^{-3}3^2}{2!}=\dfrac{9e^{-3}}{2}\approx 0.224.

Q2. A fair die is rolled until the first six appears. State the expected number of rolls. [1 mark]

  • Cue. Geometric with p=16p=\tfrac{1}{6}, so E(X)=1p=6E(X)=\dfrac{1}{p}=6 rolls.

Exam-style practice questions

Practice questions written in the style of SQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

AH style: E and Var4 marksA discrete random variable XX has P(X=0)=0.2P(X=0)=0.2, P(X=1)=0.5P(X=1)=0.5, P(X=2)=0.3P(X=2)=0.3. Find E(X)E(X) and Var(X)\text{Var}(X).
Show worked answer →

Expectation: E(X)=xP(X=x)=0(0.2)+1(0.5)+2(0.3)=0.5+0.6=1.1E(X)=\sum x\,P(X=x)=0(0.2)+1(0.5)+2(0.3)=0.5+0.6=1.1 (1 mark).

Compute E(X2)=x2P(X=x)=0(0.2)+1(0.5)+4(0.3)=0.5+1.2=1.7E(X^2)=\sum x^2 P(X=x)=0(0.2)+1(0.5)+4(0.3)=0.5+1.2=1.7 (1 mark).

Variance: Var(X)=E(X2)[E(X)]2=1.71.12=1.71.21=0.49\text{Var}(X)=E(X^2)-[E(X)]^2=1.7-1.1^2=1.7-1.21=0.49 (2 marks). Markers reward E(X)E(X), E(X2)E(X^2) and the variance formula applied correctly.

AH style: binomial3 marksA biased coin lands heads with probability 0.30.3. It is tossed 1010 times. Find the probability of exactly 44 heads, and state the mean number of heads.
Show worked answer →

Model the number of heads as XB(10,0.3)X\sim B(10, 0.3) (1 mark).

P(X=4)=(104)(0.3)4(0.7)6=210×0.0081×0.1176490.200P(X=4)=\binom{10}{4}(0.3)^4(0.7)^6=210\times 0.0081\times 0.117649\approx 0.200 (1 mark).

Mean of a binomial: E(X)=np=10×0.3=3E(X)=np=10\times 0.3=3 heads (1 mark). Markers reward the binomial model, the probability calculation and the mean.

Related dot points

Sources & how we know this