Discrete random variables and the Bernoulli model
A discrete random variable assigns numerical values to outcomes that can be counted, such as defects, late flights, or customer purchases. Its probability mass function (PMF) gives the probability of each value; the cumulative distribution function (CDF) adds probabilities up through a value. These let us describe both individual outcomes and ranges of outcomes.
The expectation is the probability-weighted average, and the variance is the probability-weighted squared distance from that average. The standard deviation is the square root of variance.
A Bernoulli random variable represents one yes/no outcome. Code the event of interest as success, , with probability ; its complement is failure, , with probability . “Success” is a label, not necessarily a desirable outcome: it can mean a purchase, satisfaction, a star-sales day, or any chosen event.
| Meaning | Probability | |
|---|---|---|
| Success | ||
| Failure |
Discrete random variables and the Bernoulli model
Defining success from a business outcome
- A fair die: success is a result of or less, so and .
- A biased die: success is a result of or more, so and .
- Pumps: success is at most one defective pump in a day, ; failure is two or more, .
- Airport: success is at most two late departures in the evening slot, ; failure is three or more, .
- A sales call is a Bernoulli trial if its outcome is purchase/no purchase. A service survey can be coded satisfied/not satisfied. Daily store demand can be grouped as above 10 versus at most 10.
For the fair-die definition, , , and . For the biased die, the corresponding values are , , and . For pumps they are , , and . For late flights they are , , and .
If an insurance call converts with probability , then , , , and . The expectation means 20% of calls convert in the long-run average; it does not predict a fraction of a purchase on any one call. For a “star day” defined as sales above 10,000, : the mean is , variance , and standard deviation .
Key takeaways
- A PMF describes exact values; a CDF describes all values up to a threshold.
- Bernoulli coding reduces any chosen two-outcome event to and .
- The mean and variance are and ; define the success event before calculating.
Binomial distribution
A binomial experiment repeats the same Bernoulli trial a fixed number of times. It requires a fixed , exactly two outcomes per trial, independent trials, and the same success probability on every trial. The binomial random variable counts successes and takes values . It counts how many successes occur, not their positions in the sequence.
For exactly successes, one particular arrangement has probability . There are arrangements of those successes among trials, so:
The mean adds the expected successes across trials; independence makes the variances add as well.
Binomial distribution
Computing exact, cumulative, and tail probabilities
Translate wording carefully: “at most ” means ; “at least ” means ; “more than ” means ; “between and , inclusive” means . Complements often shorten a calculation: .
For spreadsheet work, a binomial PMF function takes the target , trial count , probability , and a cumulative toggle: non-cumulative returns ; cumulative returns . A table of PMF, CDF, and tail values makes ranges and parameter changes easier to inspect. An inverse probability problem reverses the usual direction: find a parameter such as that makes a specified probability reach a target.
Worked examples: biased die and defective pumps
Ten biased-die tosses. Success is or more, so , , .
For at least three successes, add the probabilities for through ; the reported result is . To raise this probability to at least , changing gives at , at , at , at , and about at . Thus meets the target in the reported calculation.
Fourteen production days. A success day has at most one defective pump, with , , and .
Adding for (reported endpoint values include , , and ) gives . Raising to , , and gives reported tail probabilities , , and ; at the probability is just over .
Worked examples: airport delays, sales calls, and star days
Thirty airport days. A success is a day with at most two late flights, , , . The reported . At most 10 failure days is equivalent to at least 20 success days, so . For 15 through 25 successes inclusive, sum those eleven PMF values: the reported total is .
Twelve insurance calls. With , , and :
The source first asks for at least 10 purchases but then calculates at least 6; its numerical result is for the latter: (using the reported , , plus the smaller remaining terms). At most three purchases sums the reported PMF values , reported as (rounding).
Ten store days. A star day means sales above 10,000; , , . The expected count is . At most three star days:
Between three and six inclusive, summing the probabilities for 3, 4, 5, and 6 gives a reported . The source also describes CDF subtraction, but its stated values do not match its result: , not the reported . The direct inclusive sum is retained as reported; the subtraction figures are inconsistent.
Choosing the event and parameters from context
These examples emphasize that changing the event changes , while changing the observation period changes :
| Question | Success event and | Required probability | Reported result | |
|---|---|---|---|---|
| Pump days with no defects, at least 7 of 14 | 14 | No defects, | ||
| Days with at least 3 pump defects, at most 3 of 7 | 7 | At least 3 defects, | ||
| At most one pump defect on all 14 days | 14 | At most one defect, | ||
| Airport days with at most one late flight, at least 15 of 30 | 30 | At most one late flight, | ||
| Airport days with exactly 4 late flights, at most 5 of 10 | 10 | Exactly 4 late, | ||
| Airport days with at most 2 late flights, exactly 15 of 30 | 30 | At most 2 late, |
The pump distribution implies , , and in these examples. “No defects” is not the same success event as “at most one defect.” Likewise, “exactly four late flights” is different from “four or fewer.”
The model is useful only while its assumptions are credible. If trial outcomes depend on earlier outcomes or success probabilities vary, the sequence is not binomial; another model is needed. The binomial assumptions are an abstraction, so assess whether they are reasonable for the application.
Key takeaways
- The binomial counts successes in independent, identical Bernoulli trials with fixed .
- , with mean and variance .
- Wording determines the event: inclusive ranges, complements, and strict versus inclusive thresholds matter.
- Correctly defining success and the trial unit is the main business-translation task.
Poisson distribution and process
A Poisson random variable counts how many times an event occurs in a specified interval of time or space. It takes non-negative integer values . Examples include arrivals in a time window, road defects along a distance, or flagged terms in a conversation. Its single parameter is the average count for the interval under consideration.
The mean and variance are both , so . The model assumes the occurrence probability is the same across equal-length intervals and occurrences in separate intervals are independent. These assumptions distinguish the model from a changing-rate process.
Poisson distribution and process
Poisson process and scaling the interval
A Poisson process describes event counts through time. The intervals between successive events are independent and identically distributed exponential random variables. If the event rate is per unit and the observation length is , the expected count for that interval is:
For example, at 10 arrivals per hour, the expected count over two hours is ; over half an hour it is . The rate is not itself the mean for every interval; rescale the mean whenever the window changes.
A spreadsheet table can calculate the PMF, cumulative sums, and tail sums. For instance, , and . As with the binomial, carefully distinguish from .
Time-based examples
Eatery arrivals. With an average of 10 customers per hour, . The reported probability of exactly eight arrivals is . More than ten means , reported as . In 30 minutes, ; exactly four arrivals has probability . At most 10 in 30 minutes is .
Social-media likes. Average weekly likes are 14, so for a week . At least 10 is reported as . The inclusive range 10–20 sums the eleven PMF terms and is reported as . A day has mean : at least five likes is , and zero likes is .
Call-center arrivals and a break. Six calls per 15 minutes gives a rate of calls per minute. In five minutes, , so exactly three calls is reported as . In 15 minutes, , and exactly 10 calls is reported as . In a three-minute break, ; the probability of no interruption is .
Space-based examples and interpreting a fixed range
Mall entry window. A rate of 180 visitors per hour gives a ten-minute mean of . The probability of 10–20 arrivals inclusive is reported as . At rates of 150 and 210 per hour, the ten-minute means are 25 and 35; the same range has reported probabilities and . The probability falls as the mean moves to the right, away from the fixed 10–20 window. It is the location of the window relative to the distribution—not simply whether the rate rose or fell—that explains the result.
Road defects. At three defects per kilometre, a one-kilometre stretch has . At least three defects is reported as ; at most five is . An eight-kilometre stretch has mean . Thus at most 40 defects is , and at least 20 is . Raising the one-kilometre probability to the fifth power would impose the much narrower condition that every one of five sections contain at most five defects; that is not equivalent to the total across eight kilometres being at most 40.
Flags across conversations. With an average of five flags per conversation, : 2–8 flags inclusive is reported as , and “more than 10” means ; the source’s table lookup of corresponds to , so its event threshold and reported lookup do not agree. For two conversations the mean is : 4–16 inclusive is reported as . Fewer than four means , not .
Key takeaways
- A Poisson model counts occurrences over a defined time or space interval.
- The parameter is the interval’s expected count; multiply rate by interval length to rescale it.
- The mean and variance equal ; the standard deviation is .
- Use CDFs, tails, or sums of PMF terms according to exact event wording.
Additional worked applications: risk, portfolios, and sampling
Insurance claims: expected cost, pricing, and risk protection
An insurer’s claim payment is discrete, with values described as ₹0, ₹500, ₹1,000, ₹2,500, ₹5,000, ₹7,500, and ₹10,000. The listed probabilities are said to sum to one. The individual probabilities for several amounts are not all reproduced in the source; it reports the resulting expectation as ₹1,235. The expectation calculation is the weighted sum:
For variance, square each deviation from ₹1,235, weight by its probability, and sum. The reported result and standard deviation are:
The reported break-even premium is the expected claim payment, ₹1,235, before any other costs are considered. At an annual premium of ₹3,000, the policyholder’s expected net value, defined here as expected claims minus premium, is:
The policy can still be valuable as protection against a large repair bill: expected value alone does not capture the value of avoiding a severe loss.
Two-stock portfolio: covariance and diversification
Let and be returns on stocks A and B. Their expected returns are 6% and 5%; standard deviations are 4% and 2%. The stated covariance is in the source’s percentage-point-squared calculation. Correlation standardizes covariance:
This negative relationship means the returns tend to move in opposite directions, which can reduce portfolio variability. For an investment of ₹5,000 in stock A alone, expected gain is , expected ending value is ₹5,300, and the standard deviation of the investment value is .
For portfolio weights , the mean is the weighted mean and variance includes the covariance term:
Equal investment. With , expected return is:
Using the source’s squared percentage-point units, , , and covariance :
The reported equal-weight portfolio has expected return 5.5% and standard deviation 1.87%, below either individual stock’s standard deviation.
70% A and 30% B.
This portfolio has greater expected return and risk than the equal-weight portfolio; the choice depends on risk appetite. The covariance units are not explicitly stated, so the calculations above retain the source’s convention of percentage-point units.
Retirement savings: binomial probabilities from a CDF table
Suppose each randomly selected adult independently has probability of saving nothing for retirement. With , let success mean “saves nothing.” An exact probability can be recovered from a cumulative table by subtraction:
The transcript instead reports subtracting the cumulative value at four from that at five, with values and , and gives . The displayed subtraction is , so the source’s stated operands and result do not agree; retain this as an unresolved table-index or transcription error. The other reported results are and:
Stock-market participation by age group
The source gives participation probabilities of for ages 18–29 and for ages 50–64. For a sample of 25 people aged 18–29, the expected number investing is:
The reported probability that at most 10 invest is . For 15 people aged 50–64:
The reported probability at least 10 invest is .
Bank arrivals: Poisson counts over longer windows
With an average of two customers per minute, the one-minute count has . The reported probability of at most two arrivals is . Over two minutes, ; at least four arrivals is:
Over a five-minute break, . Exactly ten arrivals is obtained by differencing adjacent CDF values:
The transcript reports for this calculation, which does not equal the subtraction of its stated values; its CDF operand or result is unclear.
Key takeaways
- Discrete distributions support expected cost and risk calculations as well as event counts.
- Portfolio variance depends on covariance; negative covariance can reduce combined risk.
- CDF tables answer exact-value questions by differencing adjacent cumulative probabilities.
- Check arithmetic and table indices when reported values conflict with their stated operands.
Putting the three distributions together
| Model | What is counted | Parameters | Mean | Variance |
|---|---|---|---|---|
| Bernoulli | Success in one trial | |||
| Binomial | Successes in trials | |||
| Poisson | Occurrences in an interval |
The Poisson and binomial PMFs, means, and variances connect when is small and is large enough that remains the relevant average: then is near one, making binomial mean and variance both close to . This explains why the distributions can look similar in that setting. Discrete distributions describe countable values; continuous random variables can also take fractional values and require adjustments to the probability analysis.
Key takeaways
- Bernoulli is one two-outcome trial; binomial aggregates a fixed number of such trials.
- Poisson models event counts over an interval with a rate-based expected count.
- Always identify the modeled quantity, interval or trial count, parameters, and requested event before calculating.
Revise before your examAll 1 exam tip from this module in one list
- Write down the unit of a trial, the precise success event, , , and the target event before opening a table. This prevents confusing “at least” with “more than,” or a count of successes with the number of trials.
Test yourself on this module
Questions from these notes, one at a time, with feedback. Your weak topics are saved.