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

Variance and standard deviation of a discrete random variable | AP Statistics | Khan Academy


4m read
·Nov 11, 2024

In a previous video, we defined this random variable (X). It's a discrete random variable; it can only take on a finite number of values. I defined it as the number of workouts I might do in a week. We calculated the expected value of our random variable (X), which you could also denote as the mean of (X), and we use the Greek letter (\mu), which we use for population mean. All we did is take the probability-weighted sum of the various outcomes, and we got for this random variable with this probability distribution, we got an expected value or a mean of 2.1.

What we're going to do now is extend this idea to measuring spread, and so we're going to think about what the variance of this random variable is. Then, we could take the square root of that to find out what the standard deviation is. The way we are going to do this has parallels with the way we've calculated variance in the past.

So, the variance of our random variable (X): what we're going to do is take the difference between each outcome and the mean, square that difference, and then we're going to multiply it by the probability of that outcome. For example, for this first data point, you're going to have (0 - 2.1) squared times the probability of getting (0) time (0.1). Then you are going to get (+) (1 - 2.1) squared times the probability that you get (1) times (0.15). Then you're going to get (+) (2 - 2.1) squared times the probability that you get a (2) times (0.4). Then you have (+) (3 - 2.1) squared times (0.25), and then last but not least you have (+) (4 - 2.1) squared times (0.1).

So, once again, the difference between each outcome and the mean, we square it, and we multiply it times the probability of that outcome. This is going to be (-2.1) squared, which is just (2.1) squared, so I'll just write this as (2.1) squared times (0.1); that's the first term. Then we're going to have (+) (1 - 2.1) is (-1.1) and then we're going to square that, so that's just going to be the same thing as (1.1) squared, which is (1.21), but I'll just write it out as (1.1) squared times (0.15).

Then this is going to be (2) minus (2.1) is (0.1). When you square it, it's going to be equal to (+) (0.1); if you have (0.1) times (0.4), that’s (0.01) times (0.4). Then, plus, this is going to be (0.9) squared, so that is (0.81) times (0.25). Then we're almost there; this is going to be (+) (1.9) squared times (0.1), and we get (1.19).

So this is all going to be equal to (1.19), and if we want to get the standard deviation for this random variable, we would denote that with the Greek letter (\sigma). The standard deviation for the random variable (X) is going to be equal to the square root of the variance, the square root of (1.19), which is equal to... let's just get the calculator back here.

So we are just going to take the square root of what we just calculated; I'll just type it again: (1.19), and that gives us approximately (1.09); approximately (1.09).

So, let's see if this makes sense. Let me put this all on a number line right over here. So you have the outcome (0), (1), (2), (3), and (4). You have a (10%) chance of getting a zero, so I will draw that like this. Let's just say this is a height of (10%).

You have a (15%) chance of getting one, so that will be one and a half times higher, so it looks something like this. You have a (40%) chance of getting a (2), so that's going to be like this. You get a (40%) chance of getting a (2). You have a (25%) chance of getting a (3), so it looks like this. And then you have a (10%) chance of getting a (4), so it looks like that.

So this is a visualization of this discrete probability distribution where I didn't draw the vertical axis here, but this would be (0.1), this would be (0.15), this is (0.25), and that is (0.05). Then we see that the mean is at (2.1). The mean is at (2.1), which makes sense.

Even though this random variable only takes on integer values, you can have a mean that takes on a non-integer value. Then the standard deviation is (1.09), so (1.09) above the mean is going to get us close to (3.2), and (1.09) below the mean is going to get us close to (1).

So this all, at least intuitively, feels reasonable. This mean does seem to be indicative of the central tendency of this distribution, and the standard deviation does seem to be a decent measure of the spread.

More Articles

View All
Tech startups live and die by their speed of shipping software.
I was the single non-technical person on a four-person co-founding team at Justin TV and Twitch. And like, I’ll just make it plain: without my three other co-founders, none of that happens. Ideas are a dime a dozen. I think that more business people need…
The Second Great Awakening - part 1
The Second Great Awakening was one of the most important social, religious, and cultural aspects of the early 19th century in the United States. In fact, I might even make the argument that it’s impossible to understand the early 19th century without unde…
Writing y = mx proportional equations worked example 1 | Grade 8 (TX) | Khan Academy
We are told in a rowing exercise Claudia completes 450 strokes in 15 minutes. Write an equation that can be used to find the number of strokes y she can row in x minutes. So, pause this video and see if you can figure that out. All right, now let’s think…
Elon Musk On How To Be Most Useful
Do you think people that want to be useful today should get PhDs? Um, mostly not. So what is the best way to be useful? Yes, but mostly not. Um, how should someone figure out how they can be most useful? Whatever the thing is that you’re trying to create…
"Why I Started MINING My Own BITCOIN!" (Millionaire Bitcoin Advice) | Kevin O'Leary
We don’t think you should own coin made in China. I said the only way I can possibly not own kind of China coin is to make it myself. So, new game plan: every coin I’m going to own, I’m going to know where it came from, when it was created, and it’s goin…
When Does Healthy Fitness Become Unhealthy? The Dark Side of Teen Bodybuilding #Shorts
The gym has been a sort of therapy for me, and when I go there, I can turn the world off for an hour or two and just focus on pushing the weight. Going to the gym regularly also teaches discipline, hard work, consistency, and perseverance, all of which ca…