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

Confidence interval for hypothesis test for difference in proportions | AP Statistics | Khan Academy


4m read
·Nov 11, 2024

A university offers a certain course that students can take in person or in an online setting. Teachers of the course were curious if there was a difference in the passing rate between the two settings. Data from a recent semester showed that 80 percent of students passed the in-person setting and 75 percent of students passed the online setting. They were willing to treat these as representative samples of all students who may take each setting of the course.

The teachers used those results to make a 95% confidence interval to estimate the difference between the proportion of students who pass in each setting of the course. So, this is a 95% confidence interval for the difference between the proportion who passed the in-person course and the online course. The resulting interval was approximately from negative 0.04 to 0.14.

Just to make sure we understand what this is saying, this is saying 95% of the time that you go through this, because we're talking about a 95% confidence interval, 95% of the time you take these samples and then you construct a confidence interval for the difference in proportions, that it will actually contain the true proportion. They want to use this interval to test their null hypothesis that the true proportions are the same versus their alternative hypothesis that their true proportions are different.

Assume that all conditions for inference have been met. Based on the interval, what do we know about the corresponding p-value and conclusion to their test? So pause this video and try to figure out on your own.

All right, so what's interesting here is we're going to use a confidence interval to think about a hypothesis test. Remember, in a hypothesis test, we assume that our null hypothesis is true. We'll assume this, and if there's another way we could write it, we could write it like this: that the difference between the in-person and the online true proportions is equal to zero. These are equivalent statements.

In a hypothesis test, we will assume that this is true, and then in a traditional hypothesis test, we set some significance level. So let's say we set that significance level at five percent, and that is a very typical significance level. If the results that we get, if the probability of the results of getting the results that we do get for the sample, the difference in the sample proportions is less than five percent, we say, “Hey, that's pretty unlikely.” We're going to reject the null hypothesis, which will suggest the alternative.

But here we have something interesting: we have a confidence interval. It turns out that if the sum of your confidence level and your significance level is equal to 100, and you're doing a two-sided hypothesis test—so you're thinking about, well, our alternative hypothesis isn't just that the in-person is greater than the online or that it's less than the online; it's that they are different—so we have a two-sided hypothesis test.

In these situations, you can actually make some inferences about your p-value from your confidence interval. Think about it this way: we are assuming our null hypothesis is true when we do this hypothesis test. So when we construct a 95% confidence interval, we would expect that 95% of confidence intervals would overlap with zero. Where did I get zero from? Remember this is a confidence interval for the difference in proportions, and our null hypothesis is that the true difference in proportions is zero.

So, 95% of the time that we do this, if we assume that the null hypothesis is true, we will overlap with zero. Another way you could think about it is that five percent of confidence intervals would not overlap with zero. So if you are in a situation where you go through this process, you try to construct a 95% confidence interval, and you don't overlap with your assumed difference of the true proportions from your null hypothesis, well, in this situation, your p-value is going to be less than your five percent significance level.

So in this situation, you would reject your null hypothesis, and in this first situation, your p-value is going to be greater than or equal to your alpha level, and you would fail to reject. So what's the situation here? Well, our interval actually does include the assumed difference in true proportions from the null hypothesis. So that means, assuming the null hypothesis, we are in this first scenario.

This is one of the 95% of confidence intervals where we actually did overlap with the true parameter that we are trying to estimate. In that situation, our p-value is going to be greater than or equal to our alpha, which in this case is five percent, and so we fail to reject the null hypothesis. There isn't evidence to suggest that there is a true difference in passing rates between the in-person and the online exam.

More Articles

View All
How to sell private jets to billionaires!
Excuse me, what do you do for a living? I sell jets. No way! Yeah, sure do. That’s my showroom right there. You want to come in and see? Yeah, let’s go! Let’s go. A favorite saying of mine: time is money, buy a jet. Here’s our showroom with a gigantic vi…
In the Studio Pt. 2 ft Zedd | One Strange Rock
They didn’t want me to create a Zedd song. They wanted me to create a piece of music that matches what this is all about. [music playing] My first thoughts when the project came to me was, finally, and excited, because I’ve made classical music in my li…
Sharpening a Knife | Live Free or Die: How to Homestead
One thing that’s really important to me in the kitchen is to have all my knives really sharp. So I want to teach you how to sharpen your own knives in your own kitchen. The first step is to get a sharpening stone. One side with more rough grains, the opp…
Subtracting with place value blocks (regrouping)
What we want to do in this video is figure out what 438 minus 272 is. To help us think about that, we have these place value blocks right over here. You can see 438: we have four hundreds (100, 200, 300, 400), we have three tens (one, two, three), and th…
A Skeptic’s Guide to Loving Bats | Podcast | Overheard at National Geographic
Amy: “Hey, how’s it going?” Jacob: “Uh, it’s going all right. How are you?” Amy: “Uh, you know, hanging in.” Jacob: “Uh, so how’s the history magazine these days?” Amy: “It’s bloody.” Jacob: “Very bloody.” Amy: “Okay, tell me not too much more but a…
15 Signs You Get Played By Others
Do you feel like you’re always the third wheel? The one who is easily taken advantage of, or the one whose opinions don’t matter? Well, in this video, we’ll explore why you always get played and what you can do to change that. From lacking presence and fa…