Probability Density Function (DP IB Analysis & Approaches (AA): HL): Revision Note

Calculating probabilities using PDF

A continuous random variable can take any value in an interval so is typically used when continuous quantities are involved (time, distance, weight, etc)

What is a probability density function (p.d.f.)?

  • For a continuous random variable, a function can be used to model probabilities

    • This function is called a probability density function (p.d.f.), denoted by f(x)

  • For f(x) to represent a p.d.f. the following conditions must apply:

    • f(x) ≥ 0 for all values of x

    • The area under the graph of y = f(x) must total 1

  • In most problems, the domain of f(x) is restricted to an interval, a ≤ x ≤ b say, with all values of x outside of the interval having f(x)=0

How do I find probabilities using a probability density function (p.d.f.)?

  • The probability that the continuous random variable X lies in the interval a ≤ X ≤ b, where X has the probability density function f(x), is given by

P(aXb)=abf(x) dx 

  • For any continuous random variable (including the normal distribution), the following are true:

    • P(aXb)=P(a<X<b)

      • I.e. and < are interchangeable

    • P(X=a)=0, for any single value a

      • Because P(X=a)=aaf(x) dx=0

  • For linear functions it can be easier to calculate the probability integral using areas of geometric shapes

    • Rectangle: A = bh

    • Triangle: A = ½(bh)

    • Trapezoid: A = ½(a+b)h

How do I determine whether a function is a valid pdf?

  • Some questions may ask you to justify the use of a given function as a probability density function

    • In such cases check and confirm that the function meets the two conditions

      • f(x) ≥ 0 for all values of x

      • total area under the graph is 1

Examiner Tips and Tricks

Don't forget the f(x)0 condition. A common error is to confirm that the total area is equal to 1, but to forget to confirm that f(x)0 is always true.

How do I use a pdf to find probabilities?

  • STEP 1
    Identify the probability density function, f(x) - this may be given as a graph, an equation or as a piecewise function

    • e.g.   f(x)={0.02x0x100otherwise

    • Identify the limits of x for a particular problem

    • Remember that P(a ≤ X ≤ b) = P(a < X < b)

  • STEP 2
    Sketch, or use your GDC to draw, the graph of y = f(x)

    • Look for basic shapes (rectangles, triangles and trapezoids) as finding these areas is easier without using integration

    • Look for symmetry in the graph that may make the problem easier

    • Break the area required into two or more parts if it makes the problem easier

  • STEP 3
    Find the area(s) required using basic shapes or integration and answer the question
     

  • Trickier problems may ask you to find one of the integration limits of the integral given the value of a probability

    • e.g. Find the value of a given that P(0Xa)=0.09

Worked Example

The continuous random variable, X, has probability density function

f(x)={0.08x0x50otherwise

a) Show that f(x) is a valid probability density function.

Answer:

4-7-1-ib-hl-aa-only-we1a-soltn-

b) Find, both geometrically and using integration, P(0 ≤ X ≤ 2).

Answer:

4-7-1-ib-hl-aa-only-we1b-soltn-

c) Write down P(X = 3.2).

Answer:

4-7-1-ib-hl-aa-only-we1c-soltn-

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Build on this topic

Paul

Author: Paul

Expertise: Maths Content Creator

Paul has taught mathematics for 20 years and has been an examiner for Edexcel for over a decade. GCSE, A level, pure, mechanics, statistics, discrete – if it’s in a Maths exam, Paul will know about it. Paul is a passionate fan of clear and colourful notes with fascinating diagrams.

Dan Finlay

Reviewer: Dan Finlay

Expertise: Portfolio Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.