Learning goals and preparation
We assume fractions, finite sums, elementary sets, and Chapter 3's integration for the final continuous-model connection. We develop elementary probability from events and assumptions rather than from unexplained counting formulas. You will distinguish disjointness from independence, condition on information correctly, and derive the binomial model and its moments.
Historical optional enrichment. This chapter is an optional historical extension.
All numerical examples are hypothetical sampling or manufacturing models. Probabilities describe their assumptions; they do not certify an actual inspection process or an empirical defect rate.
5.1 Sample spaces and events
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.
Worked example 1: categories are not outcomes. Two independent fair coin tosses have four equally likely ordered outcomes: HH, HT, TH, TT. The counts of heads are , but these three categories are not equally likely. Their probabilities are because the middle category contains two ordered outcomes.
5.2 Counting with and without order
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
Worked example 2: sampling without replacement. Among five objects, two are defective and three good. Select two uniformly without replacement. There are equally likely unordered samples. The probabilities of two defective, one of each, and two good are respectively
They sum to one. Treating successive draws as independent would be wrong because the first changes the remaining composition.
5.3 Conditional probability and independence
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.
Worked example 3: a changed second draw. In Worked example 2, the first draw is defective with probability . Given that it was defective, the second is defective with probability . Therefore both are defective with probability , matching the unordered count. The unconditional second-draw defect probability is still by symmetry, but its conditional value after observing the first differs.
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
Worked example 4: reverse an inspection condition. Suppose of a hypothetical production batch is defective. An inspection flags of defective objects and of good ones. A flag has probability . Given a flag, the defect probability is , about . It is not : the latter conditions on a different event. The many good objects generate substantial false flags despite their smaller individual flag probability.
Concept lensCombinatorial
Bayes' formula as a count of flags
Scale the hypothetical batch to objects. Then are defective and of them are flagged, while are good and of them are flagged. Among the flagged objects, are defective, which gives again. Bayes' formula performs exactly this count: its numerator counts flagged defective objects and its denominator counts all flagged objects.
5.4 Random variables and expectation
A random variable assigns a real number to each outcome. In a finite model, its distribution is and
The variance identity follows by expanding the square and using that probabilities sum to one. Expectation is linear: , without needing independence. This follows by summing over the joint outcomes and distributing finite sums.
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.
Counterexample mode
Zero covariance does not mean independence
False claim. If the variances of and add, then and are independent.
Let take the values with probability each, and let . Then and , so the cross term vanishes and the variances add. Yet , whereas .
Repair. Independence implies zero covariance, but not conversely; additivity of variances detects only zero covariance.
Worked example 5: an elementary distribution. If has values with probabilities , then , , and variance . The expected value is a probability-weighted average, not necessarily the most likely value or a value observed on every experiment.
5.5 Bernoulli and binomial models
A Bernoulli variable equals one with probability and zero with probability . Since , it has mean and variance .
For independent trials with the same success probability , let . A particular ordered outcome with successes has probability , and there are ways to locate them. Thus
This is the binomial distribution. The probabilities sum to by the binomial theorem. Linearity gives , and independence removes cross-covariances, giving variance . Sampling without replacement generally does not meet its independence assumptions.
Worked example 6: at least one event. In four independent trials with success probability , the probability of at least one success is . The complement avoids adding four separate positive-count terms. Mean count is and variance ; neither is the probability of a particular outcome.
5.6 Connecting discrete and continuous models
A cumulative distribution function is . For a discrete variable it has jumps of size . In a continuous-density model, , with and total integral one. Then single points have probability zero, although intervals may have positive probability.
Expectation becomes an integral when it converges appropriately, as developed in Chapter 3. A density value is not a point probability, and a continuous graph is not a density until normalized. Discrete and continuous models are alternative mathematical descriptions whose suitability depends on the application.
5.7 Graded exercises
Foundation
- If , , and , find and decide independence.
- How many unordered pairs can be selected from six distinct objects? How many ordered pairs without replacement?
- Explain why disjoint events each of probability cannot be independent.
Core
- A box has three red and two blue objects. Draw two without replacement. Find the probability both are red by conditional probability and by combinations.
- If , , and , calculate and .
- Find mean and variance when takes values with probabilities .
- In five independent trials with success probability , find , , and variance.
- A Bernoulli variable has success probability , where . Compute directly and compare it with . Explain when they differ.
Synthesis
- A finite variable has CDF for , for , for , and one for . Recover its distribution and expectation.
- Explain which assumption fails if someone uses a binomial distribution for the number of defective objects in two draws without replacement from a small box. Using Worked example 2, compare the actual probability of two defects with the independent-trial prediction.
5.8 Full solutions
- The union probability is . Since , the two events are independent under the given probabilities.
- Unordered pairs number . Ordered pairs without replacement number .
- Their intersection probability is zero, while the product of their individual probabilities is . This violates independence.
- Conditionally, . By counting, . The matching methods verify each other.
- Total probability is . Bayes gives .
- and . Variance is .
- . Mean is and variance .
- Since and , variance is , whereas twice its original variance is . They differ for and are both zero when or . Scaling a variable scales squared deviations by the square of the scale. Equivalently adds perfectly dependent copies in the nondegenerate case; at either endpoint the copies are constant and independent.
- CDF jumps give probabilities at zero, at one, and at two. Expectation is .
- Successive draws are not independent because the remaining composition changes. With two defects in five objects, actual probability is . A binomial model with unchanged would give , a different and unjustified value.
Summary and onward map
A probability model needs outcomes and explicit assumptions. Counting works only for equally likely elementary outcomes. Conditional probabilities restrict and renormalize; independence is not disjointness. Bayes reverses conditioning using base probabilities. Expectation is linear without independence, whereas variance addition needs dependence information. Binomial formulas require fixed-count independent identical trials; continuous-density formulas use integrals instead.