The useful first step is to identify what is random and what is being asked: an event probability, a distribution, an expectation, or a variance. These examples show how that choice points to a method.
Occupied queues and colliding pairs
Twenty jobs independently choose one of ten queues uniformly. Let the number of nonempty queues be a sum of ten indicators. A particular queue is empty only when all twenty jobs avoid it.
Now ask a different question: how many pairs of jobs share a queue? Each unordered pair matches with probability one tenth, so linearity gives:
These answers measure different things. The same indicator methods handle distinct birthdays and pairs of matching birthdays, under a stated model for the possible dates.
Randomly assigned labels
Shuffle address labels uniformly among their packages. Each package gets its correct label with probability . The expected number of correct labels is , even though the correctness indicators are dependent.
Collecting every type
Suppose each draw independently gives one of types uniformly. After collecting distinct types, the next draw is new with probability . The additional number of draws has mean . Add the waiting times for each new type:
For six equally likely types, the expected completion time is 14.7 draws. The final missing types take disproportionately long. Unequal type probabilities require a different calculation.
Waiting for the first marked object
Randomly order objects, of which are marked. For any particular unmarked object, consider just it and the marked objects. Each is equally likely to be first, so the unmarked object appears before all marked objects with probability .
Add one to include the marked draw itself, giving . With thirty objects and five marked ones, the expected first marked position is .
Orderings of continuous observations
For i.i.d. continuous observations, ties have probability zero and the strict orderings are equally likely. If two of six labeled jobs are designated urgent, the probability that their completion times are the two smallest is:
This uses identical distributions as well as independence. If urgent jobs have a different completion-time distribution, the symmetry argument no longer applies.
A function of a Poisson count
For with , LOTUS and the exponential power series give:
The answer is not . As approaches zero, the expression approaches one, matching a count that is almost always zero.
A random workload
Suppose the number of orders in an hour is Poisson with mean three. Each order independently contains an item count with mean two and variance one, independent of the number of orders. Total expectation and total variance give:
The variance is not just three: changing numbers of orders contribute additional variation. Independence of the order sizes from the order count is an essential assumption.
A practical solving sequence
- Define the sample space, events, and random variables before choosing a formula.
- Write the support and the sampling rule: replacement, independence, fixed sample size, or stopping at a success.
- For probabilities, try complements, disjoint cases, conditioning, and symmetry.
- For expectations, try linearity and indicators before deriving a full distribution.
- For variances, account for covariance or condition on a simpler variable.
- Check normalization, units, possible ranges, and limiting cases. A probability must lie between zero and one; a variance cannot be negative.