The shape of a binomial distribution · Statistics &… | StemPy Lab
Course 4.2·Lesson 3 of 3
The shape of a binomial distribution
The shape of a binomial distribution depends on p: a tail to the right for a small p, symmetric for p=0.5
Lesson 3 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
describe the shape of B(n,p) for small, middle and large p, and as n grows;
give the usual range of a count, from about two standard deviations below the mean to two above;
run a simulation and compare it with the formula.
Three shapes
Here are three binomial distributions with n=10.
Three bar charts side by side for binomial distributions with 10 trials and p = 0.1, 0.5 and 0.9. The first has its tall bars at 0, 1 and 2 with a tail to the right, the second is symmetric about 5, and the third mirrors the first with its tall bars at 8, 9 and 10.
With p=0.1, most of the probability is at 0, 1 and 2. A thin tail stretches to the right. We say the shape is skewed to the right.
With p=0.5, the bars are symmetric about the mean, 5.
With p=0.9, the picture is the mirror image of p=0.1. It is skewed to the left.
Why? A count cannot go below 0 or above n. When the mean is near 0, the bars pile up against that wall and spread out the other way.
As n grows
Keep p=0.1 and raise n to 100. The mean is 10 and the standard deviation is 3, so the counts sit well away from 0. The wall stops mattering, and the bars form a smooth, nearly symmetric bell. The last course of the chapter is about that bell, the normal curve.
The usual range
For most binomial counts, almost all the probability lies within two standard deviations of the mean. The usual range runs from np−2σ to np+2σ. A count outside it is unusual. It is not impossible, but it is worth a second look.
You should find that the band is widest at p=0.5 and narrows towards p=0 and p=1. Raise n, and the band grows, but more slowly than the mean. Four times as many trials make the band only twice as wide.
Counts and proportions
Survey results are often given as a proportion, the count divided by n. A proportion has mean p and standard deviation p(1−p)/n. This one shrinks as n grows. A larger survey pins down p more closely. The last chapter of this book builds on this idea.
A simulation that matches
In a made-up school, each student cycles to school with probability 0.3. Take a class of 10. The program simulates 10000 such classes, counts the cyclists in each, and compares the share of each count with the formula.
A bar chart of 10000 simulated classes of 10 students, each cycling with probability 0.3, showing the share of classes with each number of cyclists from 0 to 10. Red dots mark the binomial formula for each count and sit on or very near the tops of the bars.
Your turn
The usual mistakes
Calling every binomial symmetric. Only p=0.5 gives a symmetric shape for a small n.
Mixing up the direction of skew. The skew is named after the side of the long tail.
Expecting a simulation to match exactly. It matches closely, and more closely for more repeats.
Using the count's standard deviation for a proportion. Divide by n: p(1−p)/n.
Remember these
Small p: tail to the right. p=0.5: symmetric. Large p: tail to the left.
As n grows, the shape becomes a bell.
Usual range: np±2np(1−p).
A proportion has mean p and standard deviation p(1−p)/n.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Describe the shape of B(20,0.05).
For n=12, which p gives a symmetric distribution?
For a fixed n, which p gives the largest standard deviation?
A survey of 100 people has p=0.5. Find the standard deviation of the proportion who say yes.
A simulation of 500 classes gives shares that differ from the formula by up to 0.03. Is something wrong?
References
OpenStax, Introductory Statistics, Chapter 4, section on the binomial distribution, and Chapter 7 on the central limit theorem for sums.
Enroll free in Counting Successes: The Binomial Model
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.