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.
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.
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 ().
Permutations and Combinations
Both count ways to choose items from distinct items.
- [leftmargin=*,itemsep=1pt]
- 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, .
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.
Decision test: Ask “If I swap two chosen items, is it a different outcome?” Yes permutation (order matters). No combination.
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:
A bag holds red and blue marbles ( total).
Over many draws, the experimental fraction of reds should hover near (the Law of Large Numbers).
“At least one” trick: It is almost always easier to compute than to add up every “one or more” case.
Independent & Dependent Events; Conditional Probability
For the probability that both and happen:
- [leftmargin=*,itemsep=1pt]
- 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 .
A deck of cards: draw two, without replacement. Find . There are hearts.
The second fraction uses and because one heart is already gone.
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).
Mutually Exclusive & Overlapping Events (Addition Rule)
For the probability that or happens:
- [leftmargin=*,itemsep=1pt]
- 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).
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.
Spot the overlap. If two categories can describe the same outcome, they overlap --- always subtract . If they never coincide, the overlap is .
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.
A fair coin, so , , :
“At least” means add up cases: is usually the fastest route, using the complement again.
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.”
One outlier drags the mean but not the median.
Data: ().
So a typical value sits about units from the mean of .
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.
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:
- [leftmargin=*,itemsep=1pt]
- about of data lies within of the mean,
- about within ,
- about within .
One outlier drags the mean but not the median.
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 , .
- [leftmargin=*,itemsep=1pt]
- Between and (that is ): about of people.
- An IQ of has , so it sits at . Only about of people score higher.
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 .
Going Deeper: Advanced Probability & Statistics
Not every arrangement is a plain permutation --- watch for two twists.
- [leftmargin=*,itemsep=1pt]
- 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.
One outlier drags the mean but not the median.
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 :
- [leftmargin=*,itemsep=1pt]
- 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.
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 .