yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

Variance of a binomial variable | Random variables | AP Statistics | Khan Academy


4m read
·Nov 11, 2024

What we're going to do in this video is continue our journey trying to understand what the expected value and what the variance of a binomial variable is going to be, or what the expected value or the variance of a binomial distribution is going to be, which is just the distribution of a binomial variable.

So, like in the last video, I have this binomial variable x that's defined in a very general sense. It's the number of successes from n trials, so it's a finite number of trials where the probability of success is equal to p. The probability is constant across the trials for each of these independent trials. So, the probability of success in one trial is not dependent on what happened in the other trials.

We also talked in that previous video where we talked about the expected value of this binomial variable. We said, "Hey, it could be viewed as the sum of n of what you could really consider to be a Bernoulli variable." Here, this variable, this random variable y, the probability that's equal to one—you could view that as a success—is equal to p. The probability that it's a failure, that y is equal to zero, is one minus p.

So, you could view y, the outcome of y, is really the—whether y is one or zero is really whether we had a success or not in each of these trials. If you add up n y's, then you are going to get x, and we use that information to figure out what the expected value of x is going to be because the expected value of y is pretty straightforward to directly compute. The expected value of y is just probability-weighted outcomes, so it's p times 1 plus 1 minus p times 0. This whole term is going to be 0, and so the expected value of y is really just p.

And so if you said the expected value of x, well, let's just write it over here—this is all review—we could say that the expected value of x is just going to be equal to—we know from our expected value properties that's going to be equal to the sum of the expected values of these n y's, or you could say it is n times the expected value of y. The expected value of y is p, so this is going to be equal to n times p.

Now we're going to do the same idea to figure out what the variance of x is going to be equal to because we know from our variance properties that you can't do this with standard deviation, but you could do it with variance. Then once you figure out the variance, you just take the square root for the standard deviation. The variance of x is similarly going to be the sum of the variances of these n y's, so it's going to be n times the variance of y.

So this all boils down to what the variance of y is going to be equal to. So let me scroll over a little bit, get a little bit of more real estate, and I will figure that out right over here.

All right, so we want to figure out the variance of y. So, the variance of y is going to be equal to what? Well, here it's going to be the probability squared distances from the expected value. We have a probability of p; where is our squared distance from the expected value? Well, we're going to get a 1 with the probability of p. So in that case, our distance from the mean or from the expected value—we're at one. The expected value we already know is equal to p, so that's that for that possible outcome—the squared distance times its probability weight.

Then we have—actually, let me scroll over—well, I'll just do it right over here. Plus, we have a probability of one minus p for the other possible outcome. So in that outcome, we are at—and the difference between 0 and our expected value—well, that's just going to be 0 minus p and once again we are going to square that distance. So this is the expression for the variance of y, and we can simplify it a little bit.

So this is all going to be equal to—let me just—p times 1 minus p squared, and then this is just going to be p squared times 1 minus p plus p squared times 1 minus p. Let's see, we can factor out a p times 1 minus p. So what is that going to be left with? If we factor out a p times 1 minus p here, we're just going to be left with a 1 minus p. If we factor out a p times 1 minus p here, we're just going to have a plus p.

These two cancel out; this whole thing is just a 1. So, you're left with p times 1 minus p, which is indeed the variance for a binomial variable. We actually proved that in other videos; I guess it doesn't hurt to see it again, but there you have it.

We know what the variance of y is; it is p times 1 minus p, and the variance of x is just n times the variance of y. So there we go—we deserve a little bit of a drum roll. The variance of x is equal to n times p times 1 minus p.

So if we were to take the concrete example of the last video, where if I were to take 10 free throws—so each trial is a shot, is a free throw. If I were to take 10 free throws and my probability of success is 0.3, I have a 30 free throw percentage. The variance that I would expect to see—so in that case, the variance, if x is the number of free throws I make after these 10 shots, my variance will be 10 times 0.3, 0.3 times 1 minus 0.3, so 0.7.

That would be what this right over here; so this would be equal to 10 times 0.3 times 0.7, times 0.21. So my variance in this situation is going to be equal to 2.1, is equal to 2.1. And if I wanted to figure out the standard deviation of this right over here, I would just take the square root of this.

So if you want the standard deviation, just take the square root of this expression right over here.

More Articles

View All
The Philosophy of the Sith | An Examination of the Dark Side (Star Wars)
The Sith are the main villains of one of the most influential movie franchises: Star Wars. The most iconic member of the Sith Lords is Darth Vader, a tragic character who used to go by the name of Anakin Skywalker. Anakin was a promising Jedi apprentice t…
2015 AP Calculus AB/BC 3cd | AP Calculus AB solved exams | AP Calculus AB | Khan Academy
Bob is writing his bicycle along the same path for ( 0 \leq t \leq 10 ). Bob’s velocity is modeled by ( b(t) = t^3 - 6t^2 + 300 ) where ( t ) is measured in minutes and ( b(t) ) is measured in meters per minute. Find Bob’s acceleration at time ( t = 5 ). …
Impeachment | Foundations of American democracy | US government and civics | Khan Academy
What we’re going to focus on in this video is the idea of impeachment: what it is and how it works, and with a little bit of historical background. So before we go into impeachment, let’s just review some key ideas about the US government. We have this i…
Warren Buffett Explains the 7 Rules Investors Must Follow in 2023
Warren Buffett, the king of value investing, has definitely built a cult-like following over the years, and well, he’s undoubtedly my investing idol too. What I find so interesting about his investment strategy, the one that’s made him 20% returns per yea…
Example reflecting quadrilateral over x axis
We’re asked to plot the image of quadrilateral ABCD. So that’s this blue quadrilateral here under a reflection across the x-axis. So that’s the x-axis, and we have our little tool here on Khan Academy where we can construct a quadrilateral, and we need to…
15 Things You Take For Granted
You know, compared to 200 years ago, we live like kings and queens. It’s important to refresh your perspective every now and then. Here are 15 things you take for granted. Welcome to LAX. First up, good health. You know, not very long ago, in the grand s…