5. Discrete Random Variables: Expected Value, Binomial, and Poisson
Explanation
Random variables
A random variable (RV), written with a capital letter such as X, is a numerical description of the outcome of an experiment; a lowercase x is one specific value it can take. Its value is only known after the experiment is performed. A discrete random variable takes a countable list of values (number of heads, number of defects). Its probability distribution function (PDF) is a table, graph, or formula giving P(X = x) for every value x.
Two requirements for a valid discrete distribution:
- Each probability is between 0 and 1, inclusive.
- The probabilities add up to exactly 1.
Expected value (mean) and standard deviation
The expected value (mean) μ = E(X) = Σ x·P(x) is the long-term average if the experiment is repeated many times. It need not be a possible value of X. In games of chance, if the expected net gain is negative, the player loses on average in the long run. The variance is σ² = Σ (x − μ)²·P(x), equivalently Σx²P(x) − μ², and the standard deviation σ = √σ² measures how far outcomes typically fall from the mean.
Binomial distribution
A Bernoulli trial has exactly two outcomes, "success" and "failure", with success probability p (and q = 1 − p for failure). A binomial experiment has three conditions:
- A fixed number n of trials.
- Only two outcomes on each trial.
- The trials are independent and run under identical conditions (p stays constant).
X = number of successes in n trials has the binomial distribution, written X ~ B(n, p). The probability of exactly x successes is P(X = x) = C(n, x)·p^x·q^(n−x), where C(n, x) counts the ways of choosing which trials are successes. Its mean is μ = np and its standard deviation is σ = √(npq). "At least" and "at most" questions add up several terms or use the complement.
Typical sign that a problem is binomial: "out of n independent attempts, how many succeed?" If instead you sample without replacement from a small group, trials are not independent and the hypergeometric model is the exact one; if you count trials until the first success you have a geometric distribution (mean 1/p). The textbook covers these two as relatives of the binomial.
Poisson distribution
The Poisson distribution counts how many times an event occurs in a fixed interval of time, area, or volume. Conditions: events occur independently, the probability of an event in a given interval is the same for all intervals of that size, and events occur at a known average rate. It is described by the mean μ (often called λ), written X ~ P(μ), with P(X = x) = e^(−μ)·μ^x / x!, where x = 0, 1, 2, … Its mean and variance both equal μ, so σ = √μ. The mean scales with the interval: 4 arrivals per hour means μ = 2 for a half-hour window.
The Poisson distribution is often used to approximate the binomial when n is large and p is small (rule of thumb: n ≥ 20 and p ≤ 0.05), with μ = np. It also connects to the exponential distribution: if the waiting times between events are exponential, the number of events per unit time is Poisson.
Choosing the right model
Ask what is being counted. If you have a fixed number of independent yes/no trials and count the successes, use the binomial. If you count random events in an interval with no fixed upper limit, use the Poisson. If the values and probabilities are simply listed, work directly from the table using the definitions of mean and variance.
Common mistakes
Using a binomial when trials are not independent; mixing up "at least" with "at most"; forgetting to rescale the Poisson rate to the interval in the question; forgetting that variance must be computed around the mean, not around zero.
Practice tasks
- X takes values 0, 1, 2 with P = 0.2, 0.5, k. Find k.
- A game costs $2 and pays $10 with probability 0.1 (otherwise nothing). Find the expected net gain.
- Distribution: x = 0, 1, 2, 3 with P = 0.1, 0.3, 0.4, 0.2. Find μ, σ².
- X ~ Binomial(n = 10, p = 0.3). Find P(X = 2), the mean, and the standard deviation.
- X ~ Binomial(5, 0.5). Find P(X ≥ 4).
- Calls arrive at an average of 3 per minute (Poisson). Find P(X = 0), P(X = 2), P(X ≥ 1) for one minute.
- X ~ Binomial(8, 0.6): find P(X ≥ 7). Also, arrivals average 4 per hour; find P(at most 1 arrival in 30 minutes).
Original author (OpenStax, Rice University). License / permission: CC BY-NC-SA 4.0. If you noticed a mistake or copyright issues, please contact: lebroskiofficial@proton.me