KS Maths
Topic 4.14 · AA Higher Level

Continuous random variables

P(X = 1) is zero. The density is not.

Squeeze the interval onto a single point and watch the two numbers come apart, plus the variance of a discrete variable.

Words you need (10 key words in this lesson)

The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.

variable
A letter that stands for a number that can change.In y = 2x, x and y are variables.
continuous
Data that can take any value in a range, usually measured.Height is continuous.
random
Chosen by chance, with no pattern.A random number is picked by chance.
probability
How likely it is that something happens, from 0 to 1.The probability of heads is one half.
density
How much mass is in a given volume. Mass divided by volume.Density = mass divided by volume.
area
The amount of flat space inside a shape. We measure it in square units.A 3 by 4 rectangle has area 12.
greater than
Bigger than. The sign is >.5 is greater than 3.
variance
The standard deviation squared. A measure of spread.Variance is standard deviation squared.
discrete
Data that can only take separate values, usually counted.The number of pets is discrete.
integral
The result of integrating. It can give the area under a curve.The integral of 2x is x squared.

Preview You are reading the start of this lesson. The rest opens with a plan. See plans Already paid? Sign in

Warm-up

Four quick ones from earlier work. Try each on paper before you open the answer.

  1. Evaluate the integral of 2x dx from x = 1 to x = 3.
    Answer

    [x²] from 1 to 3 = 9 − 1 = 8. Antiderivative first, then top limit minus bottom limit.

  2. A discrete variable takes the values 1, 2 and 3 with probabilities 0.5, 0.3 and 0.2. Find E(X).
    Answer

    1(0.5) + 2(0.3) + 3(0.2) = 0.5 + 0.6 + 0.6 = 1.7. Each value times its probability, then add.

  3. Work out 4.5 − 1.5².
    Answer

    4.5 − 2.25 = 2.25. Square first: 1.5² is 2.25, not 3. This is the order the variance formula needs.

  4. The probabilities k, 2k and 3k cover every case. Find k.
    Answer

    k + 2k + 3k = 6k = 1, so k = 1/6. Everything must add to 1; for a density the “adding” is an integral.

Words used in this lesson
continuous
can take any value in a range, not just separate values. For example: the time you wait for a bus is continuous.
probability density function (pdf)
the curve f(x): the area under it between two values is a probability. For example: f(x) = x/2 on 0 ≤ x ≤ 2 is a density.
interval
all the values between two end points. For example: the interval from 1 to 2 includes 1.5.
integrate
find the area under a curve using the antiderivative. For example: integrating 2x gives x².
definite integral
an integral with limits, giving a number. For example: ∫01 2x dx = 1.
expected value (mean)
the long-run average of the variable. For example: the mean of a fair die is 3.5.
variance
how spread out the values are: E(X²) − [E(X)]². For example: a variance of 0 means every value is the same.
median
the value with half of the area on each side. For example: if half of the area is to the left of 3, the median is 3.
state
write the answer, with no working needed. For example: “state P(X = 3)” for a continuous X.
show that
work towards a given result, step by step, so the reader can follow. For example: “show that k = 1/8” wants every step.
Higher Level

The curve is f(x) = 3x²8 on [0, 2]. Shrink the interval around x = 1 and watch the shaded probability against the height of the curve.

f(x) = 3x²/8 on [0, 2]area = probability0.511.520.511.5f(1) = 0.375
0.0753P(in the strip)
0.375f(1), the density
0.376probability ÷ width

The strip narrows. The curve does not move.

What the figure shows

Probability is area, and a point has no width. So for any continuous X, P(X = a) = 0 for every single a, even though X certainly takes some value.

A consequence worth having: P(X < a) and P(X ≤ a) are the same number for a continuous variable. For a discrete one they are not, and that difference is examined.

A density is not a probability. f(1) = 0.375 here, but f can be bigger than 1: the function f(x) = 2 on [0, 0.5] is a perfectly good density, because 2 × 0.5 = 1. No probability is ever greater than 1. The third readout above is the clue, probability divided by width approaches the density, which is what "density" means.

The rest of this lesson is in the full course

Still to come in this lesson:

In the full lesson every figure moves as you drag it, and every answer you type is checked, with a note on what each wrong answer means.

IB Diploma plan: AA HL$99Every Diploma lesson in both courses and both levels, so a change of course never locks you out, and every lesson from Year 7 for the refreshers. $99 for 12 months or $149 for 2 years.

One plan opens every Diploma lesson, AA and AI, SL and HL, for the whole family.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Pay by card on Gumroad, then come back here and type the email you paid with: we email you a sign-in link. For a refund, reply to your Gumroad receipt or email hello@ksmaths.com.

Try a free sample lesson in every unit, and the whole Skill Tree. See this unit.

Already have a revision pack or the Years 7 to 11 plan? Move up and the unused part of what you paid comes off.

Teaching students who need extra support? Student codes for 5, 10 or 30 students.

AA HL Mock Exam Pack, $25BuyPlan $99