Hypothesis Testing With Two Proportions — Transcript
Full transcript
- 0:01in this video we're going to focus on
- 0:02hypothesis testing
- 0:05with two proportions
- 0:08so let's work on this example problem
- 0:10number one
- 0:11company xyz
- 0:13manufactures laptops
- 0:16for quality control two sets of laptops
- 0:19were tested
- 0:20in the first group
- 0:2232 out of 800
- 0:25were found to contain some sort of
- 0:26defect
- 0:28in the second group
- 0:2930 out of 500 were found to have a
- 0:31defect
- 0:33is the difference between the two groups
- 0:35significant
- 0:36what would you say
- 0:38well let's find out we're going to use a
- 0:40significance level of
- 0:420.05 so let's write down what we know
- 0:46the sample size for the first group is
- 0:49eight hundred
- 0:50and the sample size for the second group
- 0:53is five hundred
- 0:56now we need to calculate the sample
- 0:57proportion
- 0:58for each group
- 1:01so for the first group the sample
- 1:02proportion
- 1:03also known as p hat
- 1:06this is going to be
- 1:07x1 over n1
- 1:10so we have 32 successes
- 1:12in this case defects
- 1:15over
- 1:16a sample size of 800.
- 1:18so 32 divided by 800
- 1:22that's going to give us
- 1:25a proportion of 0.04
- 1:27now let's do the same thing for the
- 1:29second group
- 1:31so the sample proportion is going to be
- 1:33x2 over n2
- 1:35so we had 30 defects
- 1:38out of a sample size of 500
- 1:4230 divided by 500 is .06
- 1:46so i'm going to rewrite this here
- 1:56so now what do you think our next step
- 1:59is in this problem what should we do
- 2:01next
- 2:02now we do need to write the null
- 2:03hypothesis
- 2:05and
- 2:06the alternative hypothesis we should
- 2:07have done that in the beginning but
- 2:09let's go ahead and do that now
- 2:13now think about why
- 2:15this test
- 2:16is being done
- 2:18we want to find out the difference
- 2:19between the two groups if the difference
- 2:21is significant
- 2:23so we believe
- 2:25that
- 2:26there is a difference
- 2:28that p2 and p1 are not the same
- 2:31that's why we're conducting the tests
- 2:33so therefore
- 2:34for the null hypothesis the status quo
- 2:37must be that they are the same
- 2:39since we're trying to prove it otherwise
- 2:44now our next step
- 2:46is to calculate z
- 2:49before we do that
- 2:51we need to find the critical z values
- 2:56what type of distribution are we dealing
- 2:58with by the way
- 3:00should we use
- 3:01a t distribution or a normal
- 3:03distribution what would you say
- 3:06now because the sample sizes for both
- 3:08groups are very large
- 3:10they're well above 30 we need to use the
- 3:13normal distribution
- 3:16and the fact that i mentioned z values
- 3:19is another indication that we should use
- 3:21the normal distribution
- 3:30now
- 3:31alpha
- 3:32is point zero five
- 3:35so this here is alpha over two
- 3:38so that's an area of point zero two five
- 3:41and the same is true for this side
- 3:43that's point zero two five
- 3:451 minus alpha or 1 minus 0.05
- 3:50gives us the area
- 3:51in the middle which is 0.95
- 3:54now for those of you who might be
- 3:55wondering
- 3:56the significance level is
- 3:58alpha so if alpha is point zero five
- 4:03alpha over two
- 4:04is point zero two five
- 4:07just for you know those of you who are
- 4:08wondering hey how how did you get that
- 4:10number
- 4:12so now you know
- 4:14now the next thing we need to do is
- 4:17we need to calculate the cumulative area
- 4:19up to this point from the left
- 4:23so that's going to be the sum of these
- 4:25two numbers
- 4:27so 0.025 plus 0.95
- 4:30gives us a cumulative area of 0.975
- 4:34so what we're going to do now is we're
- 4:36going to use this value and we're going
- 4:38to
- 4:39find
- 4:40the critical
- 4:41z values
- 4:42from the positive z table or the
- 4:44positive z-score table so let's go ahead
- 4:47and do that now
- 4:48so here is the positive z-score table
- 4:52and as you can see
- 4:54it correlates to the cumulative area
- 4:57from the left up to z
- 5:00so we need to look for
- 5:01a cumulative area of 0.975
- 5:04and here it is right here so we got to
- 5:06find the z-score that corresponds to
- 5:09that area
- 5:10so looking at the row we have a row of
- 5:131.9
- 5:14and the column point zero six so add in
- 5:16those two numbers point zero six plus
- 5:19one point nine
- 5:20gives us
- 5:21a corresponding z value of 1.96
- 5:25so now let's write those z values here
- 5:31so these are critical z values because
- 5:34they separate the rejection region which
- 5:36is shaded in blue
- 5:38from the fail to reject region
- 5:40which is not shaded
- 5:42so now what we need to do is
- 5:44we need to get our calculated z values
- 5:46and compare it to our critical z values
- 5:50so here's the formula that we're going
- 5:52to use so the calculated z value when
- 5:55dealing with a difference of two
- 5:56proportions
- 5:58is going to be
- 6:00p hat one
- 6:01minus p hat two
- 6:03those are the sample proportions that we
- 6:05have here
- 6:06and this is minus
- 6:08p1 minus p2
- 6:10that is
- 6:11the population proportion
- 6:14divided by
- 6:15the square root
- 6:17of
- 6:18p hat that's the uh that's the pool
- 6:22proportion which we'll talk about how to
- 6:24get that
- 6:25and then times one minus p hat
- 6:29times one over n plus one
- 6:32plus 1 over n plus 2.
- 6:36now
- 6:37notice that
- 6:38based on the null hypothesis p1 is equal
- 6:40to p2 so if we move p2 to the left
- 6:45we'll get this expression p1 minus p2 is
- 6:48a zero
- 6:49so this part here we can replace that
- 6:52with a zero
- 6:55now what we need to find before we can
- 6:57use this formula
- 6:58is we need to calculate the pooled
- 7:01proportion
- 7:02and so here's the formula that will help
- 7:04you to do that i'm gonna
- 7:06put it here
- 7:07it's
- 7:08x1 plus x2 divided by
- 7:12n1 plus n2
- 7:14so x1 in this problem
- 7:18that is 32
- 7:22and x2 in this problem is 30.
- 7:26n1 is 800
- 7:29and 2
- 7:30is
- 7:31500
- 7:32so 32 plus 30
- 7:35gives us 62
- 7:37800 plus 500
- 7:39that's 1300
- 7:42so 62 divided by 1300
- 7:45is
- 7:470.04769
- 7:52so now we have our pooled proportion
- 7:55so we have everything that we need to
- 7:57plug in to that formula
- 8:06so zc is going to be
- 8:08p1 hat which is .04
- 8:13minus
- 8:15p2 hat that's 0.06
- 8:19and as we said before p1 minus p2
- 8:22is equal to
- 8:24zero this is going to be divided by
- 8:28the square root
- 8:30of
- 8:31the pooled proportion which is
- 8:330.04769
- 8:37and then we're going to multiply that by
- 8:391 minus
- 8:40p hat or 0.04769
- 8:45and then this is going to be times 1
- 8:47over n1 n1 is
- 8:50800
- 8:53and then plus 1 over n2 where
- 8:56n2 is 500
- 9:01so 0.04
- 9:03minus 0.06
- 9:06that's negative point zero two
- 9:11now for the other part in the bottom i'm
- 9:13just gonna plug all of that in
- 9:16so hold on one second
- 9:20it's going to take me some time to
- 9:23put this into the calculator
- 9:28so for the part on the bottom i got
- 9:30.012149
- 9:33so dividing these two numbers
- 9:36will give us
- 9:38our calculated z value
- 9:43which is approximately
- 9:47negative 1.64
- 9:51so negative 1.646
- 9:54lies somewhere here between 0 and
- 9:57negative 1.96
- 9:59so notice that
- 10:01it doesn't fall in the rejection region
- 10:03it falls in
- 10:04the fail to reject region which we can
- 10:07call
- 10:07ftr
- 10:11so therefore
- 10:12we can't reject the null hypothesis
- 10:16so we can throw out the alternative
- 10:18hypothesis
- 10:19which implies that
- 10:20the null hypothesis is true
- 10:23so
- 10:24we can say
- 10:26there is not a significant difference
- 10:29between
- 10:30the proportions of the two groups
- 10:32these two numbers are close enough
About this transcript
This page contains the full transcript of Hypothesis Testing With Two Proportions by The Organic Chemistry Tutor, generated from the public captions YouTube serves with the video. The transcript has 1,245 words across 262 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.