The Fundamental Counting Principle
If a task is made of several independent stages, and stage can happen in ways, stage in ways, and so on, then the whole task can happen in
This is the engine behind every counting formula in this topic: whenever choices are made in sequence, you multiply.
Permutations count ordered arrangements; combinations count unordered selections. Probability of independent events multiplies, of mutually exclusive events adds, and conditional probability rescales to the event that already happened. The normal distribution describes many measurements, and z-scores measure how unusual a value is.
Multiplication counts the branches of a tree: each of the shirts starts its own set of pants branches, so there are shirt-and-pants pairs, and each of those splits again into shoe choices. Every complete path through the tree is exactly one outfit, and no outfit is counted twice.
A wardrobe has shirts, pairs of pants, and pairs of shoes. How many outfits (one of each) are possible?
If a password uses digits and repeats are allowed, there are passwords.
Adding the choices: outfits. That counts single items, not combinations; every shirt can go with every pair of pants, so the choices multiply.
Repeats allowed or not? If items can repeat, each stage keeps the full count (). If they cannot repeat, the pool shrinks by one each time ().
A plate has letters followed by digits. How many plates are possible? How many if no letter or digit may repeat?
Show the answerHide the answer
Repeats allowed: . No repeats: .
Permutations and Combinations
Both count ways to choose items from distinct items.
- Permutation — order matters (arrangements, rankings, seating): @@BLOCK0@@
- Combination — order does not matter (committees, teams, hands): @@BLOCK1@@
Because a combination ignores the orderings of each group, .
Every team of can be lined up in orders, so listing lines counts each team times. That is the whole relationship: , so . The formula is the permutation count divided by the orderings of each group.
From students, form a line of (permutation) versus a team of (combination).
There are exactly times as many lines as teams, because each team of can be lined up in ways.
Using a permutation for a committee: "choose of for a committee: ." Swapping two members does not change a committee, so each group of was counted times; the answer is .
Decision test: Ask “If I swap two chosen items, is it a different outcome?” Yes permutation (order matters). No combination.
(a) How many ways can runners finish first, second and third? (b) How many -person committees can be chosen from people?
Show the answerHide the answer
(a) Order matters: . (b) Order does not: .
Basic Probability
For equally likely outcomes,
Theoretical probability comes from the model (a fair die gives ). Experimental probability comes from data: . The complement rule saves work:
The complement rule holds because an event and its complement split the outcomes with nothing left over and nothing shared: every draw is red or not red. Their probabilities therefore add to . It is the right tool whenever the event itself is complicated but its opposite is simple, like "at least one."
A bag holds red and blue marbles ( total).
Over many draws, the experimental fraction of reds should hover near (the Law of Large Numbers).
Expecting experimental results to match exactly in the short run: after draws with replacement, getting reds does not mean the bag changed. The Law of Large Numbers is about long runs; the fraction settles near only over many draws.
“At least one” trick: It is almost always easier to compute than to add up every “one or more” case.
Roll a fair die times. What is the probability of at least one ?
Show the answerHide the answer
Complement: no in three rolls has probability . So .
Independent & Dependent Events; Conditional Probability
For the probability that both and happen:
- Independent — one outcome doesn't affect the other, so and the rule becomes . (Coin flips, drawing with replacement.)
- Dependent — the first outcome changes the second (drawing without replacement).
Conditional probability isolates .
Conditioning shrinks the world. Given that a student plays a sport, only the who do are still in play, and of them the ones who also play an instrument are the overlap; so the conditional probability is . The multiplication rule is the same sentence rearranged: .
A deck of cards: draw two, without replacement. Find . There are hearts.
The second fraction uses and because one heart is already gone.
Confusing with . "" divides the overlap by the instrument total, which is not given here; it is not in general.
In a class, play a sport and play a sport and an instrument. Given a student plays a sport, the chance they also play an instrument is
With vs. without replacement. “With replacement” independent (denominators stay the same). “Without replacement” dependent (denominator drops by each draw).
A box has good and faulty batteries. Two are taken without replacement. Find and .
Show the answerHide the answer
. After a good one is removed, remain with faulty: .
Mutually Exclusive & Overlapping Events (Addition Rule)
For the probability that or happens:
- Mutually exclusive (disjoint) — can't both happen, so and the rule is just .
- Overlapping — can happen together, so subtract the overlap once (it was counted twice).
Adding counts every outcome in the overlap twice, once as an and once as a . Subtracting once corrects the double count. When the events cannot overlap, that correction is , and the simple sum is right.
Draw one card. Find . There are kings, hearts, and the king of hearts is in both.
If we had added without subtracting, the king of hearts would be double-counted.
Adding overlapping probabilities: . The king of hearts was counted in both; the answer is .
Spot the overlap. If two categories can describe the same outcome, they overlap — always subtract . If they never coincide, the overlap is .
In a class of , take Spanish, take art and take both. A student is chosen at random. Find and .
Show the answerHide the answer
. (that is students).
Binomial Probability (Introduction)
A binomial experiment has: (1) a fixed number of trials , (2) two outcomes per trial — success or failure, (3) a constant success probability , and (4) independent trials. The probability of exactly successes is
Here counts which trials succeed, is their successes, and the remaining failures.
Any one specific sequence with heads and tails, like HHTHT, has probability because the flips are independent. The binomial coefficient counts how many such sequences there are, (choose which of the flips are heads), and the sequences cannot happen together, so their probabilities add.
A fair coin, so , , :
Forgetting the coefficient: . That is the chance of one particular order, like HHHTT; there are orders, so the answer is .
“At least” means add up cases: is usually the fastest route, using the complement again.
A player makes of free throws. In shots, find and .
Show the answerHide the answer
. .
Measures of Center and Spread
Center: the mean , the median (middle value when ordered), and the mode (most frequent). Spread: the variance is the average squared distance from the mean, and the standard deviation is its square root:
Standard deviation is in the same units as the data, so it measures “typical distance from the mean.”
Deviations from the mean always add to zero (that is what makes the mean the balance point), so their plain average is useless as a measure of spread. Squaring makes every deviation positive, and the square root at the end returns to the original units. The standard deviation is therefore a typical distance from the mean, with large deviations weighted more heavily.
Data: ().
So a typical value sits about units from the mean of .
Averaging the deviations without squaring: , "so there is no spread." Deviations from the mean always cancel; that is why they are squared first.
Population vs. sample. Dividing by gives the population standard deviation (used here). Dividing by gives the sample standard deviation, used when the data is a sample of a larger group.
Find the mean and population standard deviation of .
Show the answerHide the answer
Mean . Deviations ; squares , sum . Variance , so .
The Normal Distribution, the Empirical Rule & z-Scores
Many natural measurements (heights, test scores, errors) follow a normal distribution: a symmetric, bell-shaped curve centered at the mean , with spread set by . For any normal distribution, the Empirical Rule (68–95–99.7) says:
- about of data lies within of the mean,
- about within ,
- about within .
A z-score converts any normal distribution to one standard scale, because every normal curve has the same shape once distances are measured in standard deviations. That is why one rule, ––, works for IQ, heights and test scores alike, and why values from different tests can be compared by their -scores.
A z-score rewrites any value as its distance from the mean, measured in standard deviations:
A positive is above the mean, negative is below, and is exactly average. z-scores let you compare values from different distributions on one common scale.
IQ scores are normal with , .
- Between and (that is ): about of people.
- An IQ of has , so it sits at . Only about of people score higher.
Using the figure for a one-sided question: " of scores are below ." lie between and ; the outside splits evenly, so are below .
Symmetry shortcut. Because the curve is symmetric, lies below the mean and above. To find a one-sided tail, take half of what's left: above is .
Ana scored on a test with , . Ben scored on a test with , . Who did better relative to their class?
Show the answerHide the answer
Ana: . Ben: . Ben is standard deviations above his mean, Ana , so Ben did better relative to his class.
Going Deeper: Advanced Probability & Statistics
Not every arrangement is a plain permutation — watch for two twists.
- Circular arrangements. Seating people around a round table has no “first” seat, so every arrangement can be rotated ways to look the same. Divide the overcount away: @@BLOCK0@@
- Identical (repeated) items. Arranging objects where one kind repeats times, another times, and so on: @@BLOCK1@@ We divide by each because swapping identical items produces no new word.
The word MISSISSIPPI has letters: M (), I (), S (), P (). Distinct arrangements:
Without dividing out the repeats we would count — overcounting every rearrangement of identical letters.
Overcounting checklist. Whenever a symmetry makes different-looking arrangements “the same” (rotations of a circle, swaps of identical items, or reflections of a bracelet), divide the raw count by the number of ways that symmetry acts.
When a direct count splits into many cases, count the opposite and subtract from the total. For probabilities this is the complement rule; for raw counts it is the same idea:
The phrase “at least one” is the signal: the negation “none” is almost always a single, clean computation.
Roll a fair die four times. Find . The complement “no sixes” means each roll lands on one of five faces:
Adding the “exactly one, exactly two, three, four” cases separately would take four binomial terms; the complement needs just one.
Conditional probabilities are not symmetric: in general. Bayes' theorem flips a known conditional into the one you want:
The denominator is the law of total probability: it rebuilds by splitting across and its complement .
A disease affects of people. A test is accurate both ways: and (so ). A patient tests positive — what is ?
Despite a “ accurate” test, a positive result is only a coin flip — because the disease is rare, false positives from the huge healthy group roughly equal the true positives.
Don't ignore the base rate. A test's accuracy is , but a patient cares about . When the condition is rare, that reversal can be dramatically smaller. Always run it through Bayes.
The expected value of a numerical outcome weights each value by its probability:
It is the average you would approach over many repetitions — not necessarily a possible single outcome. A game is fair when .
A $ ticket pays $ with probability and nothing otherwise. Find the expected net gain.
On average you lose $ per ticket, so the game is not fair (it favors the seller).
For a binomial with trials and success probability , a threshold question sums several exact- terms:
When is small, the complement is faster: , and .
Each part is defective with probability , independently, . Find using the complement:
So there is about an chance of two or more defects — found with two terms instead of five.
Shifting and scaling every data value changes center and spread in predictable ways. If :
- Mean shifts and scales: .
- Standard deviation scales but does not shift: .
- Variance scales by the square: .
Adding a constant slides all data together, so spread is unchanged; multiplying by stretches the gaps by .
A week of temperatures in Celsius has mean and standard deviation . Convert with (, ):
Standardizing to a z-score is the special case , i.e. , , which forces mean and standard deviation .
Add vs. multiply. Adding a constant moves the center but leaves the spread alone. Multiplying rescales both. This is why never changes when you merely shift data.
To pool two groups of sizes , the combined mean is the weighted average — never the plain average of the two means unless the groups are the same size:
Variance must be pooled about the combined mean. Using each group's sum of squared deviations and combined mean :
The extra terms account for how far each group's center sits from the shared center.
Class A: , , . Class B: , , . Combined:
So — larger than either group's own spread, because the two centers ( and ) are pulled apart.
Weighted, not averaged. A combined mean weights by group size, and combined variance adds a “spread between the groups” correction. Never just average the two means or the two variances unless and the means coincide.
Why It Works
Combinations come from permutations by removing order: choosing items in order can be done ways, and each unordered selection was counted times (once per ordering), so . Independent events multiply because the second event's probability is unchanged by the first; conditional probability simply restricts the sample space to and renormalizes.
Do not read a proof the way you read a rule. Cover the last line, ask what the previous line forces, and only then uncover it. If a step feels like magic, that is the step to work by hand with a concrete number.
Formulas, Proofs & Tips
What it means. The typical distance of a value from the mean.
Example. For : mean , so .
Why it works. Raw deviations sum to zero, so they are squared to stop cancellation, averaged to get a typical squared distance, then square-rooted to return to the original units.
Tip. Adding a constant to every value leaves unchanged; multiplying every value by multiplies by .