An Introduction to Inference for a Proportion — Transcript
Full transcript
- 0:02Let's look at an introduction to
- 0:03inference for one proportion. This video
- 0:06provides an introduction to the methods
- 0:07and I work through an example in another
- 0:11video. Here's an example of a question
- 0:13these methods might help us answer. What
- 0:16proportion of American adults approve of
- 0:18the way the president is handling his
- 0:20job? Here the parameter P is the
- 0:22proportion of all American adults that
- 0:24approve. And this is the value that we
- 0:26would like to know. But we won't be able
- 0:28to talk to all Americans. So in
- 0:30practice, it is impossible to know this
- 0:32quantity. So we talk to a sample of
- 0:34American adults. The statistic P hat is
- 0:37the proportion of the sample of American
- 0:40adults that
- 0:42approve. Here is a similar but slightly
- 0:45different situation. Here we are
- 0:47interested in the probability of
- 0:49developing a surgical sight infection
- 0:51after a certain type of surgery. Here we
- 0:54might view P as the theoretical
- 0:56probability of developing a surgical
- 0:57sight infection. Or we might think of it
- 1:00as the proportion of a theoretically
- 1:02infinite population that would develop a
- 1:04surgical sight infection after this type
- 1:06of
- 1:06surgery. And again, we're not going to
- 1:09know the true value of P, but we might
- 1:11estimate it using sample
- 1:13data. Suppose that in a random sample of
- 1:16400 patients who have had this surgery,
- 1:1812 develop a surgical sight
- 1:21infection. Here P hat the sample
- 1:24proportion is 12 over 400 or
- 1:29003. P hat the sample proportion is a
- 1:32point estimator of P the population
- 1:35proportion. When we draw our sample P
- 1:38hat will take on a value. In the last
- 1:40example P hat was
- 1:42003. But as is usually the case in
- 1:44statistics just giving a point estimate
- 1:46is not good enough. We want to use the
- 1:49data to say as much as we can about the
- 1:51parameter
- 1:54P. Here are two very common points of
- 1:57interest. We very often want to
- 1:59construct a confidence interval for the
- 2:00parameter P. And depending on the
- 2:03situation, we may have a hypothesized
- 2:06value of the parameter P that we wish to
- 2:08test. To construct the appropriate
- 2:10inference procedures for P, we need to
- 2:12know the characteristics of the sampling
- 2:14distribution of the sample proportion P
- 2:16hat.
- 2:20I look at the following characteristics
- 2:22in greater detail in my video on the
- 2:23sampling distribution of the sample
- 2:25proportion. But here is a
- 2:27summary. The sampling distribution of
- 2:29the sample proportion P hat has a mean
- 2:31of P. The sample proportion is an
- 2:34unbiased estimator of the population
- 2:37proportion. The standard deviation of
- 2:39the sampling distribution of P hat is
- 2:41the square root of P * 1 - P / N. This
- 2:45is going to pose a bit of a problem for
- 2:47us as the standard deviation of P hat
- 2:50depends on the unknown value of P. But
- 2:52we will be able to work around
- 2:55that and the sampling distribution of P
- 2:58hat is approximately normal if the
- 3:00sample size is
- 3:04large. Here are the assumptions of the
- 3:06one sample inference procedures for a
- 3:08single proportion. We need a simple
- 3:10random sample from the population of
- 3:12interest and the sample size must be
- 3:15large enough for the normal
- 3:16approximation to be
- 3:20reasonable. Here's a rough guideline.
- 3:22It's reasonable to use confidence
- 3:24interval methods based on the normal
- 3:26distribution if n * phat is at least 15
- 3:29and n * 1 minus phat is at least 15.
- 3:34This guideline means we need a very
- 3:36large sample size if phat is close to 0
- 3:38or 1, but not quite so large if phat is
- 3:41close
- 3:43to.5. Overall, this ensures the sample
- 3:46size is large enough for the normal
- 3:48approximation to be
- 3:51reasonable. If these conditions are
- 3:54satisfied, a 1us alpha * 100% confidence
- 3:57interval for the parameter p is given by
- 4:00this formula. We take our best estimate
- 4:02of P which is P hat and we add and
- 4:05subtract this margin of error. The
- 4:08margin of error is made up of our usual
- 4:10Z subalpha over two value times the
- 4:13standard error of our estimator P
- 4:17hat. What is the standard error of P
- 4:20hat? Recall that the true standard
- 4:22deviation of the sampling distribution
- 4:24of P hat is the square root of P * 1 - P
- 4:28/ N. But we don't know the value of P.
- 4:31So we can't use it in a formula. We do
- 4:34the next best thing. We estimate P with
- 4:37P hat which results in this quantity.
- 4:40This is the standard error of P hat
- 4:43which is the estimated standard
- 4:45deviation of the sampling distribution
- 4:47of P hat. And this is what we use in
- 4:49this confidence interval
- 4:53formula. Now let's look at hypothesis
- 4:56testing. Is there strong evidence that
- 4:58the population proportion differs from a
- 5:00hypothesized value? We may wish to test
- 5:03a null hypothesis that the parameter p
- 5:06is equal to p not a hypothesized value
- 5:08of p. We may wish to test the null
- 5:11hypothesis that p equals.5 or.3 or
- 5:15whatever is of practical interest to us
- 5:17in a given
- 5:19situation. The appropriate alternative
- 5:22hypothesis will be one of these three
- 5:24possibilities. As per usual, the choice
- 5:27of alternative depends on the problem at
- 5:31hand. Here's a rough guideline. It's
- 5:34reasonable to use hypothesis testing
- 5:36methods based on the normal distribution
- 5:38if n * p is at least 15 and n * 1 - p is
- 5:44at least 15. This ensures the sample
- 5:47size is large enough for the normal
- 5:48approximation to be reasonable.
- 5:53To test this null hypothesis, we will
- 5:55use this zed statistic, which is similar
- 5:57in spirit to zed statistics we've seen
- 6:00before. The zed statistic is the sample
- 6:03proportion minus the hypothesized value
- 6:06divided by the standard error of p
- 6:09hat. I have a zero in the subscript here
- 6:13because this standard error is a little
- 6:15different from the one we used in
- 6:16confidence intervals.
- 6:18Recall the true standard deviation of
- 6:20the sampling distribution of P hat is
- 6:22this quantity. But we don't know P. So
- 6:25we can't use it in this formula. In
- 6:28confidence intervals, we replaced P with
- 6:30P hat, which was pretty reasonable and
- 6:32wouldn't be a silly thing to do here.
- 6:34But we do something a little bit
- 6:36different. We put the hypothesized value
- 6:39P in the
- 6:41formula. This is because of our
- 6:43philosophy of hypothesis testing. We
- 6:45construct a test statistic that has a
- 6:47known distribution assuming the null
- 6:49hypothesis is true. Here if the null
- 6:52hypothesis is true, P equals P. And so
- 6:55that's the value we should use in our
- 6:57standard error formula. So this is our
- 6:59standard error in hypothesis testing
- 7:03scenarios. If the null hypothesis is
- 7:06true and P equals P, then this Z test
- 7:09statistic will have approximately the
- 7:11standard normal distribution. So we will
- 7:14get the p value from the standard normal
- 7:16distribution and reach our conclusion in
- 7:18the usual
- 7:21ways. Here I've drawn in the standard
- 7:23normal distribution which is the
- 7:25distribution of the test statistic if
- 7:27the null hypothesis is true. And suppose
- 7:30we are testing the null hypothesis
- 7:32against this alternative that p is less
- 7:34than p. Suppose we draw the sample and
- 7:38end up with a zed test statistic of
- 7:40minus1.2.
- 7:42That's right about here on this
- 7:44curve. The p value is the probability
- 7:46under the null hypothesis of getting
- 7:49this zed value or something with even
- 7:50greater evidence against the null
- 7:53hypothesis. In other words, it is the
- 7:55area to the left of the observed value
- 7:57of the test statistic minus 1.20 under
- 8:00the standard normal curve.
- 8:06If we change the alternative hypothesis
- 8:08to P is greater than the hypothesized
- 8:11value, then the required area for the p
- 8:13value will
- 8:14change. Suppose in this situation we
- 8:17again obtain a test statistic value of
- 8:19minus
- 8:191.20 which is right here on this
- 8:22curve. The p value is the probability
- 8:25under the null hypothesis of getting
- 8:27this value or something even greater. In
- 8:30other words, the area to the right of
- 8:33-1.2. 20 under the standard normal
- 8:38curve. And what if we have a two-sided
- 8:41alternative
- 8:42hypothesis? Suppose again we draw a
- 8:44sample and the Z test statistic equals
- 8:47-1.2 which is right here. The p value is
- 8:51the probability under the null
- 8:53hypothesis of getting this value or
- 8:55something even more
- 8:57extreme. Part of that is this area to
- 9:00the left of minus1.20.
- 9:02But we would have thought at exactly the
- 9:04same amount of evidence against the null
- 9:06hypothesis had we gotten a zed value of
- 9:08positive
- 9:101.20. So the p value is the sum of these
- 9:13two
- 9:14areas. Another way to think of it is
- 9:17that the p value is double the area in
- 9:19the tail beyond the observed value of
- 9:21the test statistic. Here the p value is
- 9:24double the area to the left of minus
- 9:261.20.
- 9:32Once we get the p value, we draw our
- 9:34conclusions in the usual ways. A very
- 9:37small p value would give very strong
- 9:39evidence against the null hypothesis and
- 9:41in favor of the alternative
- 9:43hypothesis. And if we are carrying out a
- 9:46test with a set significance level
- 9:48alpha, we reject the null hypothesis in
- 9:51favor of the alternative hypothesis if
- 9:53the p value is less than or equal to
- 9:55alpha.
- 9:59There are other options available when
- 10:01we are conducting statistical inference
- 10:02on a single proportion including
- 10:05adjustments that improve the normal
- 10:07approximation and exact methods that are
- 10:09based on the binomial distribution or
- 10:11possibly the hypergeometric distribution
- 10:14depending on the specifics of the
- 10:16situation. I work through an example of
- 10:18inference for a single proportion in
- 10:20another video.
About this transcript
This page contains the full transcript of An Introduction to Inference for a Proportion by jbstatistics, generated from the public captions YouTube serves with the video. The transcript has 1,600 words across 250 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.