24 min total

Probability

Counting & events

Counting & events

Probability starts with a model of what can happen. These notes build from counting and conditional probability to random variables, common distributions, and stochastic processes. The examples make the assumptions explicit so each formula has a clear job.

Outcomes, events, and probability

The sample space contains the possible outcomes. An event is a subset of that space. A probability model assigns nonnegative probabilities to events, with , and adds probabilities across disjoint events.

For a finite sample space whose outcomes are equally likely, counting gives . Equal likelihood is an assumption: two outcomes do not automatically have probability one half merely because we have named two possibilities.

Intersections and unions

means both events occur; means at least one occurs. Adding their probabilities counts the intersection twice, so subtract it once.

Complements often make a problem shorter. The complement of ‘at least one’ is ‘none’; the complement of ‘all’ is ‘at least one fails.’ De Morgan’s laws formalize this switch.

Counting choices

If a task has stages and stage offers choices for every possible earlier choice, the total is . If the available choices depend on the earlier path, count each path and add the results.

For selections of size from distinct types, decide whether order matters and whether a type can be chosen again.

OrderRepetitionCount
MattersAllowednᵏ
MattersNot allowedn! / (n − k)!
Does not matterNot allowedChoose(n, k)
Does not matterAllowedChoose(n + k − 1, k)

A four-person committee from twelve people can be chosen in ways. A three-digit code with repeated digits allowed has possibilities, including codes that begin with zero.

The last row counts multisets, but those multisets are not equally likely under independent sampling with replacement. For example, two coin flips produce HH in one ordering and one head plus one tail in two orderings. A counting formula alone does not establish a uniform probability model.