Discrete Probability Distributions
Overview
This section covers discrete random variables and their probability distributions.
Key Definitions
A random variable is a function that maps outcomes in the sample space to real numbers. Formally, .
A random variable is discrete if it takes on a countable number of distinct values.
For a discrete random variable , the PMF is a function that gives the probability that takes the value .
The CDF of a random variable is defined as for all .
The expected value (or mean) of a discrete random variable is defined as , provided the sum converges.
The variance of a random variable is defined as .
The variance measures the spread or dispersion of the distribution around the mean.
The standard deviation of a random variable is the square root of the variance:
The standard deviation has the same units as and provides a measure of spread in the original units.
Random variables and are independent if for all values and :
Equivalently, knowing the value of provides no information about .
Properties:
- If and are independent, then
- If and are independent, then
Multiple random variables: are mutually independent if for all values :
Common Discrete Distributions
Bernoulli Distribution
A random variable follows a Bernoulli distribution with parameter , denoted , if and .
- Parameter: = probability of success
- Support:
- Applications: Binary outcomes in CS (success/failure, true/false)
Binomial Distribution
A random variable follows a Binomial distribution with parameters and , denoted , if it represents the number of successes in independent Bernoulli trials. The PMF is:
- Parameters: = number of trials, = probability of success per trial
- Support:
- Relationship: Sum of independent Bernoulli random variables
Geometric Distribution
A random variable follows a Geometric distribution with parameter , denoted , if it represents the number of trials needed to get the first success in a sequence of independent Bernoulli trials. The PMF is:
- Parameter: = probability of success per trial
- Support:
- Memoryless Property:
Poisson Distribution
A random variable follows a Poisson distribution with parameter , denoted , if its PMF is:
- Parameter: = average rate of occurrence
- Support:
- Applications: Network traffic, system failures, rare events
Key Formulas
Expected Value
For a discrete random variable :