Learn

Sets, Counting and Distributions

Contents

Probability starts by counting outcomes, and it stops working once there are too many to list. Two things replace listing: counting rules that give a total without writing it out, and distributions that cover a whole family of situations.

Why bother with set notation?

Because set notation says exactly which outcomes you mean, and ordinary English does not: "tea or coffee" excludes having both, but the union does not. A set is a collection of distinct objects, and the universal set is everything under discussion.

Everything in either circle is the union, A ∪ B: in A, in B, or in both. Full lesson: Set Notation

The intersection A ∩ B is what lies in both sets at once. The complement of A is everything in the universal set that is not in A, and B is a subset of A when every element of B is also in A. See Set Notation, Venn Diagrams and Complements and Subsets.

To count a union, add the two totals and subtract the overlap once: n(A ∪ B) = n(A) + n(B) − n(A ∩ B). Anyone in both sets was counted twice.

So subtract the overlap once: n(A ∪ B) = 12 + 9 − 5 = 16. Full lesson: Counting a Union

A probability is then a count of regions divided by the count of the whole, and a condition narrows which regions count. See Counting a Union, Probability in Set Notation and Conditional Probability from Tables.

Some infinities are strictly larger: the decimals between 0 and 1 cannot be listed even in an endless list. See Cantor's Diagonal: Bigger Infinities.

Change every diagonal digit: 0.584 differs from every row, so this list has missed it. Full lesson: Cantor’s Diagonal: Bigger Infinities

Now you

n(A) = 7, n(B) = 12, and 3 are in both. What is n(A ∪ B)?

n(A) = 13, n(B) = 14, and 7 are in both. What is n(A ∪ B)?

How do you count without listing?

By multiplying choices instead of writing out the possibilities. Choices made one after another multiply; a choice of one option or another adds.

There are two drinks, then two cakes for each. Each drink opens two more paths. Full lesson: Adding and Multiplying Choices

Three starters and four mains give 12 two-course meals; three starters or four mains, one course only, gives 7. See Adding and Multiplying Choices.

Arranging n different things in a row can be done in n! ways: n choices for the first position, n − 1 for the second, down to 1. There is one way to arrange nothing, so 0! = 1. See Factorials.

The exclamation mark means multiply all the way down to 1, so 5 slots give 120 ways. Full lesson: Factorials

Permutations or combinations?

Ask whether reordering the same selection produces a different outcome. If it does, count permutations; if it does not, count combinations.

A permutation fills r positions from n candidates in order: nPr = n!/(n − r)!. A combination has no order: nCr = n!/(r!(n − r)!). Eight runners give 336 orderings of three medals but only 56 teams of three. See Permutations and Combinations.

Every team was counted 3! = 6 times, once for each order of picking. Full lesson: Combinations

When items repeat, divide by the factorial of each repeat: BANANA arranges in 6! ÷ (3!2!) = 60 ways. When two people must sit together, glue them into one item and multiply by the 2 ways they can sit inside. See Repeats and Restrictions.

A triangle is an unordered choice of three vertices, so 10 points with no three in a line give 120 triangles. See Counting with Geometry.

Now you

How many ways to choose a team of 3 from 6?

How many ways to choose a team of 2 from 6?

What is a random variable?

A random variable attaches a number to every outcome of an experiment: instead of "two heads" you write X = 2, and X becomes something you can average. A discrete variable takes values you can list; a continuous one takes any value in a range. See Random Variables.

A probability distribution lists every value X can take with the probability of each. See Probability Distributions.

The probabilities must total 1, so a missing one is 1 minus the rest. Full lesson: Probability Distributions

The expected value E(X) is the mean of that distribution: multiply each value by its probability and add. It is a long-run average per trial, not a prediction of one trial. See Expected Value.

E(X) = 9 lands between the prizes, just short of 10. Nobody ever wins 9. Full lesson: Expected Value

Variance measures spread as the expected squared distance from the mean, usually computed as E(X²) − [E(X)]². Squaring stops distances above and below the mean canceling. See Variance.

