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

Marginal and conditional distributions | Analyzing categorical data | AP Statistics | Khan Academy


3m read
·Nov 11, 2024

Let's say that we are trying to understand a relationship in a classroom of 200 students between the amount of time studied and the percent correct. So, what we could do is we could set up some buckets of time studied and some buckets of percent correct. Then, we could survey the students and/or look at the data from the scores on the test. Afterward, we can place students in these buckets.

What you see right over here is a two-way table, and you can also view this as a joint distribution along these two dimensions. One way to read this is that 20 out of the 200 total students got between 60 and 79 percent on the test and studied between 21 and 40 minutes.

So, there's all sorts of interesting things that we could try to glean from this. But what we're going to focus on in this video is two more types of distributions other than the joint distribution that we see in this data. One type is a marginal distribution. A marginal distribution is just focusing on one of these dimensions. One way to think about it is you can determine it by looking at the margin.

For example, if you wanted to figure out the marginal distribution of the percent correct, what you could do is look at the total of these rows. The counts right over here give you the marginal distribution of the percent correct.

40 out of the 200 got between 80 and 100, and 60 out of the 200 got between 60 and 79, so on and so forth. Now, a marginal distribution could be represented as counts or as percentages. If represented as percentages, you would divide each of these counts by the total, which is 200.

So, 40 over 200, that would be 20 percent. 60 out of 200, that would be 30 percent. 70 out of 200, that would be 35 percent. 20 out of 200 is 10, and 10 out of 200 is 5. So, this right over here, in terms of percentages, gives you the marginal distribution of the percent correct based on these buckets.

You could say 10 percent got between a 20 and a 39. Now, you could also think about marginal distributions the other way. You could think about the marginal distribution for the time studied in the class. Then, you would look at these counts right over here. You'd say a total of 14 students studied between 0 and 20 minutes.

You're not thinking about the percent correct anymore. A total of 30 studied between 21 and 40 minutes. Likewise, you could write these as percentages. This would be 7, this would be 15, this would be 43 percent, and this would be 35 right over there.

Now, another idea that you might sometimes see when people are trying to interpret a joint distribution like this or get more information or more realizations from it is to think about something known as a conditional distribution. A conditional distribution is the distribution of one variable given something true about the other variable.

For example, an example of a conditional distribution would be the distribution of percent correct given that students study between, let's say, 41 and 60 minutes. To think about that, you would first look at your condition. Okay, let's look at the students who've studied between 41 and 60 minutes. That would be this column right over here.

Then, that column, the information in it can give you your conditional distribution. An important thing to realize is a marginal distribution can be represented as counts for the various buckets or percentages, while the standard practice for a conditional distribution is to think in terms of percentages.

So, the conditional distribution of the percent correct given that students study between 41 and 60 minutes would look something like this. Let me get a little bit more space. If we set up the various categories: 80 to 100, 60 to 79, 40 to 59, continued over here, 20 to 39, and 0 to 19. What we'd want to do is calculate the percentage that fall into each of these buckets given that we're studying between 41 and 60 minutes.

So, this first one, 80 to 100, it would be 16 out of the 86 students. We would write 16 out of 86, which is equal to 16 divided by 86. I'll just round to one decimal place; it's roughly 18.6 percent.

18.6 approximately equal to 18.6. Then, to get the full conditional distribution, we would keep doing that. We would figure out the percentage for 60 to 79, which would be 30 out of 86, whatever percentage that is, and so on and so forth in order to get that entire distribution.

More Articles

View All
15 Ways Technology Is Going to Disrupt the Financial Industry
Disruption is great. The drastic changes are scary, sure. But when you’re prepared for them, then you can ride that wave all the way to the top. The world of banking and finance is shifting into a totally new dimension, and knowledge gets you ahead of eve…
Caffeine 101 | National Geographic
(light liquid pouring) (gentle sipping) [Narrator] For morning coffee to afternoon tea, caffeine is so thoroughly entrenched in our daily routines and has become the world’s most widely used psychoactive substance. Caffeine is a chemical compound that st…
Learn to Sell, Learn to Build
Talking about combining skills, you said that you should learn to sell, learn to build. If you can do both, you will be unstoppable. You know, this is a very broad category now, but it’s two broad categories. One is building the product, which is hard, a…
Multiplying fractions by whole numbers word problem | Math | 4th grade | Khan Academy
Rishi spent 34s of an hour for 2 days working on his science project. Kyle spent 1⁄4 of an hour for six days working on his science project. Who spent more time on his science project? So we want to know who spent more time. To do that, we need to first …
Graphs of rational functions: zeros | High School Math | Khan Academy
So we’re told let ( F(x) = \frac{2x^2 - 18}{G(x)} ), where ( G(x) ) is a polynomial. Then they tell us which of the following is a possible graph of ( y = F(x) ). They give us four choices here, and like always, I encourage you to pause the video and see …
Dangerous Economic Policies: This Will Destroy the American Dream!
Don’t mess with the American Dream. There’s a reason people go through barbwire to try and get in here. We don’t want to set a policy up where they’re trying to get out of America. Let’s go ahead and bring in Kevin O. He’s the chairman of O Ventures and …