Skip to content
DoingCamp CS

Make it comfy

Lesson style

Quick mode shows the key picture, a summary and the practice. Good for a refresher.

Theme
Font

Both fonts are designed to be easy to read. Some readers with dyslexia prefer Lexend.

Text size
Spacing
Animations

Lesson 7 of 20 · about 14 min

Random variables

Usually you don't care about the whole outcome, just one number from it, like the total on two dice. That number is a random variable, and its probabilities make a bar chart called a distribution. You'll predict the shapes, watch thousands of rolls fill them in, and code the PMF yourself.

🔓 Unlock this lesson

This lesson is part of the DoingCamp Pass. Members get every lesson in every course, with all the interactive visuals, coding exercises and challenges.

In this lesson you'll learn:

  • Random variable
  • PMF (probability mass function)

Free to try in F07 Probability & Statistics:

The first 3 lessons of every course are free, no account needed.