Mathematics · live now

Discrete random variables

Turn the outcomes of an experiment into numbers. Start with what a random variable is and the events it describes, then tell discrete from continuous random variables, build a probability mass function and read its shape, and find probabilities from the cumulative distribution function.

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

See the full learning path

4

lessons

48

practice questions

30

prerequisite lessons

See it taught

1 of the 4 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 random variable?

Ω
HH
HT
TH
TT

Step 1: An outcome

The diagram draws each outcome as an oval inside Ω. An outcome is one element of Ω, one result of the experiment, such as HT.

Step 2: An event

An event is a set of outcomes. The event "exactly one head" is the set {HT,TH}.

Step 3: The probability P

P assigns each event a probability, so its one arrow starts from the whole set. For fair coins,

P({HT,TH})=12

Step 4: The random variable X

A random variable X assigns each outcome a number, so an arrow starts from every outcome. Here X counts heads.

Step 5: What is random?

Tossing the coins picks one outcome at random, with chances given by P. The arrows, the rule, never change.

Only the outcome is random. The value of X follows from it.
Toss the coins to pick an outcome.HH, so X=2HT, so X=1TH, so X=1TT, so X=0

The diagram from the lesson itself, running live.

4 of 8 lessons

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

01

What is a random variable?

Preview

12 questions

Learn what a random variable is, find its value on each outcome, and use its values to describe events.

Covers

What a random variable is

The value of a random variable

Events described by a random variable

Preview this lesson - no account needed

02

Discrete and continuous random variables

12 questions

Learn to tell whether a random variable is discrete or continuous, and to find the support of a discrete random variable, the set of values it can take.

Covers

Discrete or continuous?

The support

Finding a support from the outcomes

03

Probability mass functions

12 questions

Learn how to build the probability mass function of a discrete random variable from its outcomes, add its entries to find the probability of any event about the variable, and check the two conditions every PMF meets.

Covers

Building a PMF from the outcomes

Probabilities from a PMF

Checking a PMF is valid

04

PMFs given by a formula

12 questions

Learn to turn a probability mass function given by a formula into its table and check it is valid, find the unknown constant that makes a formula a PMF, and use it to find probabilities.

Covers

From a formula to a table

Finding an unknown constant in a PMF

Probabilities from a PMF with an unknown constant

—

Functions of a random variable

In drafting

—

Bar charts and the shape of a distribution

In drafting

—

The cumulative distribution function

In drafting

—

Probabilities from a CDF

In drafting

Where this unit sits in the curriculum

This unit is part of our Essential Probability & Statistics for ML learning path, which contains 88 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 4 red dots are the lessons in Discrete random variables; the 30 blue dots feeding into them are the lessons Discrete random variables depends on; the 54 pale dots are the rest of the learning path, which come after Discrete random variables or alongside it.Discrete random variablesFirst lessons on the left88 lessons

Hover any dot to name its lesson.

4 lessons in this unit

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

54 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 Discrete 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