Probability · Discrete Random Variables
Discrete Random Variable — PMF, Expectation and Variance
Explanation
What is a random variable?
A random experiment ends in an outcome. A random variable is a function that assigns a real number to each outcome in the sample space .
> "How many heads in 2 coin flips?" — that is a random variable.
A discrete random variable takes a countable set of values (finite or countably infinite).
Probability Mass Function — PMF:
Requirements:
1. for all
2.
Cumulative Distribution Function — CDF:
Properties: monotone non-decreasing, , , jumps at points where .
**Expectation :**
Expectation is the probability-weighted average of 's values.
Law of the unconscious statistician:
Linearity of expectation: .
**Variance :**
where . The computational shortcut:
Standard deviation: .
A random experiment ends in an outcome. A random variable is a function that assigns a real number to each outcome in the sample space .
> "How many heads in 2 coin flips?" — that is a random variable.
A discrete random variable takes a countable set of values (finite or countably infinite).
Probability Mass Function — PMF:
Requirements:
1. for all
2.
Cumulative Distribution Function — CDF:
Properties: monotone non-decreasing, , , jumps at points where .
**Expectation :**
Expectation is the probability-weighted average of 's values.
Law of the unconscious statistician:
Linearity of expectation: .
**Variance :**
where . The computational shortcut:
Standard deviation: .
Interactive Visualization
Loading visualization
Worked Examples
Practice
Exercise 1 of 6
1
A fair die with . What is ?
★Quiz
Test your knowledge from this lesson
A mix of questions from the lesson — each attempt varies slightly
Answer at least 4 out of 5 questions correctly to pass (70%)