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
THE FED JUST CRUSHED THE MARKET | Urgent Changes Explained
What’s up, Grandma’s guys? Here, and welp, it happened. As of a few hours ago, the Federal Reserve yet again raised their Benchmark interest rates by another 50 basis points, officially bringing us to the highest rates that we’ve seen since 2007, right be…
HOW TO SPEND YOUR $1200 STIMULUS CHECK
What’s up, guys? It’s Graham here, and welcome to my channel, where some random guy on the internet gives his unqualified opinion on the most important financial matters of today. So, there’s a lot we got to discuss in today’s video, and I’m wondering if…
Why This Zig-Zag Coast Guard Search Pattern is Actually Genius - Smarter Every Day 268
Hey, it’s me, Destin. Welcome back to Smarter Every Day! OK, we are kicking off the Coast Guard series in full effect here. Today, we want to get to the good stuff. We’re gonna start learning about search and rescue. And when you think about the Coast Gua…
Why The $1 Electric Scooter Will TAKE OVER The World
And for all the young entrepreneurs out there, just realize that sometimes it’s the most simple ideas that often do the best. I think we have the natural tendency just to overcomplicate things because we believe the more complicated something is, the bett…
More problems with knowing the 'fundamental nature' of X
Npg85 made a video in which he offered an alternative way of trying to distill the fundamental essence of the process. In his video, he used the example of a computer speaker to illustrate his thinking. So I’m going to use the same example to demonstrate …
2015 AP Calculus AB 6b | AP Calculus AB solved exams | AP Calculus AB | Khan Academy
Find the coordinates of all points on the curve at which the line tangent to the curve at that point is vertical. So, we want to figure out the points on that curve where the tangent line is vertical. Let’s just remind ourselves what the slope of a tange…