Mathematics · live now

Continuous random variables

Work with random variables that can take any value in an interval. Start with probability density functions and why a single value has probability zero, then find probabilities from a PDF and the CDF, compute expected values and variances, and finish with the continuous uniform distribution.

No account needed to read a lesson · 30-day money-back guarantee

See the full learning path

7

lessons

63

practice questions

164

prerequisite lessons

See it taught

1 of the 7 lessons here is free to preview - the whole explanation and worked example, with no account and no email.

Live, not a screenshot

Lesson 01 · What is a continuous random variable?

12345678910
0
x

Step 1: A curve for X

X takes values in [0,10]. We describe it by the blue curve.

Its probabilities will be areas under the curve, and a probability is never negative. So the curve never goes below the horizontal axis, where a region would have negative area.

Step 2: Probability is area

The probability that X lies between 2 and 4 is the shaded area under the curve over [2,4]:

P(2<X<4)=0.34

Step 3: The total area is 1

The whole region under the curve has area 1: X is certain to take some value, and by the axioms the certain event has probability 1. The whole region lies over [0,10], so

P(0<X<10)=1

Step 4: The PDF

The curve is the graph of a function f, labelled y=f(x). We call f the probability density function (PDF) of X.

Step 5: Area as an integral

An area under a graph is an integral, so the probability that X lies between a and b is

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

Drag the red points to move a and b.

P( <X< ) = 

The diagram from the lesson itself, running live.

7 of 8 lessons

7 lessons you can take today, and 1 more being written. Expand any one to see what it covers. Each unlocks when its own prerequisites are passed.

01

What is a continuous random variable?

Preview

8 questions

Learn how a probability density function describes a continuous random variable, and why each single value has probability zero.

Covers

The probability density function

The probability of a single value is 00

Preview this lesson - no account needed

02

Properties of a PDF

8 questions

Learn why the height of a PDF is a density rather than a probability, and how to check whether a function is a valid PDF.

Covers

Density is not probability

Checking a PDF is valid

03

Finding the constant in a PDF

8 questions

Learn how to find the constant that makes a function a valid PDF, on a bounded interval and on an interval with an infinite upper limit.

Covers

Finding the constant on a bounded interval

Finding the constant on an unbounded interval

04

Probabilities from a PDF

10 questions

Learn how to find the probability that a continuous random variable lies in an interval or beyond a value, by integrating its PDF over the part inside the support.

Covers

The probability of an interval

One-sided probabilities

05

Expected value of a continuous random variable

8 questions

Learn how to find the expected value of a continuous random variable, and of a function of it, using its PDF.

Covers

The expected value as an integral

The expected value of g(X)g(X)

06

Variance of a continuous random variable

8 questions

Learn how to find the variance and standard deviation of a continuous random variable from its PDF.

Covers

Variance from the definition

Variance from E[X]\mathbb{E}[X] and E[X2]\mathbb{E}[X^2]

07

The continuous uniform distribution

13 questions

Learn how to recognise the continuous uniform distribution, find its probabilities as shares of its interval's length, and find its mean and variance.

Covers

Equally likely over an interval

The mean of a uniform

The variance of a uniform

—

The CDF of a continuous random variable

In drafting

Where this unit sits in the curriculum

This unit is part of our Essential Probability & Statistics for ML learning path, which contains 205 lessons. Every one of them is drawn below.

The diagnostic test lets you skip any lesson you already know, including the ones in this unit.

Every dot is a lesson and every line a prerequisite. The 7 red dots are the lessons in Continuous random variables; the 164 blue dots feeding into them are the lessons Continuous random variables depends on; the 34 pale dots are the rest of the learning path, which come after Continuous random variables or alongside it.Continuous random variablesFirst lessons on the left205 lessons

Hover any dot to name its lesson.

7 lessons in this unit

164 prerequisite lessons across the unit, counting every step back to the start

34 other lessons in the learning path - after this unit, or alongside it

Every dot is a lesson, every line a prerequisite. You can only start a lesson once you have mastered all of its prerequisites, so you are always building on solid foundations.

Start Continuous random variables

One subscription covers every learning path, and you can test out of anything you already know.

One subscription covers every learning path · 30-day money-back guarantee

More in Probability and Statistics: Sample spaces and events, Counting, Probability fundamentals, Conditional probability and independence, Bayes' theorem and evidence, Discrete random variables, Expectation and variance, Named discrete distributions, Multiple discrete random variables, Sums, covariance and correlation