Changing units changes the two differently: E(aX + b) = aE(X) + b, but Var(aX + b) = a²Var(X), because variance is measured in squared units. See Transforming a Random Variable.

A shift leaves the spread alone; doubling quadruples it: Var(2X) = 4Var(X). Full lesson: Transforming a Random Variable

Now you

X is 0 with probability 1/2 and 14 with probability 1/2. What is E(X)?

X is 0 with probability 1/2 and 12 with probability 1/2. What is E(X)?

What is the binomial distribution for?

For counting the successes in a fixed number of trials that each have the same two outcomes. One such trial is a Bernoulli trial: success with probability p, independent of the trial before. See Bernoulli Trials.

Write X ~ B(n, p) for the number of successes in n of those trials, and P(X = r) = nCr × p^r × (1 − p)^(n − r). See The Binomial Distribution.

Choose which r trials succeed and multiply p for each success, 1 − p for each failure. Full lesson: The Binomial Distribution

The mean and variance need no summing: E(X) = np and Var(X) = np(1 − p), so twenty tosses of a fair coin have mean 10 and variance 5. See Binomial Mean and Variance.

Take 5 trials with probability 1/2. The mean is np = 2.5, right under the peak. Full lesson: Binomial Mean and Variance

Check four conditions first: a fixed number of trials, two outcomes each, the same p every time, and independent trials. Independence is the one that fails: twenty people from the same household are not twenty independent trials. See Modeling with a Binomial.

If a bad batch makes faults come in clusters, the trials are not independent and the model no longer holds. Full lesson: Modeling with a Binomial

Now you

X ~ B(4, 1/2). What is P(X = 2)?

In how many ways can exactly 2 of 5 trials succeed?

How does the normal distribution work?

It describes a continuous quantity clustered symmetrically around a mean, and probability is read as area under the curve, whose total is 1. See Continuous Variables.

A probability is the area over a range of values, so one exact value has none. Full lesson: Continuous Variables

The curve has two parameters: the mean sets its position, the standard deviation σ its width. Two standard deviations either side hold about 95% of the values, and three hold 99.7%. See The Normal Distribution.

About 68 percent lies within one standard deviation, sigma, of the mean, either side. Full lesson: The Normal Distribution

There is a different curve for every mean and standard deviation, so no book could tabulate them all. Standardize instead: z = (x − μ)/σ turns every normal distribution into the same standard normal curve, with mean 0 and standard deviation 1. See Standardizing.

A z-score is a change of units, not a change of data, which is what makes comparison possible: a z of 1.8 on a chemistry paper beats a z of 1.2 on a history paper.

A z-table gives the area to the left of a z-score: subtract it from 1 for a right-hand tail, subtract the smaller from the larger for a band, and use symmetry for a negative z. An inverse normal question runs the table backward: the top 10% starts where 90% of the area lies to the left, so z = 1.28, then undo the standardizing with x = μ + zσ. See Reading the Z-Table, Reading Normal Probabilities and Inverse Normal.

Sums and differences of independent normal variables are normal again, and their means add. See Combining Normals.

Var(X − Y) = 1 + 1 = 2 as well — independent spreads add even when you subtract. Full lesson: Combining Normals

Now you

What is P(2.33 < Z < 2.58)?

What is P(1.645 < Z < 1.96)?

The mistakes worth naming

Where this leads next

Everything here describes a distribution you assume. Deciding from data which assumption is defensible is the sampling and inference guide. The counting rules feed the tree diagrams in the probability guide, and the combination numbers are the coefficients in the binomial theorem.

Learn this properly in the app

Math Challenge teaches each of these as an illustrated lesson with a worked calculation and practice questions. Start with Sets and Counting or Distributions.

Your turn

Three to try — tap what you get.

|A| = 5, |B| = 4, |A ∩ B| = 2. What is |A ∪ B|?

How many ways can 4 books line up on a shelf?

3 shirts and 2 pairs of pants make how many outfits?

Math ChallengePractice that adapts to you, the whole lesson ladder, and your progress saved.
Start with Math Challenge

Mr. Chalk Practice this lesson in the app