A random variable is a measurable function from a sample space to the reals, and its distribution assigns probabilities to the values it takes. This note builds up the machinery of PMFs, PDFs, CDFs, and the standard distributions used throughout MIE286. See Primer on Probability for the underlying axioms.
Sample Space, Events, Random Variables
- Sample space : the set of all outcomes of an experiment.
- Event: a subset assigned a probability.
- Probability measure satisfies the Kolmogorov axioms: , , and countable additivity for disjoint .
A random variable (RV) maps outcomes to numbers so we can reason about distributions instead of raw outcomes. Formally must be an event for every .
Discrete vs Continuous
| Type | Values | Described by | Normalization |
|---|---|---|---|
| Discrete | countable set | PMF | |
| Continuous | interval of | PDF , |
PMF, PDF, CDF
The cumulative distribution function (CDF) works for both types:
- Discrete: , a right-continuous step function.
- Continuous: , so wherever the derivative exists.
is nondecreasing, right-continuous, with and . Interval probabilities: .
PDF is not a probability
can exceed ; only its integral over an interval is a probability. The product approximates .
Key Distributions
| Distribution | PMF / PDF | Mean | Variance | MGF |
|---|---|---|---|---|
| Bernoulli() | , | |||
| Binomial() | ||||
| Geometric() | , | |||
| Poisson() | ||||
| Uniform() | on | |||
| Exponential() | , | , | ||
| Normal() |
Reading the moment generating function (MGF) and its uses is covered in Expectation and Moments.
- Binomial counts successes in independent Bernoulli trials.
- Geometric counts trials until the first success and is the discrete memoryless distribution.
- Poisson models rare event counts and is the , limit of the binomial.
- Exponential models waiting times and is memoryless: .
- Normal is the limit in the Central Limit Theorem.
Standardizing the normal
If then , reducing every normal probability to a standard normal table lookup.
Example: Poisson as a Binomial Limit
Let with fixed as . Then
The falling factorial and . So counts of many rare independent events are approximately Poisson.
Transformations of Random Variables
Given , the distribution of follows from that of .
- CDF method (general): compute directly, then differentiate.
- Change of variables for monotonic differentiable : .
- Non-monotonic : split the domain into monotonic pieces and sum their contributions.
Support and Jacobian errors
When transforming, always track the new support (range of ) and never drop the absolute value of the Jacobian. Forgetting either produces a “density” that fails to integrate to .