Build a Binomial
Stack yes/no trials into a distribution, and read its centre, spread and shape.
Admitted students
Each admitted student accepts the offer with probability 0.7, independently of the others (Minerva's yield rate in the lesson). You meet 16 admitted students.
Each student is a Bernoulli trial: accept (1) or not (0). The number who accept, out of 16, is a binomial random variable.
1. How many accept?
Of the 16, what number of acceptances is the single most likely?
Go to step 2: the bars will tell you.
2. The distribution of the count
Each bar is P(X = x): the chance that exactly x of the n trials are yeses. Bars up to k are filled; the dashed line is the mean and the shaded band one SD either side.
With n = 16 and p = 0.7: what is the chance that at least 12 of the 16 accept? Answer as a decimal, to two places.
New case: the wheel from the lesson wins money on 70% of spins. You spin 40 times. What is the chance that at least 30 of the 40 spins win? Answer as a decimal, to two places.
Shape
Move n and p to test each statement before you agree on one.
3. When is a binomial lopsided?
As a group: which statement is right?
4. Where else?
As a group: pick a count from your own studies or life that adds up yes/no outcomes (free throws made in a game, say, but find your own). With rough guesses for n and p, what range of counts would you expect? If a real count fell outside it, which would you check first: that every trial has the same chance p, or that the trials are independent?
Points to compare
- Typical is np; a count more than about two SDs, 2√(np(1 − p)), away is a surprise (step 2). With n = 20 and p = 0.6 that is 12, and anything outside about 8 to 16.
- A good check names how the condition would fail for that count: streaks (one miss rattles the next shot) break independence; a chance that drifts (tiredness, harder questions late on) breaks the same p.
You should now be able to:
- find a binomial's mean np, its SD √(np(1 − p)) and the chance of “at least k” (step 2);
- say when a binomial is lopsided and how more trials change that (step 3).
Assumptions
- distributionX ~ Binomial(n, p): n independent trials, each a yes with the same probability p. P(X = x) = C(n, x) pˣ(1 − p)ⁿ⁻ˣ.
- parameterDefaults n = 16, p = 0.7 (the lesson's admitted students). n from 1 to 60, p from 0.05 to 0.95.
- simplification“Run the n trials once” uses a seeded generator (mulberry32); the seed is shared so a group sees the same run.
- interpretation“Most likely” is the mode, ⌊(n + 1)p⌋. When (n + 1)p is a whole number there are two modes, (n + 1)p − 1 and (n + 1)p, and the lower is shown.
Left out: the Normal approximation to the binomial (later in the unit).