- Learn
- Mathematics
- Statistics
- Probability Theory
- Discrete Random Variables
Discrete Random Variables and Their Distributions
IntermediateLesson 2 of 9 in Probability Theory Course
What you will learn
- Treat a random variable as a numerical summary of a random experiment, and describe its distribution with a probability mass function and a cumulative distribution function.
- Define a random variable and its distributionExplain what a random variable is, how statements about it form events, and what it means for two random variables to have the same distribution.
- Build and use a probability mass functionFind the PMF of a discrete random variable from a description of the experiment, check that a PMF is valid, and use it to compute probabilities of events.
- Use the cumulative distribution functionDefine the CDF, draw it as a step function for a discrete random variable, and move between the CDF and the PMF to find probabilities of intervals.
- Define a random variable and its distribution
- Recognize experiments that count successes in a fixed number of trials, with or without replacement, and compute their probabilities with the matching distribution.
- Use Bernoulli random variables and indicatorsModel a single yes-or-no trial with the Bernoulli distribution, and use indicator random variables to turn events into numbers that can be added.
- Apply the binomial distributionRecognize binomial situations, derive and use the binomial PMF, and compute probabilities of the form exactly, at least and at most.
- Apply the hypergeometric distributionCount successes when sampling without replacement from a finite population, and decide when the binomial distribution is a good approximation.
- Use Bernoulli random variables and indicators
- Describe how long it takes to reach the first success, or a fixed number of successes, in independent trials, and keep the counting conventions straight.
- Apply the geometric distributionModel the wait for the first success in independent trials, keep track of the two counting conventions, and use the tail formula and the memoryless property.
- Apply the negative binomial distributionModel the wait for a fixed number of successes, derive the negative binomial PMF, and relate it to the geometric and binomial distributions.
- Apply the geometric distribution
- Use the Poisson distribution for counts of events in an interval of time or space, and use it to approximate counts of many rare events.
- Apply the Poisson distributionUse the Poisson PMF for counts of events in a fixed interval, interpret its parameter as an average count, and adjust the parameter to the length of the interval.
- Approximate counts with the Poisson distributionApproximate binomial counts and other counts of many rare, independent or weakly dependent events with a Poisson distribution, and judge how accurate the approximation is.
- Apply the Poisson distribution
- Find the distribution of a function of one or more random variables, and decide and use whether random variables are independent.
- Find the distribution of a function of a random variableFind the PMF of a new random variable defined as a function of a discrete random variable, including functions that merge several values into one.
- Decide whether random variables are independentDefine independence of random variables, test it with the joint PMF, and distinguish it from same distribution, pairwise independence and conditional independence.
- Find distributions of sums, maximums and minimumsCombine two or more discrete random variables, especially independent ones, by summing over pairs of values or by working with CDFs and tail probabilities.
- Find the distribution of a function of a random variable
- Use the relationships between the named discrete distributions, and choose and check the right model for a described situation.
- Combine, split and condition named distributionsUse the results that link the named distributions: sums of independent counts, Poisson splitting, conditioning on a total, and the limits that connect them.
- Choose and check the right model for a situationRead a described situation, choose the matching discrete distribution with its parameters, check its assumptions, and avoid the common confusions between models.
- Combine, split and condition named distributions
Discrete Random Variables study guide
1Describe a random count
A random experiment can have many outcomes even when the numerical feature you care about has only a few values. Mapping outcomes to numbers lets you describe a count without listing the experiment again for every question. Start with that mapping, organize its probabilities in a mass function, and then collect them in a cumulative function. The difference between a value and a cutoff will matter whenever an event includes or excludes an endpoint.
1.1 From outcomes to numerical values
A random experiment produces an outcome. A random variable assigns a number to that outcome. The assignment is a function, , from the sample space to the real numbers. The outcome is uncertain; the rule assigning the number is fixed.
An outcome and its value
Toss a fair coin three times and let count heads. The outcome HHT gives , while TTT gives . Several outcomes can give the same value: HHT, HTH and THH all give 2. The sample space contains eight outcomes, but the variable takes only four values: 0, 1, 2 and 3. Capital letters name random variables; lowercase letters name numerical values they might take.
This distinction makes probability notation precise. The statement describes an event, the collection of outcomes mapped to 2. Its probability is
Similarly, collects TTT, HTT, THT and TTH, so . An event need not identify one outcome. It only needs to specify which outcomes count as belonging to it.
Support and distribution
A variable is discrete if its values can be listed in a finite list or a countable sequence. Its support consists of the values with positive probability. The heads count has support . A count of unsuccessful attempts before a success can have support : there is no fixed maximum, but each possible count still has a place in a list. Discrete values need not be consecutive integers; a variable taking the values , 0.5 and 4 is also discrete.
The distribution records the probabilities attached to the values. For this heads count, the probabilities are in increasing value order. Adding the probabilities of the desired values finds any event about the count. The notation names the same distribution through a family and its parameters.
Same distribution, different variables
Let count tails in those same tosses. It has the same distribution as . For instance, both counts equal 0 with probability and equal 2 with probability . Yet they never have the same value on a single outcome: equality would require . A shared distribution describes matching probabilities, not matching outcomes or independence.
One experiment can support many variables: the total heads, whether the first toss is heads, or the longest run of heads. Each records a different feature. Taking a square, sum or maximum produces another numerical function of the outcome, so it produces another random variable.
Keep the three objects separate when writing a solution. is a function, is an event, and is a number between 0 and 1. Writing “the probability of ” leaves the event unspecified.
Key Takeaways
- A random variable assigns a number to each outcome.
- An event about a variable collects all outcomes giving the specified values.
- A discrete support can be finite or countably infinite.
- Equal distributions describe equal probabilities, even when the variables differ on every outcome.
1.2 Build a probability mass function
A probability mass function, or PMF, gives the probability of each individual value: . It is zero outside the support. A table and a formula are two ways to describe the same function.
Two checks for validity
Every PMF has nonnegative entries and total probability 1:
Both checks matter. Entries can add to 1 while one is negative, or all be nonnegative while the total is too large. Either defect makes the proposed PMF invalid.
To build a PMF, first identify outcomes and their probabilities. Next list the variable's possible values. For each value, collect every outcome producing it and add the probabilities. Finally check the total. Equal probabilities belong to the elementary outcomes only when the experiment supports that claim; distinct numerical values need not be equally likely.
A sum of two dice
Roll two fair six-sided dice independently and let be their sum. There are 36 equally likely ordered outcomes. The pairs and are distinct because the dice have different positions in the pair.
The sum 7 comes from six pairs, giving . The sum 2 comes only from , giving . Counting all possible sums gives
The numerator rises from 1 to 6 and then falls from 5 to 1. Its total is 36, so the probabilities sum to 1. Treating the eleven sums as equally likely would lose the information about how many pairs produce each one.
For an event, add the masses of its values. Thus
The same rule works for separated values, such as an even sum: include only the masses at 2, 4, 6, 8, 10 and 12.
For the even-sum event, the six included masses have numerators 1, 3, 5, 5, 3 and 1. Their total is 18, giving probability . Listing which support values satisfy the event prevents an interval shortcut from accidentally including odd sums between them.
Turn weights into probabilities
Sometimes the probabilities are given up to a constant. If on , normalization gives , so . Then . The constant scales the whole table; it does not make the entries equal.
More generally, nonnegative weights can be normalized when their total is finite and positive. Set . Infinite supports need a convergent sum. For example, for , so the weights become probabilities . Weights all equal to 1 on the nonnegative integers cannot be normalized: their sum is infinite.
In a stick chart, a stick's height is its mass. Add heights to find a probability; no interval width is involved. If a constructed table misses total 1, inspect missing values and double-counted outcomes before changing individual entries.
Key Takeaways
- A PMF gives point probabilities and is zero outside the support.
- Nonnegative masses must sum to 1.
- Add masses over all values in the requested event.
- Group elementary outcomes by the value they produce.
- Normalize weights only when their sum is finite and positive.
1.3 Read cumulative probabilities and jumps
The cumulative distribution function, or CDF, gathers probability up to a cutoff:
It is defined at every real number, including cutoffs outside the support. For a discrete variable, compute it by adding the PMF entries at values no larger than the cutoff.
What a CDF must do
A CDF is nondecreasing, right-continuous, and tends to 0 at the far left and 1 at the far right. Increasing a cutoff can only add outcomes, which explains why the graph cannot go down. Right-continuity means the value at a jump includes the mass at that point. These properties also characterize CDFs: any function with all three is a CDF.
For integer-valued counts the graph has horizontal segments and upward jumps. More generally, every discrete CDF accumulates point masses; the familiar separated-step picture applies to finite supports and the integer supports of the named families here. Its jump at any value equals that value's probability.
Build a CDF from a table
Let count heads in three fair tosses. Adding the masses in increasing order gives
For example, because a count no larger than 1.5 must be 0 or 1. At 2, the value is already , including the mass at 2. In a sketch, use a filled dot at the left endpoint of each horizontal segment and an open dot at its right endpoint. Joining the jumps with slanted lines would assign intermediate values the count cannot take.
Translate endpoints before subtracting
The CDF includes its endpoint. Consequently,
The subtraction removes everything at or below and retains everything through . With the heads count, .
For integer-valued variables and integer cutoffs,
Thus , while . The difference is precisely the probability at 2. For an interval including its lower integer endpoint, .
For noninteger supports, use left limits to handle excluded upper endpoints or included lower endpoints. The general formulas are and for . The left limit excludes the mass exactly at its cutoff. The integer formulas are special cases because no integer-valued mass lies between consecutive integers.
Recover the individual masses
A jump is the value at the point minus the accumulated probability just before it:
At integer support values this becomes . The heads count gives . PMF and CDF therefore determine each other. When using a CDF table, first write the event with its exact inequalities; the choice of endpoint then follows from whether the boundary mass belongs in the answer.
Key Takeaways
- The CDF includes the cutoff: .
- A CDF is nondecreasing, right-continuous and has limits 0 and 1.
- CDF differences give interval probabilities; check both endpoints.
- A jump size recovers a PMF entry.
- For integer counts, .
2Count successes in a fixed sample
A single success can be recorded as 1, making a count the sum of simple yes-or-no records. Repeating that idea gives different probability models depending on how the sample is collected. Fixed independent trials lead to binomial counts; sampling without replacement leads to hypergeometric counts. Work from the experiment to the formula, with attention to what the counting coefficient represents and which values are actually possible.
2.1 Yes-or-no outcomes and indicator arithmetic
A Bernoulli variable records one yes-or-no result as a number. It equals 1 for success and 0 for failure. With success probability and ,
Write . For both values belong to the support. At the endpoints the variable is constant. The word “success” means the result being counted; a defective component can count as a success even though a defect is undesirable.
Give an event a numerical record
For any event , its indicator equals 1 when occurs and 0 otherwise. For a fair die roll, take to be “a 6 appears.” Then . Every Bernoulli variable is the indicator of its own success event .
Indicators make statements about events easier to combine. Because an indicator takes values 0 and 1, . The complement satisfies : changing occurrence to nonoccurrence swaps the two values.
Intersections and unions
The product equals 1 exactly when both events occur. Hence
This identity holds whether or not the events are independent. It describes values on each outcome, not a rule for multiplying probabilities. The probability rule needs independence; the indicator identity does not.
For a union, start with the sum . If neither event occurs the sum is 0, and if exactly one occurs it is 1. If both occur it is 2, so subtract the intersection indicator once:
On a die roll, let be an even result and a result greater than 3. Rolling 4 makes both indicators 1. The union indicator is still 1, not 2, and the formula gives . If the events are disjoint, the product is always 0 and the sum alone works.
Checking all four cases makes the union identity concrete:
| 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 |
| 0 | 1 | 1 | 1 |
| 1 | 1 | 2 | 1 |
The subtraction changes just the overlap case. It leaves the other three cases intact because the product is zero there.
Counts are sums of indicators
For events , the count that occur is
Each occurrence contributes one, so simultaneous occurrences should be counted separately in this sum. This is a count of events, not an indicator of their union. The distinction explains why a count may exceed 1 while an indicator cannot.
A binomial count is a particular indicator sum: its trials are independent and all success indicators have the same parameter. One trial gives . Several trials do not turn each individual indicator into a binomial count of all trials. For example, whether the first of eight tests fails is Bernoulli, while the total failed tests can be binomial when its trial conditions hold.
Key Takeaways
- An indicator is 1 when its event occurs and 0 otherwise.
- Success names the counted result, including an undesirable result.
- Indicator products represent intersections without an independence assumption.
- A union indicator subtracts the double-counted intersection.
- A sum of indicators counts occurrences and can exceed 1.
2.2 Success counts in a fixed number of trials
The binomial distribution counts successes in a fixed number of independent trials with one common success probability. Write , where is the number of trials and is the success probability on each trial. The possible counts are .
Why the coefficient appears
A particular sequence with successes and failures has probability , where . There are ways to choose the success positions. These sequences are disjoint, so their probabilities add:
The binomial theorem gives total mass . The coefficient counts the possible orders; it is not an extra chance of success.
On a ten-question quiz with four choices per question, independent random guessing gives . Exactly three correct answers have probability
Here . Without the coefficient, the product describes one chosen order, such as the first three answers correct and the last seven wrong. The question allows all 120 orders.
Exactly, at most and at least
An exact count uses one PMF value. “At most ” includes all counts from 0 through . “At least ” includes through . A complement often shortens the latter:
For the quiz, the probability of at least five correct answers is about 0.07813. “At least five” includes five; using would remove the mass at five. For “at least one,” the complement is especially simple: .
Shape and the most likely count
Counting failures instead gives . When the PMF is symmetric. It is skewed right when and left when . A mode is . If is an integer, that value and the preceding integer are both modes. In the quiz, , so the mode is 2, with probability about 0.2816. A mode is the most likely single count; it need not have probability above one half.
To see where the mode rule comes from, compare neighboring masses. For ,
A ratio above 1 means the next mass is higher; a ratio below 1 means it is lower. Equality produces the adjacent tie when is an integer. This also explains why rounding the mean is not the general mode rule.
Check the experiment first
| Feature | Binomial requirement |
|---|---|
| Stopping rule | Fix the number of trials in advance |
| Trial result | Classify each as success or failure |
| Probability | Keep the same success probability |
| Dependence | Trials must be independent |
Sampling without replacement from a small population fails independence. Stopping at the third success fails the fixed-trial requirement. Changing the chance of success between attempts fails the common-parameter requirement. None of these problems is repaired by inserting an average probability into the formula.
Key Takeaways
- Use a binomial model for fixed, independent trials with the same success probability.
- The binomial coefficient counts success positions.
- Translate inclusive words before taking a complement.
- Failure counts have parameter .
- A binomial count is a sum of independent, identically distributed indicators.
- The mode need not be the mean or have probability above one half.
2.3 Success counts without replacement
Sampling without replacement changes what remains after each draw. The hypergeometric distribution counts successes in a uniformly selected sample from a finite population. Write for success items, failure items and draws, with .
Count samples consistently
There are equally likely unordered samples. A sample containing successes chooses from the success group and from the failure group. Therefore
Both parts of the numerator are needed. Selecting successes alone leaves unspecified how the rest of the sample is filled. The denominator counts unordered samples, so the numerator must do the same.
The feasible integers satisfy
The upper bound comes from the available successes and the sample size. The lower bound matters when too few failures exist to fill the sample. For example, drawing 7 items from 4 successes and 5 failures must include at least 2 successes.
Cards and tagged animals
A standard 52-card deck has 4 aces and 48 non-aces. The ace count in a random five-card hand is . Exactly two aces have probability
Five aces are impossible, even though five cards are drawn. The support check catches that before any arithmetic.
In a population of 100 elk with 20 tagged, a new uniform sample of 10 has tagged count . Exactly three tagged elk have probability . The population count is treated as known in this probability calculation.
Equal marginal probabilities do not give independence
Each draw has unconditional success probability by symmetry. But after a success, the next success probability becomes . After a failure it becomes . The dependence is why a binomial formula gives different probabilities despite the equal unconditional chances.
When the sample is a small fraction of a large population, these changes are small. The approximation is . A sample fraction near 5% is a common practical guide, not a universal accuracy guarantee. In the elk example the fraction is 10%; the binomial value for three tagged elk is about 0.2013, against the exact 0.2092.
There is also a useful symmetry: and have the same distribution. Both count the overlap between a fixed success group and a uniform sample; exchanging the roles of those groups leaves the overlap count unchanged.
For the ace example, the symmetry gives the equivalent distribution . Imagine a fixed five-position group in 52 positions and a uniform selection of four positions, representing the aces. The count in the fixed group is the same overlap counted by the original random-hand experiment. The population size stays 52 even though the success group and sample size exchange roles.
Key Takeaways
- Hypergeometric sampling is uniform and without replacement.
- Count success and failure choices in the numerator.
- Use the feasible support before computing.
- Equal single-draw probabilities can coexist with dependence.
- A small sampling fraction supports a binomial approximation.
3Wait for a success target
Waiting experiments leave the trial count random and fix the number of successes needed to stop. A first success gives a geometric or First Success wait; several successes give a negative binomial wait. Keep failures separate from total trials, since the conventions shift the support and the formula. Tail events often have simpler descriptions than exact stopping times, and independence explains why earlier failures leave a first-success wait unchanged.
3.1 The wait for a first success
Repeat independent trials with a constant success probability . The first success ends the wait. Two counts describe it: counts failures before success, while counts all trials through success. Write and .
Choose the count before the formula
With , the PMFs are
A first-trial success gives zero failures and one trial. That simple case checks both the support and the exponent. Some books and calculators call the trials version “geometric”; always identify what is counted. R's geometric functions count failures.
Each PMF multiplies the probabilities of a run of failures followed by one success. For example, rolling a fair die until the first 6 gives . The chance of stopping on roll 3 is . There is no binomial coefficient: the final success has a fixed position, and all earlier trials must fail.
The geometric series verifies normalization: . The infinite support allows any finite run of failures; it does not say an infinite run has positive probability.
Tails are simpler than long sums
The event means that the first trials all fail. Hence
For failures the equivalent tail is . Notice the different inequality. Because , writing would shift the event by one.
For the die, . The complement is the chance of seeing at least one 6 in four rolls.
To obtain a CDF for failures at integer , use . The complement is at least failures, which is why the exponent exceeds the cutoff by one. Both waiting conventions have variance ; adding the fixed successful trial changes the mean but not distances from the mean.
The tail can also choose a trial budget. With success probability 0.2, success within trials has probability . To reach at least 0.9, solve . Ten trials give about 0.8926 success probability and eleven give about 0.9141, so the smallest suitable whole-number budget is eleven.
Why the wait has no memory
For nonnegative integers ,
After failures, another failures have the same probability as the initial failures. For the failures count the identity is . These forms describe the same property. Memorylessness characterizes the corresponding nondegenerate waiting-time family on each support.
After four rolls without a 6, the next three also miss with probability . A success is not “due”: independence keeps the next success probability at .
The reference means are trials and failures. With a die these are 6 and 5. A mean describes a long-run average, not a stopping deadline: . A wait beyond its mean is entirely compatible with the model.
Key Takeaways
- State whether the variable counts failures or total trials.
- For failures use from 0; for trials use from 1.
- The tail counts a run of failures.
- Memorylessness leaves the remaining wait unchanged after failures.
- The mean wait is an average, not a deadline.
3.2 The wait for several successes
A negative binomial wait ends at a fixed success count. In independent trials with common success probability , let count failures before success number . Then , where is a positive integer. The support starts at 0, because the first trials could all succeed.
Keep the last trial fixed
For exactly failures, the experiment lasts trials. The last trial must be the -th success. Among the preceding positions, choose the positions of successes. This gives
The power counts all successes, including the final one. The coefficient arranges only the earlier trials. Using would allow the required success count to be reached before the last trial.
A player makes each free throw independently with probability 0.7. For misses before the third made shot,
There are six valid orders of the first four throws, followed by a make. The order “make, make, make, miss, miss” has three makes among five throws but cannot occur in this stopped experiment: it would have ended at throw 3.
Convert failures to total trials
Let count throws through success number . Its support is and
Thus two misses before the third make and a third make on throw 5 describe the same event. Other texts may use “negative binomial” or “Pascal” for the trials count. State the count, not just the family name.
| Model | Fixed quantity | Random count |
|---|---|---|
| Binomial | Number of trials | Successes in those trials |
| Negative binomial | Number of successes | Failures or trials until that target |
Turn a waiting tail into a fixed-trial count
More than failures before success means success has not occurred in the first trials. If , then
For the player, more than two misses before the third make means fewer than three makes in the first five throws. The probability is .
For an inclusive failures tail, use a window of trials: for integer . If the target is still missing after trials, reaching it requires another trial and at least failures occur before stopping.
The failures between consecutive successes are independent variables. Their sum is the failures count before success . This explains why . As reference values, the failures count has mean and variance ; the trials count has mean and the same variance.
Key Takeaways
- The negative binomial fixes successes and counts failures or trials.
- The last trial is a success, so arrange only the earlier positions.
- Convert to total trials by adding .
- For a failures count, .
- Independent geometric failure counts add to a negative binomial.
4Count events and approximate rare successes
Some counts have an interval boundary instead of a fixed list of trials. The Poisson distribution models such event totals and also approximates many rare independent successes. Its parameter records the average count over the chosen window, so units and interval size come first. Learn the exact mass formula, then examine why a binomial count can approach it and what an error bound says about using the approximation.
4.1 Counts in a time or space interval
The Poisson distribution describes a nonnegative count with parameter :
Write . The parameter is the average count in the interval, not a probability. It can exceed 1, and it need not be an integer. The support has no fixed upper limit.
Why the masses add to one
The exponential series gives . Multiplying by makes the total 1. Both the exponential factor and the factorial are essential. In particular, , so the probability of zero events is .
The mean and variance both equal . Equality of these reference values is useful when checking a proposed model, although two distributions can share moments without having the same PMF.
An interval model
Counts from events occurring independently, one at a time, at a constant average rate are modeled with a Poisson distribution. Examples include arrivals over a time interval or defects along a length of material. Specify the interval whenever you give : “3 per hour” is a rate, while “an average of 3 in this hour” is an interval count parameter.
Suppose the email count in an hour is . Then
At least two emails means excluding counts 0 and 1:
The parameter 3 does not mean that exactly three emails must arrive. It is the average over many intervals under this model.
There is no requirement that the mean be a likely realized count. With , only integer counts occur, and the mode is 0; the mean 0.5 is not a possible value. Mean and mode answer different questions: the first averages many intervals, while the second identifies a tallest PMF stick.
Match the parameter to the window
At a constant rate, multiply the rate by the interval length in matching units. Twenty minutes is one third of an hour, so the email parameter is . The chance of no emails in that window is . Dividing the hourly zero-email probability by three would be wrong: interval length scales the parameter, which then enters a nonlinear formula.
The same idea works in space. A rate per meter must be multiplied by a length in meters; a rate per square meter uses area, not length.
Compare neighboring masses
For , cancellation in the PMF gives
Masses increase while and decrease once . For a noninteger parameter the mode is . For an integer parameter, and tie: at , counts 2 and 3 each have probability about 0.2240.
A fixed number of trials with substantial success probability, such as heads in ten fair tosses, calls for a binomial distribution. An event count arriving in clusters also needs another model; a high average count alone does not establish a Poisson story.
Key Takeaways
- The Poisson parameter is the average count in the specified interval.
- Use on nonnegative integers.
- Scale rate by interval length before finding a probability.
- Poisson mean and variance both equal .
- Neighboring masses have ratio .
- Check independence, constant rate and clustering when choosing the model.
4.2 Rare-event approximations and their error
A large collection of rare successes often has a simpler approximate distribution. For a binomial count, use when individual success probabilities are small. The parameter is the combined average count, .
The binomial limit
Set and hold fixed. In the binomial PMF,
Their product is the Poisson mass. Thus a growing trial count and shrinking success probability, with , yield a Poisson limit. A large trial count by itself is insufficient.
For 1000 independently produced items with defect probability 0.002, the exact model is . The approximation uses . No defects have exact probability and approximate probability . One defect has approximate probability . Approximate values should be identified as approximate even when their rounded digits match the exact ones.
A bound that covers every event
For independent success indicators with probabilities , let be their sum and let with . Le Cam's inequality gives
for every set of count values . It bounds absolute probability error, not relative percentage error. In a binomial model the bound is . For the defect example it is . This is a guarantee; the actual error for a chosen event can be much smaller. Unequal success probabilities are allowed, but independence is essential for this bound.
Weak dependence needs separate judgment
The Poisson paradigm also suggests approximations for many rare events with suitably weak dependence. For example, take 23 people with independent birthdays, each uniform over 365 days. There are pairs, each matching with probability . The number of matching pairs is approximately , giving no match with probability about 0.5000. The exact no-match probability is about 0.4927.
The matching-pair indicators are not mutually independent. Three pair matches involving the same three people are linked. The independent-trial Le Cam bound therefore cannot be applied just by summing their squared probabilities. This example illustrates a useful approximation, not an independence proof.
Count rare failures when successes are common
If with near 1, use and approximate failures by . For 500 independent message deliveries with success probability 0.996, failed deliveries are approximately . Translate the requested success event into a failure event before evaluating it. Strong clustering, common individual events and substantial dependence can defeat a Poisson approximation.
Key Takeaways
- Approximate rare independent successes with parameter .
- For independent unequal risks use .
- Le Cam bounds absolute event-probability error by .
- The independent-trial bound cannot be used for dependent indicators.
- When success is common, model the rare failure count.
- Weak dependence requires judgment beyond a small individual probability.
5Transform and combine random variables
Squaring a count, adding two counts or taking their maximum creates a new random variable. Its distribution comes from the input values that produce each requested output. For one input, this can merge masses; for several inputs, dependence decides whether joint masses factor into products. Test independence carefully before combining distributions, and use cumulative probabilities when a largest or smallest value makes the event easier to describe.
5.1 Move and merge probability masses
A function of a random variable produces a new random variable. If , the new value on outcome is . To find its distribution, change the numerical labels and carry their probabilities with them.
Collect every input producing an output
For any possible output ,
List the support of , apply to each value, and group equal outputs. Add the masses in each group. An output with no contributing input has probability zero.
Let be uniform on and set . The map sends 0 to 0, both and 1 to 1, and both and 2 to 4. Therefore
Squaring the input values changes the support. It does not square their probabilities. Keeping only the positive square root would lose the mass at the negative root. The new probabilities still sum to 1 because every old value belongs to exactly one output group.
One-to-one functions move masses intact
If each output has exactly one input in the support, no masses merge. The new mass at is . For the heads count in three fair tosses, takes 3, 5, 7 and 9 with masses . The probabilities keep their values and move to different locations.
A shift between waiting conventions works this way too. If counts total trials, then counts failures. The support shifts down by one while each individual mass stays attached to the corresponding event.
A capped count gives another many-to-one map. For the three-toss heads count, let . Its masses are , and . The cap collects the whole upper tail at 2. A table with a mass of only there would forget the inputs above the cap.
Transform a probability inequality
A CDF can be easier than a new table. With a strictly increasing function, solving preserves the inequality direction. For ,
With a decreasing function the direction reverses. For the same heads count, . Treating the transformed inequality as would produce the wrong event.
The distribution of depends only on the distribution of . Variables with matching distributions therefore still match after the same function is applied. This says nothing about whether the original variables are independent.
Reusing a variable is different from adding a copy
For a fair die , the variable takes only even values, each with mass . If is a separate independent fair die, can also be odd. In particular, but . A formula that combines two independent variables cannot be applied to ; both terms there use the same outcome.
Key Takeaways
- Find every input value mapping to the requested output.
- Merge masses when several inputs give the same value.
- Transform support values, not the probabilities.
- Reverse an inequality for a decreasing transformation.
- Adding a variable to itself differs from adding an independent copy.
5.2 Test independence and recognize hidden dependence
Two random variables are independent when information about one leaves the distribution of the other unchanged. For discrete variables the exact test is
for every pair of values. Equivalently, whenever . A definition that also works beyond discrete variables is for all real cutoffs.
Disprove with one pair; prove for all pairs
Roll two independent fair dice. Let be the first die and their sum. The event is impossible, so its probability is 0. But . This one failed equality proves dependence.
One successful equality cannot establish independence. To prove it from a table, obtain the marginal probabilities by summing rows and columns, then check every cell against its row total times its column total. A zero joint cell with two positive marginals immediately shows dependence. A specified mechanism of independent experiments can also justify factorization without checking a table.
For example, a 2-by-2 joint table with rows and has row totals 0.3 and 0.7 and column totals 0.4 and 0.6. All four cells equal the corresponding products: , , and . This checks the full table and establishes independence, unlike a check of just its first cell.
Having the same distribution is a separate issue. Heads and tails counts in three fair tosses match in distribution, but one determines the other. Conversely, independent variables can have entirely different distributions. I.i.d. means both independent and identically distributed.
Pairwise and mutual independence
A collection is mutually independent when its joint probabilities factor into the product of all individual masses. For an infinite collection, every finite subcollection must meet that requirement. Pairwise independence checks only pairs and is weaker.
Let be independent fair 0–1 variables, and let when they differ. Each of the pairs , and is independent. For instance, . Yet all three cannot equal 1, while their individual probabilities multiply to . The collection is not mutually independent.
Functions and conditioning
Functions of separate independent variables remain independent: and are independent when are. The same holds for functions of disjoint groups in a mutually independent collection. It does not justify independence of and , which share an input.
Conditional independence needs the conditioning information. Choose, with equal probabilities, a fair coin or a coin with heads probability , then toss the chosen coin twice independently given that coin. Each toss has unconditional heads probability . But
which differs from . A first head makes the more biased coin more likely, connecting the tosses through the hidden coin choice. In the other direction, conditioning independent variables on their sum can make them dependent, because knowing one then restricts the other.
Key Takeaways
- Discrete independence requires factorization for every pair of values.
- One failed equality proves dependence.
- Identical distribution and independence are different properties.
- Pairwise independence can fail to extend to the whole collection.
- Functions of separate independent inputs remain independent.
- Conditional independence can disappear when the conditioning information is hidden.
5.3 Sums, largest values and smallest values
For a function of two discrete variables, collect every pair producing the required value. The general rule is
When the inputs are independent, replace each joint mass by . Otherwise use the actual joint probabilities. Marginal distributions alone do not usually determine a function's distribution.
Add along a fixed total
For with independent inputs,
This discrete convolution pairs each possible with the only value of that completes the total. Terms outside either support are zero. For two independent fair dice, total 4 comes from , giving . Keeping just would miss two contributing outcomes.
For finite supports, writing down the contributing pairs before multiplying often prevents omissions. You may also form a complete table of pairs and collect the cells along each total.
Find a maximum through its CDF
Let . A maximum is at most exactly when both inputs are at most . Independence gives
For two independent fair dice and integer , . Subtract consecutive CDF values:
Thus . Both dice showing 6 has probability only ; a maximum of 6 also includes either die showing 6 while the other is smaller. The maximum is not uniform.
Find a minimum through its tail
Let . A minimum exceeds exactly when both inputs exceed , so
Then . For two dice, . The complement counts the outcomes where both dice avoid 1.
For independent first-success trial counts with probabilities and failure probabilities ,
The minimum therefore has distribution . With daily breakdown probabilities 0.1 and 0.2, independent across machines and days, the first breakdown day is . Either machine can end the wait, so the combined daily success probability is .
The same cutoff reasoning extends to any finite independent collection. For , multiply all CDFs. For , multiply all upper tails. When the variables are i.i.d. with CDF , these become and . The power counts the inputs, not repeated use of a single random value.
Check shared inputs
If is the same fair die, then and . The maximum is uniform and the sum only even. Multiplying the two marginal PMFs would instead describe two independent rolls. The event identities for maxima and minima always hold; the multiplication step is where independence is used.
Key Takeaways
- Sum the joint masses of every pair giving the requested output.
- Independent sums use discrete convolution.
- For a maximum, multiply CDFs under independence.
- For a minimum, multiply tails under independence.
- Minimum first-success waits combine daily failure probabilities.
- Shared inputs require their actual dependence structure.
6Connect families and choose a model
Distribution names become easier to use when you connect them to changes in an experiment. Adding independent counts, labeling Poisson events and revealing a total lead to exact family relationships. Large-population and rare-event limits lead to approximations. Use these connections alongside a practical model decision process: identify the count, the stopping rule, replacement and independence, then give the parameters their meanings.
6.1 Add counts, split events and reveal totals
Named distributions are connected by the experiments that generate them. Some connections are exact and others are limits. Identify which operation is being performed, then check the conditions before combining parameters.
Sums preserve some families
Independent and counts add to : combine their trial lists. The common success probability is essential. Independent geometric failure counts with the same parameter add to a negative binomial failure count.
Independent and counts add to . Convolution explains the rule:
Factor out . The remaining sum is the binomial expansion of . Independent work emails at 3 per hour and personal emails at 1 per hour therefore give total emails per hour.
Conditioning on a Poisson total
For those independent Poisson inputs, revealing gives
The total is now fixed. Each of its events belongs to the first source with probability proportional to that source's rate. Given five emails in the example, the work count is , so exactly four work emails have probability . Once the total is known, the two component counts are dependent.
Splitting a random Poisson total
The reverse construction starts with . Classify each event independently as type 1 with probability and type 2 otherwise. The counts are independent and variables. Both the labeling mechanism and the Poisson total matter.
For visitors, each buying independently with probability 0.3, buyers and non-buyers have independent distributions and . If exactly 20 visitors were fixed instead, the two counts would sum to 20 and be dependent.
Conditioning binomial groups
Let and be independent. Given , the first group's count is . All sets of success positions among the positions are equally likely, so selecting the successes is sampling positions without replacement. The common cancels from the conditional probability.
For groups of 10 and 15 patients with the same independent recovery probability, suppose eight recover in total. Exactly three in the first group have conditional probability . The 25 trial positions now form the population, the eight success positions form the sample, and the first ten positions are the group being counted.
Finally, large populations with fixed sample size make hypergeometric counts approach binomial counts. Large numbers of rare independent trials make binomial counts approach Poisson counts. These are limiting relationships, not exact family identities for every parameter choice. Reusing one Poisson variable twice gives , supported only on even counts; it cannot be replaced by an independent Poisson sum.
Key Takeaways
- Independent binomial counts add within the family when their values match.
- Independent Poisson counts add their parameters.
- Independent Poisson counts given a total have a binomial allocation.
- Independent labels split a Poisson total into independent Poisson counts.
- Independent binomial groups with common become hypergeometric given their total.
- Keep exact connections separate from limiting approximations.
6.2 Choose a model from the experiment
The model follows from what is fixed, what is counted and how outcomes depend on each other. Start by defining the variable in words. Then write the distribution and its parameters before calculating a probability.
Ask what ends the experiment
| Experiment | Model |
|---|---|
| One yes-or-no result | Bernoulli |
| Successes in fixed independent trials, common probability | Binomial |
| Successes in a uniform sample without replacement | Hypergeometric |
| Failures before the first success in independent common-probability trials | Geometric |
| Trials through the first success under the same conditions | First Success |
| Failures before success number under the same conditions | Negative binomial |
| Events in an interval at a constant independent-event rate | Poisson |
A fixed maximum does not distinguish binomial from hypergeometric: both have one. A random number of trials does not by itself establish a geometric wait. Check the success rule and independence too.
Compare three experiments using one box
A box holds ten fuses, three defective. Choose four uniformly without replacement. The defect count is , so
If each fuse is replaced before the next independent draw, the count is and the probability of no defects is .
Now test fuses in random order without replacement until the first defective one. The wait is not First Success with parameter 0.3. The chance of stopping on the second test is , while the constant-probability model would give . After a nondefective fuse is removed, the defect fraction rises.
Use reference moments to interpret parameters
The mean is a long-run average; variance measures average squared distance from the mean. With and , the reference values are:
| Distribution | Mean | Variance |
|---|---|---|
| , failures | ||
| , trials | ||
| , failures | ||
For a one-item population, a hypergeometric sample count is constant and its variance is 0. The table's finite-population fraction has denominator , so use that constant count directly when .
Check what the story supports
A changing success chance rules out the ordinary binomial and waiting-time models. Trials that influence one another also fail their independence requirement. Poisson counts are questionable when events arrive in clusters or the rate varies; a variance clearly above the mean is a warning sign.
Give parameters their meanings: is per trial, is fixed trials, is target successes and is rate times interval size. When a count is approximated, name both the exact model and the approximation so the calculation's status is clear.
Key Takeaways
- Define the counted quantity and stopping rule before choosing a model.
- Replacement, independence and constant probability distinguish count models.
- Waiting without replacement need not be geometric.
- Use rate times interval size for a Poisson parameter.
- Reference means and variances help interpret models.
- Label approximations and check their conditions.
Discrete Random Variables examples
1Turn outcomes into a PMF and a CDF
12 steps
- 1IntroductionOne experiment, several descriptions
An outcome can contain more information than the count you want to study. Two coin tosses record order, but a heads count keeps only a number. A rule that turns outcomes into numbers is a random variable.
Follow that count from a function of outcomes to a table of masses (the PMF) and then to cumulative probabilities (the CDF). Each description answers a different kind of question: a realized value, an exact count or a cutoff event.
- 2ExplanationAssign a value to every outcome
Toss two fair coins independently. Define as the number of heads. Then , and .
The rule is fixed even before the outcome is known. There are four outcomes but only three possible count values. Several outcomes can therefore contribute to one probability about .
- 3ExampleCollect an event
The event collects HT and TH. Each outcome has probability , so .
The symbol names the function, the statement describes an event, and is the event's probability. The support is , containing the values with positive probability, not the original letter sequences.
- 4ChallengeRead a different count
In the same two-toss experiment, let count tails. Does have the same distribution as , and must their values be equal?
---reveal---
They have the same masses at 0, 1 and 2. Their values need not match: HH gives and . A shared distribution matches probabilities, while the relation links values on each outcome.
- 5ExplanationWrite and check the masses
The PMF is . For two-toss heads, its nonzero entries are , and .
All are nonnegative, and their sum is 1. Both checks are necessary for any proposed PMF. The masses are zero at every other real value; a count of 1.5 heads has probability zero.
- 6ExampleNormalize unequal weights
Suppose a different count has probabilities proportional to 1, 2 and 5 at values 0, 1 and 2. The total weight is 8, so the PMF is .
The probability of at least one is . Dividing by the number of entries would not normalize this table: the entries carry unequal weights, so divide by their sum.
- 7ChallengeCheck both requirements
A proposed table at values 0, 1 and 2 contains masses . Is it a valid PMF?
---reveal---
No. The total is 1, but the mass at 1 is negative. A probability cannot be negative. Validating only the total would miss this problem; every individual mass must also be nonnegative.
- 8ExplanationAccumulate through the cutoff
For the two-toss heads count, . It is 0 below 0, from 0 to just below 1, from 1 to just below 2, and 1 from 2 upward.
At a jump the CDF already includes the new mass. Thus , and too. There are no support values between those cutoffs.
- 9Key InsightRecover a mass from a jump
The CDF contains the same distribution information as the PMF. At integer value 1, subtract the accumulated probability through 0:
For a general support value, subtract the left limit at that point. A CDF cannot go down, and its limits at the two extremes must be 0 and 1.
- 10ChallengeKeep the boundary mass
For the two-toss heads count, find . Which CDF cutoff must be removed from 1?
---reveal---
Remove , giving . The event includes 1, so the removed part must stop below 1. Using gives only and loses the mass at the included endpoint.
- 11ChallengeBuild, accumulate and subtract
A variable has probabilities proportional to 2, 3 and 5 at values 0, 2 and 4. Find and .
---reveal---
The normalized masses are 0.2, 0.3 and 0.5. Through 3, the masses at 0 and 2 contribute, so . The interval excludes 0 and includes 2 and 4, giving . A non-support cutoff still has a CDF value.
- 12RecapUse the description the event needs
A variable maps outcomes to values; its PMF gives point masses, and its CDF collects them through a cutoff.
Build masses by collecting all contributing outcomes. Check nonnegativity and total 1. For cumulative calculations, write the inequalities before subtracting: an included boundary mass must remain in the event. A jump in the CDF recovers the mass at that value.
2Count successes with and without replacement
15 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionStart with the trial mechanism
- 2ExplanationRecord occurrence as zero or one
- 3Key InsightDistinguish a union from a count
- 4ChallengeCorrect the overlap
- 5ExplanationFix trials and share one probability
- 6ExampleCount the success positions
- 7TipUse a short complement
- 8ChallengeIdentify the stopped experiment
- 9ExplanationRemove items from the population
- 10ExampleChoose both parts of the sample
- 11Key InsightCheck the support first
- 12ChallengeFind a probability of zero
- 13ConnectionUnderstand the large-population shortcut
- 14ChallengeChange the sampling rule
- 15RecapMatch the formula to the count
3Keep failures and total trials straight
11 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionLet success end the experiment
- 2ExplanationName the two first-success counts
- 3ExampleRead the sequence of results
- 4Key InsightA tail is a run of failures
- 5ChallengeCondition on the wait so far
- 6ExplanationReserve the final success
- 7ExampleCount the valid earlier orders
- 8ChallengeShift to the trials convention
- 9ConnectionReplace a waiting tail with a trial window
- 10ChallengeCombine two first-success waits
- 11RecapLet the stopping rule set the exponent
4Use a Poisson parameter and check an approximation
13 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionSeparate an interval model from a shortcut
- 2ExplanationInterpret the parameter
- 3ExampleMatch rate and window
- 4ExampleCompute a mass and a tail
- 5ChallengeShorten the interval again
- 6Key InsightCompare consecutive counts
- 7ExplanationReplace many rare trials
- 8ExamplePut a bound on event error
- 9ChallengeCombine unequal rare risks
- 10TipSwitch to rare failures
- 11ChallengeUse the approximation for a tail
- 12ConnectionKeep weak dependence separate
- 13RecapCheck the count, parameter and accuracy
5Transform values and combine independent inputs
16 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionFollow the input values
- 2ExampleMerge opposite inputs
- 3ChallengeUse a decreasing map
- 4ExplanationTest every joint mass
- 5ExampleFind a forbidden combination
- 6ChallengeUse one failed cell
- 7Key InsightCheck the whole collection
- 8ConnectionReveal or hide a shared condition
- 9ExplanationCollect pairs for a sum
- 10ExampleMake a maximum cumulative
- 11ChallengeFind a maximum mass
- 12ExampleUse the tail for a minimum
- 13Key InsightKeep independent input groups separate
- 14ChallengeChange the dependence, change the answer
- 15ConnectionEnd a wait when either succeeds
- 16RecapChoose masses, cumulative values or tails
6Connect models by changing the experiment
14 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionTrack what becomes fixed
- 2ConnectionAdd compatible independent counts
- 3ExampleCombine arrival sources
- 4ExampleReveal the total
- 5Key InsightSplit a random total
- 6ChallengeCompare random and known totals
- 7ConnectionFix successes across two trial groups
- 8ExplanationRead the stopping rule
- 9ExampleReject a wait with a changing chance
- 10ChallengeClassify a new experiment
- 11TipUse moments as reference checks
- 12ChallengeCheck an allocation model
- 13ConnectionSeparate limits from exact identities
- 14RecapGive the model its full meaning
Discrete Random Variables practice questions
Set 1: Mixed review: values, counts and waits10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Mixed review: events and sampling rules10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Mixed review: functions and model choices10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Mixed review: conditional counts and tails10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 5: Mixed review: combine and diagnose models10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Absolute probability error
B
Bernoulli distribution
Binomial coefficient
Binomial distribution
C
Conditional distribution
Conditional independence
Counting convention
Cumulative distribution function
D
Decreasing function
Discrete convolution
Distribution
E
Equally likely outcomes
Event rate
F
Factorial
Failure probability
Feasible count
Finite population correction
First Success distribution
G
Gambler's fallacy
Geometric distribution
H
Hypergeometric distribution
I
Identically distributed variables
Independent random variables
Independent trials
Indicator random variable
J
Joint mass
Jump size
L
Le Cam's inequality
Left limit
M
Marginal PMF
Maximum
Mean
Memoryless property
Minimum
Mode
Model assumptions
Mutual independence
N
Negative binomial distribution
Normalizing constant
O
One-to-one function
P
Pairwise independence
Pascal distribution
Point probability
Poisson approximation
Poisson distribution
Poisson limit
Poisson paradigm
Poisson parameter
Poisson superposition
Poisson thinning
Preimage
Probability mass function
R
Random variable
Rate share
Right-continuity
S
Sample space
Sampling fraction
Sampling without replacement
Stopping trial
Success
Success target
Support
T
Tail probability
Transformation
U
Uniform sample
Union indicator
V
Variance
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.