UPI Study › Courses › Discrete Mathematics › Free lessons › Lesson 8.5 Free with a free account
Finding the Mean of a Binomial Distribution
Discrete Mathematics · Chapter 8: Binomial Probability, Recurrence Relations, and Generating FunctionsSection 8.5 · lesson 50 of 87video coming soon
← Using Binomial Probability TablesNext lesson: Measuring Spread in Binomial Distributions →
In this lesson
The np formula, 2 proofs of it, and what it means.
- Derive the mean np from the definition
- Interpret the mean as an expected count
- Explain a mean that isn't a whole number
- Reprove np with indicator variables
Transcript
Everything said in the video, section by section (1,143 words). Read along, or search it.
Binomial Probability, Recurrence Relations, and Generating Functions
Finding the Mean of a Binomial Distribution
This section finds the mean of a binomial distribution. It comes out as a strikingly simple formula, n times p. We'll prove it twice. Once directly from the definition of expected value, and once with a much shorter argument that makes the connection to chapter six explicit. And we'll be careful about what the number actually means.
The Opening Problem
How Many Reviewers This Hour?
A social media platform's moderation classifier flags each uploaded post for human review. We'll use an illustrative flagging probability of zero point zero three, independently across posts. In a typical hour, about five hundred posts are uploaded. The operations lead doesn't need the probability of any single exact count of flagged posts. She needs to know, on average, how many to expect, so she can schedule reviewers. That average is the mean, or expected value, of the binomial count of flagged posts. How spread out the count is around that mean is the subject of section eight point six.
Recall and Theorem 8.5.1
Expected Value, Applied to a Binomial
Chapter six defined the expected value of a discrete random variable as a probability-weighted average. Each possible value, times its probability, summed. It's often written mu. For a binomial variable, substitute the binomial probabilities. That gives the sum, for k from zero to n, of k times n choose k, times p to the k, times one minus p to the n minus k. The theorem says that whole sum equals n times p. The number of trials, times the success probability. Here's the proof, with no step skipped.
Worked Derivation 8.5.1
Absorb the k Into the Coefficient
First, the k equals zero term contributes nothing, so the sum can start at k equals one. Now simplify k times n choose k. Expand the coefficient, and cancel one factor of k against k factorial, since k over k factorial is one over k minus one factorial. That leaves n factorial, over k minus one factorial times n minus k factorial. Factor a single n out of n factorial. What's left is exactly n minus one choose k minus one. So k times n choose k equals n times n minus one choose k minus one. Substitute that back in, and pull one factor of p out of p to the k. That puts n times p in front of the whole sum.
Worked Derivation 8.5.1
Reindex, and the Sum Is 1
Next, reindex. Let j equal k minus one. As k runs from one to n, j runs from zero to n minus one. And n minus k becomes n minus one, minus j. The remaining sum is n minus one choose j, times p to the j, times one minus p to the n minus one minus j, over every j. That's exactly the total probability of every outcome of a binomial variable with n minus one trials. Total probability is always one. So the expected value is n p times one, which is n p.
Worked Example 8.5.1
15 Flagged Posts an Hour
Back to the moderation queue. With five hundred posts and p of zero point zero three, the mean is five hundred times zero point zero three, which is fifteen. That's a long-run average. Over many hours of five hundred uploads each, the average number of flagged posts settles at fifteen. That's the law of large numbers, from chapter six. It isn't a prediction for any particular hour. Exactly fifteen flagged posts happens only about ten percent of the time. It's the balance point of the whole distribution of hourly counts, and it's the number to staff reviewers against.
Worked Example 8.5.2
A Mean of 3.5 Defective Boards
A subtlety worth making explicit. n p doesn't have to be a whole number, even though every outcome of X is. A quality-control station tests seven circuit boards per batch. Under a stress test, each is independently defective with probability one half. The mean is seven times zero point five, which is three and a half. No single batch can have three and a half defective boards. The possible values are zero through seven. But over a thousand batches, the total number of defective boards will be close to three thousand five hundred. That's an average of three and a half per batch. The mean is an average, not a value X must hit.
Figure 8.5.1
The Mean as a Balance Point
Here's a binomial distribution with twenty trials and p of zero point three. The gold bar marks the mean, n p, which is six. The mean is the distribution's balance point, where the whole probability-weighted distribution would balance. In this case, it also happens to line up with the tallest bar. But that's not guaranteed in general, as the three and a half example shows.
Recall - Linearity of Expectation
A Second Route to np
Chapter six also gave a second tool for expected values. Linearity of expectation. The expected value of a sum of random variables equals the sum of their expected values. And it holds unconditionally, for any random variables on the same sample space, whether they're independent or not. That's what makes it such a powerful shortcut.
Worked Derivation 8.5.2
One Trial at a Time
Here's the second proof. For each trial i, define an indicator variable, X sub i. It's one if trial i succeeds, and zero if it fails. Then the total count X is just the sum of those indicators. Each success adds one, and each failure adds zero. Each indicator's expected value is easy. One times p, plus zero times one minus p. That's just p. Now apply linearity. The expected value of X is the sum of n expected values, each equal to p. That's n p. Notice what made it so short. It never sums over the possible values of X at all, so the binomial coefficient never appears. It works one trial at a time.
2 Routes, 1 Result
What Each Proof Reveals
Both proofs reach n p, but they're not just a long version and a shortcut. They reveal different things. The direct summation needs a coefficient identity, and the fact that total probability is one. It takes more effort, but it shows mechanically where n p comes from, inside the formula itself. The indicator proof only needs to see X as a sum of zero-one variables. It's much less work. And it shows why n p holds even without independence between trials. It also extends readily to trials with different success probabilities.
Takeaways
np, 2 Ways
To summarize. For a binomial random variable, the mean is n times p. It can be proved by direct summation, or by linearity of expectation on indicator variables. It's a long-run average, not a claim about any single run, so it doesn't have to be a whole number. And linearity of expectation holds unconditionally. Independence is never required. Here's something to think about. Suppose someone claims the same freedom for variance. The variance of a sum always equals the sum of the variances. Test a simple case. Let X two be an exact copy of X one, so they're certainly not independent. Does doubling a single random quantity spread its outcomes as much as adding two genuinely separate, independent copies would? What extra condition might section eight point six need, to make its version of that identity true?
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 Finding the Mean of a Binomial Distribution
What is the mean of a binomial distribution, and what does it tell you?
How do you derive np directly from the definition of expected value?
Why can the mean of a binomial distribution be a non-whole number like 3.5?
How do you prove E[X]=np using indicator variables?
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 →