Before you start
You will be able to
- Describe a discrete random variable with a probability distribution, and calculate its expected value, variance and standard deviation.
- Identify when a count follows a binomial distribution, and calculate binomial probabilities, the mean np and the standard deviation √(np(1 − p)) by hand and with BINOM.DIST and BINOM.DIST.RANGE.
- Identify when a count follows a Poisson distribution, calculate its probabilities with POISSON.DIST, and compare observed counts with a Poisson model.
- Explain when the Poisson approximates the binomial, and how the exponential distribution describes the time between Poisson events.
- Use expected values and standard deviations to compare decisions under uncertainty.
Review first
- Probability — Independence, the multiplication rule, complements and COMBIN are the building blocks of the binomial.
- Describing distributions — The mean, variance and standard deviation of data, which this lesson extends to random variables.
- What finance is: money, time and risk — Expected value as a probability-weighted average of outcomes.
Fictional case A fictional coffee business founded by Ana Lim. It starts as a catering and barista-training service, opens its own cafés and an online shop for beans, and plans a canned cold brew.
The idea
Fictional case
Ana is planning for the busy months. 45.0% of the spring orders were subscriptions: how many subscriptions should she expect among the next 20 orders, and how far might that number swing? The shop averaged 1.89 orders a day: how often will a day bring none, or five or more? And how many gift boxes should she take to a Saturday Christmas market, when she can only guess how many will sell? Each question is about a count that can’t be known in advance.
Random variables and their distributions
A random variable is a number determined by the outcome of an experiment: the number of orders on a day, the number of subscriptions in 20 orders, the number of boxes sold. A discrete random variable takes separate values, usually counts 0, 1, 2, …; a continuous one, such as a weight, can take any value in a range, and is the next module’s subject. Random variables are written with capitals, , and the values they take with lower case, .
The probability distribution of a discrete random variable lists every value it can take with its probability. Each probability is between 0 and 1, and they add to 1. For a spring day drawn at random, the number of shop orders has the distribution below, from the counts of the 122 days.
| Orders on the day, x | 0 | 1 | 2 | 3 | 4 | 5 | Total |
|---|---|---|---|---|---|---|---|
| Days | 18 | 35 | 33 | 18 | 14 | 4 | 122 |
| P(X = x) | 0.148 | 0.287 | 0.270 | 0.148 | 0.115 | 0.033 | 1.000 |
Expected value and standard deviation
The expected value of a random variable, or , is the probability-weighted average of its values, : the long-run average if the experiment were repeated many times. For orders per day it is , which is exactly 231 orders ÷ 122 days. An expected value needn’t be a possible value: no day has 1.89 orders.
The variance of a random variable weights each squared distance from by its probability, , and the standard deviation is its square root. For orders per day, and orders. There is no here: the probabilities describe the distribution itself, like a population.
The binomial distribution
The number of subscriptions among Ana’s next 20 orders is a count of “successes” in a fixed number of tries. The binomial distribution describes such counts when four conditions hold: a fixed number of trials ; two outcomes on each trial, success or failure; the same probability of success on every trial; and trials that are independent of each other. Then the number of successes can be anything from 0 to .
Where does its formula come from? Take three orders, each a subscription (S) with probability or one-off (F) with probability . By the multiplication rule for independent trials, any particular sequence with two subscriptions, such as SSF, has probability . There are such sequences, so . In general:
For the next 20 orders, with from the spring, the chance of exactly 9 subscriptions is , or =BINOM.DIST(9,20,104/231,FALSE). A binomial count has mean and standard deviation : Ana should expect about 9 subscriptions, give or take about 2.
The Poisson distribution
Orders per day are a different kind of count: there is no fixed number of trials, only orders arriving over time. The Poisson distribution describes the number of events in a fixed interval of time or space when they happen independently of each other, at a constant average rate (“lambda”), and never two at exactly the same moment. Its one parameter, , is both its mean and its variance. The mean scales with the interval: if a day averages orders, half a day averages and a week , and the count in each is Poisson with that mean.
With orders a day, the chance of a day with no orders is , or =POISSON.DIST(0,231/122,FALSE). Multiplying each probability by 122 days gives the number of days the model expects with each count, set against what happened:
| Orders on the day | Observed days | Poisson probability | Expected days |
|---|---|---|---|
| 0 | 18 | 0.1506 | 18.4 |
| 1 | 35 | 0.2851 | 34.8 |
| 2 | 33 | 0.2699 | 32.9 |
| 3 | 18 | 0.1703 | 20.8 |
| 4 | 14 | 0.0806 | 9.8 |
| 5 or more | 4 | 0.0436 | 5.3 |
| Total | 122 | 1.0000 | 122.0 |
The model fits closely: 18 days without an order against 18.4 expected, 35 with one against 34.8. The largest gap is at 4 orders, 14 days against 9.8. A second check uses the Poisson’s mean = variance property: the days’ sample variance is 1.782, close to their mean of 1.893. Whether the gaps are larger than chance would produce is a goodness-of-fit question, which module 4’s chi-square test answers.
In depth
Binomial probabilities in Excel
=BINOM.DIST(number_s,trials,probability_s,cumulative) returns the probability of exactly successes when cumulative is FALSE, and of at most when it is TRUE. Other questions are built from these. “At least 12” is the complement of “at most 11”: =1-BINOM.DIST(11,20,104/231,TRUE) = 0.1312. =BINOM.DIST.RANGE(trials,probability_s,number_s,[number_s2]) gives the probability of a range, both ends included: =BINOM.DIST.RANGE(20,104/231,6,12) = 0.8866. Microsoft lists it for Excel 2016 and later.
Two slips cause most wrong answers. For “at least ” the cumulative probability to subtract stops at , because ; subtracting gives , 0.0583. And FALSE and TRUE answer different questions: FALSE is a single bar of the distribution, TRUE everything up to and including it. BINOM.INV goes the other way: =BINOM.INV(20,104/231,0.95) = 13 is the smallest count with at least a 95% chance of not being exceeded.
Are the binomial conditions met?
The binomial is a model, and its conditions should be checked against how the orders really arrive. Two outcomes and a fixed n are clear. Constant p is doubtful: app orders were subscriptions 57.6% of the time and web orders 35.6%, so if the next 20 orders were all app orders the right would be 0.576, and would be 0.507 rather than 0.131. Independence fails if one customer places several of the 20 orders, because a subscriber’s orders are all subscriptions.
Sampling without replacement breaks independence slightly, as the probability lesson showed. When the number drawn is less than about 10% of the population, the binomial is still a good model; for larger shares the hypergeometric distribution, which counts without replacement, is the exact one. A binomial probability is only as good as these conditions, so state the p you used and where it came from.
Mean and spread of a binomial count
For a binomial count, and . The spread is largest when and shrinks towards 0 as nears 0 or 1, when almost every trial goes the same way. Two standard deviations either side of the mean, 4.6 to 13.5, cover the counts 5 to 13, which have probability 0.960 together: close to the empirical rule’s 95%, because a binomial with and both above 5 is roughly bell-shaped.
Poisson probabilities and conditions
=POISSON.DIST(x,mean,cumulative) works like BINOM.DIST: FALSE for exactly events, TRUE for at most . The chance of a busy day with 5 or more orders is =1-POISSON.DIST(4,231/122,TRUE) = 0.0436, about 5.3 days in a spring of 122; 4 happened. Microsoft’s example of a Poisson count is cars arriving at a toll plaza in one minute.
The Poisson conditions are worth testing against what you know. Orders come from many separate customers, which supports independence. A constant rate is less certain: orders may cluster after a marketing email or on certain weekdays, and either would make busy and quiet days more common than the model says, so the variance would exceed the mean. A variance well above the mean, called overdispersion, is the usual sign that a Poisson model is too simple.
The Poisson as an approximation to the binomial
When is large and small, a binomial count is close to a Poisson count with . For 200 visits converting at 2% (fictional), the binomial chance of at most 2 orders is 0.2351 and the Poisson chance with is 0.2381. OpenStax notes that there is no single accepted rule for when the approximation is good; one example it gives is greater than 20 with less than 0.05. With Excel’s BINOM.DIST at hand, the approximation matters mainly as a reason why rare events in large populations look Poisson.
Choosing a model for a count
- Is there a fixed number of trials, each a success or a failure? Then start from the binomial, and ask whether p is the same for every trial and the trials are independent.
- Are events counted over an interval of time or space, with no upper limit set by a number of trials? Then start from the Poisson, and ask whether the rate is steady and the events independent.
- Is the quantity measured rather than counted, such as a weight, a time or an amount of money? Then it is continuous: the normal distribution (next module) and the exponential are models for such quantities.
- Whatever the model, compare it with data before relying on it: observed against expected counts, the mean against the variance, and the conditions against what you know about how the data arise.
Time between events: the exponential distribution
If events follow a Poisson process at rate , the time between one event and the next follows an exponential distribution with mean . Its probability of a gap longer than is , and Excel’s =EXPON.DIST(x,lambda,TRUE) gives the chance of a gap of at most . With 1.893 orders a day, the average gap is 0.528 days, about 12.7 hours, and a gap of more than a day has probability : the same as a day with no orders, as it must be.
The exponential is continuous, a preview of the next module, and it is memoryless: however long it has been since the last order, the wait for the next one has the same distribution. That is realistic for many separate customers and unrealistic for anything that wears out or follows a schedule. Real orders also arrive unevenly through the day, so a model with a constant rate is a simplification; =EXPON.DIST(0.25,231/122,TRUE) = 0.377 is the chance of an order within six hours only if the rate really is constant around the clock.
Formulas
Expected value, variance and standard deviation of a discrete random variable
- The random variableits units
- Its expected valueits units
- A value it can takeits units
- The probability that X = x
- Expected value (mean)its units
- Standard deviationits units
Assumes. The probabilities cover every value and add to 1.
In Excel, with values in A2:A7 and probabilities in B2:B7: =SUMPRODUCT(A2:A7,B2:B7).
Binomial distribution (BINOM.DIST)
- Probability of exactly k successes
- Number of independent trials
- Probability of success on each trial
- Number of successes, 0 to n
- Number of ways to place k successes among n trials: COMBIN(n,k)
- The number of successes
Assumes. Fixed n, two outcomes, constant p, independent trials.
=BINOM.DIST(k,n,p,FALSE) for exactly k, TRUE for at most k; =BINOM.DIST.RANGE(n,p,k1,k2) for k1 to k2 inclusive.
Poisson distribution (POISSON.DIST)
- Probability of exactly k events
- Average number of events in the intervalevents per interval
- Number of events, 0, 1, 2, …
- The number of events in the interval
- k factorial
Assumes. Events occur independently, at a constant average rate, one at a time.
=POISSON.DIST(k,lambda,FALSE) for exactly k, TRUE for at most k.
Exponential distribution (EXPON.DIST)
- Probability that the gap is at most t
- Expected (mean) gaptime
- Time between consecutive eventstime
- A length of timetime
- Event rate per unit of timeevents per unit time
Assumes. Events follow a Poisson process with a constant rate.
=EXPON.DIST(t,lambda,TRUE); the standard deviation is also 1 ÷ λ.
Worked examples
Fictional figures
Using the distribution of orders per day above (18, 35, 33, 18, 14, 4 days with 0 to 5 orders, out of 122), calculate the expected number of orders on a spring day and its standard deviation, by hand and in Excel.
- Probabilities: divide each count of days by 122, giving 0.148, 0.287, 0.270, 0.148, 0.115, 0.033. They add to 1.
- Expected value: orders. With values in A2:A7 and probabilities in B2:B7,
=SUMPRODUCT(A2:A7,B2:B7). - Variance: . The shortcut gives the same answer. In Excel,
=SUMPRODUCT((A2:A7-E2)^2,B2:B7)with the mean in E2. - Standard deviation: orders.
Answer. E(X) ≈ 1.893 orders a day, standard deviation ≈ 1.33 orders.
What it means. A typical spring day brought about two orders, give or take one or two. The expected value equals the spring’s 231 orders spread over 122 days, and the variance (1.77) is close to the mean (1.89): the first sign that a Poisson model might fit.
Fictional figures
Ana treats each of the next 20 orders as a subscription with probability 104 ÷ 231 ≈ 0.450. Find the probability of exactly 9 subscriptions, of at least 12, and of 6 to 12, and the mean and standard deviation. Then say how the answer changes if the next 20 orders all come through the app.
- Check the conditions: 20 orders (fixed ), subscription or not (two outcomes), the spring share as a constant , and independence, which assumes different customers place the 20 orders.
- Exactly 9: ;
=BINOM.DIST(9,20,104/231,FALSE). - At least 12: ;
=1-BINOM.DIST(11,20,104/231,TRUE). From 6 to 12:=BINOM.DIST.RANGE(20,104/231,6,12)= 0.8866. - Mean and spread: and .
- All app orders: with , the mean rises to 11.52 and to 0.507.
Answer. P(X = 9) ≈ 0.177, P(X ≥ 12) ≈ 0.131, P(6 ≤ X ≤ 12) ≈ 0.887; mean 9.0, SD 2.22. For 20 app orders, P(X ≥ 12) ≈ 0.51.
What it means. Even the single most likely count, 9, happens less than one time in five: a binomial count varies a good deal at n = 20. Twelve or more subscriptions would happen about one time in eight with the spring’s mix of orders, but about half the time for app orders, so the answer depends on which p is right. That choice is a business judgement, made before any calculation.
Fictional figures
Lantern has a stall at a Saturday Christmas market (fictional). Gift Box Trios sell at $58 and cost $20 each to make up (B03’s price list); any left over are sold in January at $12, below cost. Boxes come in cartons of 10. Ana’s subjective probabilities for the day’s demand: 10 boxes 0.2, 20 boxes 0.4, 30 boxes 0.3, 40 boxes 0.1. How many should she take?
| Stock | Demand 10 (0.2) | Demand 20 (0.4) | Demand 30 (0.3) | Demand 40 (0.1) | Expected profit | SD |
|---|---|---|---|---|---|---|
| 10 | $380 | $380 | $380 | $380 | $380 | $0 |
| 20 | $300 | $760 | $760 | $760 | $668 | $184 |
| 30 | $220 | $680 | $1,140 | $1,140 | $772 | $344 |
| 40 | $140 | $600 | $1,060 | $1,520 | $738 | $414 |
- Profit for stock and demand : . For 30 boxes and a demand of 20: dollars. The table repeats this for every pair.
- Expected profit of each stock level, weighting by Ana’s probabilities. For 30: dollars. Taking 30 boxes gives the highest expected profit.
- Risk: the standard deviation of profit grows with the stock, from $0 for 10 boxes to $414 for 40, and the worst case falls from $380 to $140. With 30 boxes the worst case is $220; with 20 it is $300.
- Don’t plan for the expected demand alone: it is boxes, but a box left over costs $8 while a sale missed loses $38 of profit, so it pays to carry more than the expected demand.
Answer. Take 30 boxes: expected profit $772 (SD $344), against $668 for 20 and $738 for 40.
What it means. Thirty boxes is the best bet on average, and its worst case ($220) is still a profit. Ana might take 20 if she can’t afford a disappointing day, accepting $104 less on average for a smaller spread. The answer rests on her subjective probabilities, so it is worth asking how much they would have to change before 20 or 40 became the better choice.
Explore
Common mistakes
“P(at least 12) is 1 − BINOM.DIST(12, …, TRUE).”
That subtracts P(X ≤ 12) and leaves P(X > 12), which drops the 12 itself. “At least k” is 1 − P(X ≤ k − 1):
=1-BINOM.DIST(11,20,p,TRUE), or=BINOM.DIST.RANGE(20,p,12,20).“Any count of yes/no outcomes is binomial.”
Only with a fixed number of independent trials and the same p on each. Twenty orders from a mix of app and web customers, or several from one customer, break the constant-p or independence condition. State the p you assume and check whether it holds.
“Plan for the expected value.”
The expected demand for gift boxes is 23, but the stock with the highest expected profit is 30, because unsold and unmet boxes cost different amounts. In general the expected value of a profit is not the profit at the expected demand.
“Any count per period is Poisson.”
The Poisson needs independent events at a constant rate. Orders that bunch after a promotion, or a weekly pattern, make the variance larger than the mean. Compare the mean and the variance, and the observed and expected counts, before relying on the model.
“An expected value is the most likely value.”
It is a long-run average and needn’t be possible: 1.89 orders a day. For subscriptions in 20 orders the most likely count is 9, with a probability of only 0.177.
Guided practice
Work through these with hints when you need them. Every hint and every worked solution is there to be used.
Loading four questions…
On your own
No hints this time. Answer, check, and read the feedback; the solution appears once you have answered or if you ask for it. Your first answers count toward mastery.
Loading six questions…
In practice
Counts drive many operational decisions, and the binomial and the Poisson are the first models a planner reaches for. A call centre sizes its shifts from the Poisson distribution of calls per half hour; an airline that sells more tickets than seats uses the binomial distribution of no-shows; a quality team sets an acceptance rule for a delivery from the binomial distribution of defective items in a sample. In each case the model turns an average into the probability of the bad day the business must plan for.
Expected values are how such decisions are compared, but rarely the whole story. Two plans with similar expected profits can carry very different risks, which the standard deviation and the worst case show; and the probabilities behind an expected value are often judgements, as Ana’s are. Good practice is to show the expected value, the spread and the worst case side by side, and to test how far the inputs can move before the decision changes.
Fictional case
Ana takes 30 gift boxes to the market and writes her stock rule for the shop: over a spring like this one, the Poisson model expects about 18 of 122 days with no orders and about 5 with five or more, so she will keep enough packed stock for a five-order day. For subscriptions she quotes the binomial range, “about 9 in the next 20, usually between 5 and 13”, and notes that the figure assumes the spring’s mix of web and app orders.
Knowledge check
Six questions, one attempt each, no hints. Score 80% or more to complete the lesson; you can take it again at any time.
Loading six questions…
Summary
- A discrete random variable takes separate values; its probability distribution lists each value with a probability, and the probabilities add to 1.
- E(X) = Σ x P(x) is the long-run average; σ² = Σ (x − μ)² P(x) and σ is its square root. In Excel, SUMPRODUCT does both.
- The binomial counts successes in n independent trials with the same p: P(X = k) = C(n, k) pᵏ(1 − p)ⁿ⁻ᵏ, mean np, SD √(np(1 − p)).
- BINOM.DIST(k, n, p, FALSE) is exactly k, TRUE at most k; “at least k” is 1 − BINOM.DIST(k − 1, n, p, TRUE); BINOM.DIST.RANGE gives a range.
- The Poisson counts independent events at a constant rate λ: P(X = k) = e^(−λ) λᵏ ÷ k!, with mean and variance both λ; POISSON.DIST in Excel.
- Check a model against the data: observed against expected counts, and the variance against the mean for a Poisson.
- For large n and small p the binomial is close to a Poisson with λ = np; the time between Poisson events is exponential with mean 1/λ (EXPON.DIST).
- Compare decisions under uncertainty by their expected values and their spread; the expected value of a profit isn’t the profit at the expected demand.
Key formulas
- Expected value, variance and standard deviation of a discrete random variable
- Binomial distribution (BINOM.DIST)
- Poisson distribution (POISSON.DIST)
- Exponential distribution (EXPON.DIST)
Terms introduced
- Random variable
- A number determined by the outcome of an experiment, such as the number of orders on a day. It is discrete if it takes separate values (usually counts) and continuous if it can take any value in a range.
- Probability distribution
- For a discrete random variable, a list or formula giving every value it can take and its probability, with the probabilities adding to 1; for a continuous variable, a density curve whose area over a range is the probability of that range.
- Binomial distribution
- The distribution of the number of successes in n independent trials, each with the same probability p of success; its mean is np and its standard deviation √(np(1 − p)).
- Poisson distribution
- The distribution of the number of events in a fixed interval when events occur independently at a constant average rate λ; its mean and variance both equal λ.
- Exponential distribution
- A continuous distribution of the time between events in a Poisson process with rate λ; its mean is 1/λ and P(T ≤ t) = 1 − e^(−λt).
Sources
- Holmes, A., Illowsky, B. & Dean, S. (2023). Introductory Business Statistics 2e, section 4.2, “Binomial Distribution”. OpenStax. openstax.org/books/introductory-business-statistics-2e/pages…
- Holmes, A., Illowsky, B. & Dean, S. (2023). Introductory Business Statistics 2e, section 4.4, “Poisson Distribution” (conditions, and approximating the binomial). OpenStax. openstax.org/books/introductory-business-statistics-2e/pages…
- Holmes, A., Illowsky, B. & Dean, S. (2023). Introductory Business Statistics 2e, section 5.3, “The Exponential Distribution”. OpenStax. openstax.org/books/introductory-business-statistics-2e/pages…
- Illowsky, B. & Dean, S. (2023). Introductory Statistics 2e, section 4.2, “Mean or Expected Value and Standard Deviation”. OpenStax. openstax.org/books/introductory-statistics-2e/pages/4-2-mean…
- Microsoft Support. “BINOM.DIST function”, with the pages for BINOM.DIST.RANGE, POISSON.DIST and EXPON.DIST. support.microsoft.com/en-us/excel/functions/binom-dist-funct…
- NIST/SEMATECH. e-Handbook of Statistical Methods, sections 1.3.6.6.18, “Binomial Distribution”, and 1.3.6.6.19, “Poisson Distribution”. itl.nist.gov/div898/handbook/eda/section3/eda366j.htm
