Continuous Random Variables: Probability Density Functions and Areas (Linear combinations and continuous random variables (6.2, 6.3)) | Cambridge A Level Maths notes

Free preview: Continuous Random Variables: Probability Density Functions and Areas

Probability as Area Under a Curve

9709 Paper 6: Probability & Statistics 2 (A Level)

Watch: 1-minute explainer

Let's start with a time, like how long a bus journey takes. It can be 12.3 minutes, 12.31, 12.314... Any value in a range is possible. Now ask: what is the probability it takes exactly 12.314159 minutes? Essentially zero. Yet the journey has to take some time. How can every single value have probability 0, and still add up to something?

  • A variable like this is a continuous random variable: it can take any value in an interval.
  • We can't list values with probabilities: there are infinitely many, and each single value has probability 0.
  • Instead we use a curve called the probability density function (pdf), f(x).
  • Probabilities are areas under the curve. You met this idea in Paper 5 with the normal distribution.

P(a<X<b)=∫abf(x)dx

Two conditions for a pdf

  • f(x)⩾0 for all x: a negative area would be a negative probability.
  • The total area is 1: ∫−∞∞f(x)dx=1. In practice, integrate over the range where f is not zero.

💡 In plain words

  • Height of the curve is density, not probability. It can be bigger than 1.
  • Area is probability. Total area 1.
  • P(X=a)=0, so P(X<a) and P(X⩽a) are the same.

Diagram: Here's a made-up example: f(x) = 8x on 0 x 0.5. The height reaches 4, far above 1.

What the picture shows

  • Here's a made-up example: f(x)=8x on 0⩽x⩽0.5. The height reaches 4, far above 1.
  • That is fine. The total area is 12×0.5×4=1.
  • Probability is area, not height: P(X<0.25)=0.25, even though f(0.25) = 2.

Finding a constant

  1. Integrate f over its whole range. Why: this is the total area.
  2. Set the result equal to 1 and solve for the constant.
  3. Check f is never negative on the range.

👀 Watch me do it: find k when f(x)=kx(4−x) for 0⩽x⩽4, 0 otherwise. Then find P(X < 1)

What I writeWhy I do it
∫04(4x−x2)dx=[2x2−x33]04Expand the bracket so each term integrates easily. Keep k outside.
=32−643=323Top limit minus bottom limit (which is 0).
k×323=1⇒k=332Total area is 1.
P(X<1)=332[2x2−x33]01Same integral, new limits.
=332×53=5322−13=53.

✏️ YOUR TURN 1

Try this first:

X has pdf f(x)=k(x+1) for 0⩽x⩽2, 0 otherwise. Find k and P(X > 1).

Answer:

  • ∫02(x+1)dx=[x22+x]02=4, so k=14.
  • P(X>1)=14[x22+x]12=14(4−1.5)=0.625.

✏️ YOUR TURN 2

Try this first:

Is f(x)=x−0.5 for 0⩽x⩽2 (0 otherwise) a valid pdf? Explain.

Answer:

  • The total area is [x22−0.5x]02=2−1=1, which looks fine.
  • But f(x) < 0 for 0⩽x<0.5 (for example f(0) = −0.5). So it is not a valid pdf. Both conditions must hold.

Sketching a PDF and Using Shapes

A sketch of the pdf often shows the answer before you integrate. Straight-line pdfs give triangles, rectangles and trapezia, and symmetric pdfs give halves. Here's the idea: if area is probability, then any shape whose area you already know is a probability you can find without calculus.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in Linear combinations and continuous random variables (6.2, 6.3)

  1. Combining Random Variables: Expectation and Variance of aX + bY
  2. Linear Combinations of Independent Normal Random Variables
  3. Continuous Random Variables: Probability Density Functions and Areas
  4. Mean, Variance, Median and Percentiles of a Continuous Random Variable

Video

What's inside for this topic

4 teacher notes, 187 practice questions, 37 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Linear Combinations of Independent Normal Random Variables Next note: Mean, Variance, Median and Percentiles of a Continuous Random Variable

Continuous Random Variables: Probability Density Functions and Areas on other exam boards

All Cambridge A Level Maths topics · A Level Maths