Lesson 1: Random Variables
Introduction to random variables, discrete and continuous.
Lesson 1: Random Variables
Definition
A random variable is a function that assigns a real number to each outcome in the sample space of a random experiment.
Types of Random Variables
- Discrete Random Variables: Take on a countable number of distinct values (e.g., number of heads in 3 coin tosses).
- Continuous Random Variables: Take on an infinite number of possible values (e.g., height of a person).
Probability Mass Function (PMF)
For a discrete random variable , the PMF is defined as: where and .
Expectation
The expectation (or mean) of a discrete random variable is: