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
Philosophy For Breakups | STOICISM
A breakup can be excruciatingly painful. No doubt about it. Last months I’ve had several requests for a video about breakups. I think we can get a lot of information from philosophy to make a breakup a bit more bearable. So, I’ve decided to make a series …
The ULTIMATE Beginners Guide to making Passive Income Step-By Step
What’s up, you guys? It’s Graham here. So let’s talk about probably one of the most in-demand, most asked for, biggest topics on the history of the internet and YouTube, and that is making passive income. Now, I’ve said it before, and I’ve said it again,…
How to Launch a Nuclear Missile
During the Cold War, the US and the Soviet Union had to build underground silos to house nuclear missiles that could be launched at a few minutes notice. Now, one of the technical challenges they had to overcome that you might not think of is acoustics. L…
Explained: 5 Fun Physics Phenomena
In my last video, I showed you five fun physics phenomena and asked you how they work. You responded with thousands of comments and some video responses. Well, here are my explanations. Let’s start with the cereal because it seems the simplest, but it tu…
2016 Berkshire Hathaway Annual Meeting (Full Version)
Good morning. I’m Warren Buffett. This is Charlie Munger. I’m the young one, and you may notice in the movie, incidentally, that Charlie is always the one that gets the girl. He has one explanation for that, but I think mine is more accurate. That, as you…
When This Number Hits 5200 - You Will be Dead
Wrapping your mind around your life is pretty hard because you’re up to your neck in it. It’s like trying to understand the ocean while learning how to swim. On most days, you’re busy just keeping your head above water, so it’s not easy to figure out what…