Learning goals and finite models
Specify a finite sample space, compute conditional probabilities, distinguish disjointness from independence, and derive mean and variance for Bernoulli sums. A sample space contains all modeled outcomes. Assign nonnegative weights summing to one and define . Only when all weights are equal does .
A sample space lists possible outcomes of a modeled experiment. An event is a subset. A probability assignment satisfies , , and additivity for disjoint events; in a general probability model this extends to countable disjoint unions. For a finite sample space it is enough to assign nonnegative probabilities to outcomes summing to one and add them over events.
Consequently and
To derive the second identity, split into disjoint pieces , , and , then count the overlap only once.
Uniform counting, , is valid only if the finite elementary outcomes are equally likely. A short list of named categories does not make them equally likely.
The multiplication principle counts sequential choices: if stage one has options and each has stage-two options, there are ordered choices. Selecting distinct objects in order from gives . Ignoring order divides by , because each selected -element subset has exactly orderings. Hence
For , define . It renormalizes the possible outcomes after restricting to event . It follows that .
Events are independent when . When , this is equivalent to . Disjoint events with positive probabilities are not independent: their intersection is empty while the product of their probabilities is positive.
If partition the sample space with positive probabilities, then
This is the law of total probability, obtained by adding the disjoint pieces . If , Bayes' formula is
Random variables and expectation
A random variable assigns a real number to each outcome. In this finite model, its distribution is and
The two expressions for the expectation agree by grouping outcomes with the same value. For real constants , distributing the finite outcome sum gives
Thus linearity needs no independence. With and , expanding the square gives
Define the joint distribution by , where the comma means intersection of the two events. Its marginal sums are and , because the corresponding events form disjoint partitions. The variables are independent precisely when for every pair of values. Under this condition,
Define the covariance by . Expanding the square and using linearity proves
For two random variables with finite second moments, independence is sufficient for variance additivity; more generally, their variances add exactly when their covariance is zero. Expanding the variance of a sum produces a cross term , which vanishes for independent variables. Identical marginal distributions alone do not remove that term. All sums used in the proof here are finite, so their rearrangement requires no convergence assumption.
Counterexample mode
Equal distributions do not make variances add
Claim: if and have the same distribution, then . Let be a Bernoulli variable with and put . Then , while has variance ; the covariance is . With instead, has variance . The repair is the condition stated above: the covariance must vanish, as it does under independence.
A Bernoulli variable equals one with probability and zero with probability . Thus . Since , .
Let be a nonnegative integer and let be Bernoulli variables with the same success probability . For , mutual independence means that for every ,
This is joint independence, not merely independence of every pair. Set . If and , an ordered outcome with successes has probability . There are distinct choices of its success positions, and those events are disjoint. Therefore
The endpoint cases are stated separately, without evaluating : when , ; when , ; all other values have probability zero. If , the empty sum is with probability one, for every . These are all included in the binomial family.
For and , the displayed probabilities sum to by the binomial theorem; each degenerate case also has total probability one. Linearity gives . Mutual independence implies pairwise independence by summing the joint factorization over the other coordinates, each of whose marginal probabilities sums to one. Hence for . Expanding the squared centered sum now gives
The expectation and variance formulas also hold in the endpoint and empty-sum cases, where is constant. Sampling without replacement generally does not satisfy the mutual-independence assumption.
If are independent, their joint probabilities factor, giving and .
Worked examples
Reverse conditioning. A factory obtains 30% of parts from source A and 70% from B. Defect probabilities are respectively 4% and 1%. The modeled defect probability is . Given a defect, the probability of source A is , not . Conditioning reverses the direction of information and must account for source frequencies.
Without replacement. Draw two balls from a bag containing three red and two blue balls, without replacement. The probability both are red is . The second conditional probability is , not , so the two draws are not independent.
Worked example 6.1.1
(Mean and variance of a die score, before and after rescaling)
A fair die shows , each with probability . Find and , and then the mean and variance of .
From the definitions,
Hence . For , linearity gives . At every outcome , so and therefore . The shift by moves the mean but leaves every deviation, and hence the variance, unchanged; the factor enters the variance squared.
Worked example 6.1.2
(Independence is a numerical property, not a story)
Roll two fair dice; the ordered outcomes are equally likely. Let be the event that the first die is even, the event that the sum is , and the event that the sum is . Which of the pairs and are independent?
Here . The sum arises from , so . In the first die is or and the second die is then forced, so : these events are independent. The sum arises from , so , while has probability . The product is , which is different, so and are dependent. Both events concern the first die and the sum in the same way; only the computation distinguishes them. For the sum , every first value leaves exactly one admissible second value, while for the sum the first value leaves none.
Worked example 6.1.3
(At least one success: use the complement)
A fair die is rolled four times independently. Find the probability of at least one six, and the mean and variance of the number of sixes.
The number of sixes is binomial with and . The event "at least one six" is the complement of , and
Hence . Adding through would give the same value with four times the work. The mean and variance are and . A common error is as the probability of at least one six: that number is the expected count, and it overcounts outcomes with several sixes.
Graded practice
- Foundation. A fair die is rolled. Let mean even and mean greater than four. Find .
- Core. For two fair independent coin tosses, are the events “first is heads” and “exactly one head” independent? Justify by probabilities.
- Core. For five independent trials with success probability , compute , and .
- Proof. Prove that in a finite model if and only if at every outcome of positive probability.
Full solutions
- , and , since only outcome six lies in both. Thus the union probability is .
- On the four equally likely pairs, both events have probability and their intersection is the single outcome HT, with probability . This equals the product, so they are independent. Their verbal relationship alone does not settle independence.
- . The expectation is and variance is .
- Variance is the sum of nonnegative terms . It is zero exactly when every summand is zero. For , this is equivalent to ; zero-probability outcomes contribute nothing. Conversely, that condition makes every summand zero.
Quick checks
Quick check
(One card is drawn from a standard 52-card deck, all cards equally likely. Are the events “the card is a heart” and “the card is a king” independent?)
Compute both probabilities and the probability of the intersection.
Solution · Answer
and . The intersection is the single card king of hearts, with probability . The factorization holds, so the events are independent, although they are not disjoint.
Quick check
(A box holds one fair coin and one coin with heads on both sides. A coin is chosen at random and tossed. Find the probability of heads, and the probability that the two-headed coin was chosen given that heads appeared.)
Partition by the choice of coin, then use Bayes' formula.
Solution · Answer
Let and be the events that the fair and the two-headed coin is chosen, each with probability ; they partition the sample space. By total probability,
By Bayes' formula, . Seeing heads raises the probability of the two-headed coin from to .
Quick check
(A random variable takes the values , and with probabilities , and . Find its mean and variance, and check the variance by the definition.)
Use , then recompute from squared deviations.
Solution · Answer
and , so . From the definition, the deviations from are , and , and
Summary and term definitions
An event is a set of outcomes; a conditional probability renormalizes within a positive-probability event. Independence is a factorization property, not mutual exclusion. Expectation is a probability-weighted mean; variance is the mean squared deviation. State the random experiment, equal-likelihood assumptions and replacement policy before counting. Conditional probabilities with zero-probability conditioning events are not defined by the finite ratio formula.