UPI Study › Courses › Discrete Mathematics › Free lessons › Lesson 8.6 Free with a free account
Measuring Spread in Binomial Distributions
Discrete Mathematics · Chapter 8: Binomial Probability, Recurrence Relations, and Generating FunctionsSection 8.6 · lesson 51 of 878 min · free with a free account
Free preview
Create a free account to keep watching
It takes a minute and costs nothing. Your free account unlocks all of Chapter 1 and 3 more lessons of Discrete Mathematics.
Lesson complete
Earn the 4 college credits for Discrete Mathematics
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: Applied Binomial Experiment Problems →← Finding the Mean of a Binomial DistributionNext lesson: Applied Binomial Experiment Problems →
In this lesson
Variance npq and standard deviation - built one trial at a time.
- Find the variance of a single Bernoulli trial
- Prove variances add for independent variables
- Compute the variance and standard deviation of a binomial
- Explain why spread peaks at p = 1/2
Transcript
Everything said in the video, section by section (1,162 words). Read along, or search it.
Binomial Probability, Recurrence Relations, and Generating Functions
Measuring Spread in Binomial Distributions
Section eight point five found the center of a binomial distribution, its mean. This section measures its spread. It builds two related numbers, the variance and the standard deviation, using exactly the same strategy as before. Write the count as a sum of simple pieces, find what each piece contributes, and add the contributions.
The Opening Problem
Nobody Sees an Average Day
Consider a moderation classifier that wrongly flags compliant posts with an illustrative probability of zero point two. Take a batch of twenty-five posts. By the formula from section eight point five, the mean number of wrongly flagged posts is twenty-five times zero point two, which is five. That's useful for planning an average day. But an operations team rarely sees an average day. It sees a specific batch. Some batches will show two flagged posts, and others eight. Knowing the long-run average is five says nothing about how far a typical batch drifts from it. A staffing plan built on the mean alone risks being badly under-resourced on a high day, or wasteful on a low one. What's missing is a measure of spread. How much X typically varies around its mean.
8.6.1 The Same Strategy as 8.5
A Sum of Simple Pieces
As in section eight point five, write X as a sum of indicator variables, one per trial. Each is one if that trial succeeds, and zero if it fails. Each indicator is one with probability p, and zero with probability q, which is one minus p. And the indicators are mutually independent. For the batch, that's twenty-five indicators, each equal to one with probability zero point two. The plan mirrors the mean exactly. Find the variance contributed by one piece. Then work out how the contributions of independent pieces combine.
Worked Example 8.6.B
1 Trial: Variance pq
The variance of a random variable is the expected squared distance from its mean. Equivalently, the expected value of its square, minus the square of its expected value. For one indicator, the mean is one times p plus zero times q, which is p. Now notice that squaring an indicator changes nothing. Zero squared is zero, and one squared is one. So the expected value of its square is also p. That makes the variance p, minus p squared, which is p times one minus p. That's p q. For the batch, each post contributes zero point two times zero point eight, which is zero point one six.
Theorem 8.6.1
Why Variances Add
Now, how do variances combine? Expand the variance of a sum, Y plus Z, using the definition and linearity of expectation. After regrouping, it's the variance of Y, plus the variance of Z, plus twice a leftover cross term. The expected value of Y Z, minus the product of their expected values. That cross term is called the covariance of Y and Z. If Y and Z are independent, their joint probabilities factor, so the expected value of the product equals the product of the expected values. The covariance is zero. So for independent variables, variances add.
Formula 8.6
n Trials, n Identical Terms
Apply that repeatedly across all n independent trials, formally by induction on n. The variance of X is the sum of the n trial variances. Each one is p q. So the sum collapses to n identical terms, n p q. That's the variance of a binomial distribution. The standard deviation, sigma, is its square root, the square root of n p q. Taking the square root restores the original units of X, which squaring had changed.
Worked Example 8.6.D
The 25-Post Batch
For the moderation batch, the variance is twenty-five times zero point two times zero point eight, which is four. So the standard deviation is the square root of four, which is two. Together with the mean, that says the batch is expected to have five wrongly flagged posts on average, typically varying from that by about two in either direction.
8.6.4 When Is Spread Largest?
Complete the Square
Sigma only becomes useful when you read it against p. How does spread change as p changes? Complete the square. p times one minus p equals minus, p minus one half, squared, plus one quarter. The squared term is never negative, so p times one minus p is at most one quarter. And it equals one quarter only when p is exactly one half. Multiplying by n, the variance is at most n over four, with equality only at p equal to one half. In words, for a fixed batch size, spread is greatest when each trial is a coin flip's worth of uncertainty. It shrinks toward zero as p approaches zero or one, where trials become nearly certain.
Table 8.6.1
Spread Across p, n = 25
This table shows that directly, for batches of twenty-five. The standard deviation is one and a half at p zero point one, two at zero point two, and peaks at two and a half at zero point five. And it's identical for p and one minus p. Compare zero point one with zero point nine, or zero point two with zero point eight. Swapping p and q leaves n p q unchanged. The mean isn't symmetric this way. It simply tracks p.
Worked Example 8.6.E
A Hypothetical p = 0.5 Classifier
Consider a second, purely hypothetical classifier on the same batch size, with p equal to zero point five. It's no more likely to pass a compliant post than to flag it. Its variance is twenty-five times zero point five times zero point five, which is six point two five. So its standard deviation is two and a half. Compared with the original classifier's two, its count swings about half a post further from its own mean. That's a direct, numeric confirmation that p of one half produces the widest spread for a fixed n.
Figure 8.6.1
Within 1 SD of the Mean
Here's the full distribution for the original batch. The gold bars, three through seven, are the outcomes within one standard deviation of the mean. Adding their exact probabilities gives about zero point seven nine three. So roughly seventy-nine percent of batches land within one sigma of the mean, for this distribution specifically. That means about one batch in five still falls outside three to seven. So reporting the mean and sigma together turns about five on average into a usable planning range. Build capacity for roughly the mean plus or minus sigma, with a separate reserve for the days further out. And a classifier nearer p of one half needs a wider reserve, purely because of how spread depends on p.
Takeaways
Center Plus Spread
To summarize. Writing X as a sum of independent indicators turns the variance into one trial's variance, combined across trials. Each trial contributes p q, because an indicator squared is itself. Variances add across independent, or more precisely uncorrelated, variables. So the binomial variance is n p q, and sigma is its square root, largest at p equal to one half. The mean describes the center, and sigma describes the typical drift. Realistic planning needs both. Here's something to think about. The proof used independence only once, to conclude that the covariance is zero. So independence is sufficient. But is it necessary? Could two variables that aren't independent still have variances that add? What property, precisely, would they need to share for that key step to go through?
About Discrete Mathematics at UPI Study
Discrete Mathematics (Math 230) is a self-paced online course of 87 video lessons in 13 chapters, from logic and proof to counting, probability, graph theory and trees. It carries a NCCRS credit recommendation for 4 semester credits.
Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Enroll now → Course details Download the syllabus Every course with PRO →
Why take it here
Why students take Discrete Mathematics with UPI Study
Where the credit goes
Universities that work with NCCRS
Discrete Mathematics carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.
FAQ
Questions students ask us
About Measuring Spread in Binomial Distributions
What is the variance of a single Bernoulli trial?
Why do variances add for independent random variables?
How do you find the variance and standard deviation of a binomial distribution?
Why is the spread of a binomial distribution largest when p = 1/2?
About the Discrete Mathematics course
How many college credits is Discrete Mathematics?
How much does Discrete Mathematics cost and what is included?
Which universities accept UPI Study credits?
How long does Discrete Mathematics take?
How are the exams done?
How do my credits reach my college?
Ready for the full course? Earn 4 credits in Discrete Mathematics.
87 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.
4 credits · NCCRSEnroll →