Confidence Intervals for a Proportion: Determining the Minimum Sample Size — Transcript
Full transcript
- 0:02let's discuss determining the minimum
- 0:03sample size when estimating a
- 0:07proportion suppose we are about to draw
- 0:09a sample and we wish to estimate the
- 0:11population proportion P we may wish to
- 0:14estimate P to within an amount M with
- 0:1695% confidence we may wish to estimate P
- 0:20to within 005 or 02 or within
- 0:24.001 or whatever we feel is appropriate
- 0:27in a given situation
- 0:30and the question here is how large of a
- 0:32sample size is required to achieve this
- 0:35in almost all situations sampling
- 0:37doesn't come without some sort of cost
- 0:40in terms of time money or other
- 0:42resources so we may want to determine
- 0:44the minimum sample size required to
- 0:46achieve our
- 0:50goals wanting to estimate the population
- 0:52proportion P to within M at a certain
- 0:55level of confidence is the same as
- 0:56wanting the margin of error to be no
- 0:58more than m
- 1:00here's the margin of error of a 95%
- 1:03confidence interval for the population
- 1:04proportion p and we'd like this to be no
- 1:07more than m in the general case in
- 1:10situations like this we simply solve for
- 1:13the sample size n but we run into a bit
- 1:16of a problem here as the sample
- 1:18proportion P hat appears in this formula
- 1:20and we haven't drawn the sample yet so
- 1:22we don't know the value of P hat and we
- 1:25can't use it in the
- 1:27formula so here I'm going to replace P
- 1:30hat with P star for the time being P
- 1:34star represents an estimated value of
- 1:36the population proportion P we'll
- 1:38discuss what value to use for p star in
- 1:41a moment or
- 1:43two now we need to isolate the sample
- 1:45size n I'll let you work through the
- 1:48details of the algebra but we'd isolate
- 1:50the sample size n by multiplying both
- 1:53sides by the square root of n dividing
- 1:56both sides by the margin of error M and
- 1:59then squaring both
- 2:04sides we end up with this to estimate P
- 2:07within M with 95% confidence we would
- 2:10need a sample size of at least this many
- 2:13observations to change the confidence
- 2:16level from 95% to something else we
- 2:19change the Zed
- 2:23value in the general case to estimate P
- 2:26to within M with 1 - Alpha * 100%
- 2:30confidence we need a sample size of at
- 2:32least this
- 2:33quantity Z sub Alpha over 2 is the usual
- 2:37Zed value for the given confidence level
- 2:401.96 for a 95% confidence level 1.645
- 2:45for a 90% confidence level
- 2:51Etc what value should we use for
- 2:54pstar there are two main options we may
- 2:57have an estimate of P based on prior
- 2:59information
- 3:00we may have other samples from the
- 3:02population or some past experience that
- 3:04gives us a reasonable ballpark estimate
- 3:06of
- 3:07P but if we don't have a reasonable
- 3:09estimate of P we should use a p star
- 3:11value of
- 3:120.5 this is a conservative or worst case
- 3:16approach and ensures that the sample
- 3:17size is large enough regardless of what
- 3:19the real value of p is the quantity P
- 3:23startimes 1 minus P star is greatest
- 3:25when P star is equal
- 3:27to.5 so the choice of P star of .5
- 3:31results in the largest minimum sample
- 3:33size of any value of P star I'll let you
- 3:36verify that for
- 3:38yourself let's work through a couple of
- 3:43examples suppose we wish to estimate the
- 3:45proportion of adults in Ontario that are
- 3:47in favor of harsher penalties for drug
- 3:50offenses this proportion is the
- 3:52parameter p and we're trying to estimate
- 3:58P how large of a sample size is required
- 4:01if we wish to estimate P to within 03
- 4:04with 95%
- 4:06confidence here's the sample size
- 4:08formula the sample size must be at least
- 4:11this
- 4:12quantity The Zed value corresponding to
- 4:15a 95% confidence level is
- 4:201.96 and we want to estimate P to within
- 4:2303 so m is
- 4:2703 and we square that Quant
- 4:32qu what should we use for p star well we
- 4:35appear to have no estimate of P to use
- 4:37in the formula and if we have no
- 4:39reasonable estimate of P we should use
- 4:42the conservative approach and choose a p
- 4:44star value of5 so * .5 * 1
- 4:51-.5 if we carry out this calculation
- 4:54we'd see that we need a sample size of
- 4:56at least
- 4:581,67 .1
- 5:01individuals but the sample size must be
- 5:03a whole number to find the minimum
- 5:05sample size required we need to round up
- 5:08to the next largest integer
- 5:111068 we would need a sample size of at
- 5:13least 1,68 individuals in order to
- 5:16estimate P the proportion of Ontario
- 5:19adults that are in favor of harsher
- 5:20penalties for drug offenses to
- 5:23within3 with 95%
- 5:27confidence these sample size
- 5:29calculations are often used as a rough
- 5:31approximation to the sample size that is
- 5:34required we don't necessarily run out
- 5:36and get a sample size of exactly 1,68
- 5:40people we often see samples of about
- 5:43this size in political polls political
- 5:45polls are often based on a sample of
- 5:47about 1,000 individuals with a reported
- 5:5095% margin of error of about
- 5:5503 here's another example suppose we
- 5:58wish to estimate the proportion of mice
- 6:00that would be killed by a certain dose
- 6:02of a chemotherapy drug suppose also that
- 6:05previous Studies have shown that
- 6:06approximately 10% of mice are killed by
- 6:09this dose of this
- 6:12drug suppose that we are feeling a
- 6:15little ambitious and we wish to estimate
- 6:17P to within
- 6:18.1 with 99%
- 6:21confidence how large of a sample size is
- 6:25required recall that we suspect from
- 6:27previous studies that P is a prox o
- 6:29imately
- 6:31.1 here's the sample size formula we
- 6:34need a sample size of at least this
- 6:37quantity for a 99% confidence level to
- 6:41three decimal places The Zed value is
- 6:452.5
- 6:4776 we can find that from software or a
- 6:50table if we used software to find that
- 6:53value to more decimal places we'd get a
- 6:55slightly different answer than we're
- 6:57going to get but I'm just going to use
- 6:59three decimal places here there will be
- 7:01a little bit of rounding
- 7:04error we want to estimate P to
- 7:07within1 so m is
- 7:11.1 and we square that
- 7:15quantity what should we use for p star
- 7:18well if we wanted to be conservative we
- 7:20could again use 0.5 but previous Studies
- 7:24have shown that P is approximately 0.1
- 7:27so it's reasonable to use that value in
- 7:30this formula * .1 * 1us
- 7:34.1 one could make an argument that we
- 7:37should still be conservative and use 0.
- 7:39five but if we feel 0.1 is a reasonable
- 7:42estimate of P there's probably no need
- 7:44to be that
- 7:46conservative if we carry out this
- 7:48calculation we'd see that we need a
- 7:50sample size of at least
- 7:5459721
- 7:5619.8 mice
- 7:59if we want the minimum sample size
- 8:01required then we round up to the next
- 8:03largest integer the minimum sample size
- 8:06is
- 8:1159722 so we'd have to conduct an
- 8:13experiment and administer the drug to
- 8:15almost 600,000 mice in order to estimate
- 8:18P to within .1 with 99%
- 8:22confidence that brings up the point that
- 8:24the required sample size may not be
- 8:26reasonable and it certainly isn't
- 8:28reasonable here
- 8:30we're not going to go out and run an
- 8:31experiment with 600,000 mice just to
- 8:34estimate P to within
- 8:360.1 so we may have the desire to
- 8:39estimate P to within .1 with 99%
- 8:42confidence but it's simply not possible
- 8:45from a practical Viewpoint we're going
- 8:47to have to adjust our study plans or
- 8:49even abandon them what we wanted to show
- 8:52we simply cannot
- 8:54show now let's look at a few plots to
- 8:57illustrate the effect of the desired
- 8:59margin of of error and confidence level
- 9:01on the required sample
- 9:05size in this first plot I plotted the
- 9:07minimum required sample size against the
- 9:10desired 95% margin of error I used the P
- 9:14star value of 0.5 so this is an
- 9:16illustration of the values from the
- 9:18first
- 9:19example in the first example we had a
- 9:21desired margin of error of 03 and the
- 9:24minimum sample size required was 1,68
- 9:29we needed to sample at least 1,68 people
- 9:32in order to estimate the population
- 9:34proportion to within
- 9:36003 if we wanted to reduce the margin of
- 9:38error to 01 we'd have to increase the
- 9:41sample size to almost 10,000 people this
- 9:45would cost a lot of money and time so
- 9:47it's usually not worth the
- 9:50effort the P star value of 0.5 was the
- 9:53conservative or worst case approach if
- 9:55we were to use a different value of P
- 9:57star the minimum sample size would be
- 10:00less to illustrate suppose we let P star
- 10:03equal
- 10:053 this dashed curve is the resulting
- 10:07minimum sample size curve we see that we
- 10:10need a little lower sample size if P
- 10:12star differs from
- 10:140.5 the sample size formula contains P
- 10:17star * 1 minus P star so this curve
- 10:21would be the same if P star equals 3 or
- 10:24if P star equals
- 10:277 what happens if we increase the
- 10:29confidence
- 10:31level these two green curves represent
- 10:33the minimum sample size required for a
- 10:3699% margin of error for a given margin
- 10:39of error if we wish to have greater
- 10:41confidence we need a greater sample
- 10:45size if we want to estimate P to within
- 10:4801 with 99% confidence we need a sample
- 10:52size of over 16,000
- 10:55individuals whatever the confidence
- 10:57level the required sample size increases
- 11:00dramatically as the desired margin of
- 11:02error gets closer to zero so in many
- 11:05practical situations it may not be
- 11:07possible to pin down the value of p as
- 11:09precisely as we would
- 11:11like and that's a brief introduction to
- 11:13sample size calculations for estimating
- 11:16a proportion
About this transcript
This page contains the full transcript of Confidence Intervals for a Proportion: Determining the Minimum Sample Size by jbstatistics, generated from the public captions YouTube serves with the video. The transcript has 1,626 words across 252 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 translate the transcript into 100+ languages.
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, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.