YouTube2Text

Hypothesis Testing With Two Proportions — Transcript

by The Organic Chemistry Tutor · 1,245 words · 262 segments · language en · Watch on YouTube

Full transcript

  1. 0:01in this video we're going to focus on
  2. 0:02hypothesis testing
  3. 0:05with two proportions
  4. 0:08so let's work on this example problem
  5. 0:10number one
  6. 0:11company xyz
  7. 0:13manufactures laptops
  8. 0:16for quality control two sets of laptops
  9. 0:19were tested
  10. 0:20in the first group
  11. 0:2232 out of 800
  12. 0:25were found to contain some sort of
  13. 0:26defect
  14. 0:28in the second group
  15. 0:2930 out of 500 were found to have a
  16. 0:31defect
  17. 0:33is the difference between the two groups
  18. 0:35significant
  19. 0:36what would you say
  20. 0:38well let's find out we're going to use a
  21. 0:40significance level of
  22. 0:420.05 so let's write down what we know
  23. 0:46the sample size for the first group is
  24. 0:49eight hundred
  25. 0:50and the sample size for the second group
  26. 0:53is five hundred
  27. 0:56now we need to calculate the sample
  28. 0:57proportion
  29. 0:58for each group
  30. 1:01so for the first group the sample
  31. 1:02proportion
  32. 1:03also known as p hat
  33. 1:06this is going to be
  34. 1:07x1 over n1
  35. 1:10so we have 32 successes
  36. 1:12in this case defects
  37. 1:15over
  38. 1:16a sample size of 800.
  39. 1:18so 32 divided by 800
  40. 1:22that's going to give us
  41. 1:25a proportion of 0.04
  42. 1:27now let's do the same thing for the
  43. 1:29second group
  44. 1:31so the sample proportion is going to be
  45. 1:33x2 over n2
  46. 1:35so we had 30 defects
  47. 1:38out of a sample size of 500
  48. 1:4230 divided by 500 is .06
  49. 1:46so i'm going to rewrite this here
  50. 1:56so now what do you think our next step
  51. 1:59is in this problem what should we do
  52. 2:01next
  53. 2:02now we do need to write the null
  54. 2:03hypothesis
  55. 2:05and
  56. 2:06the alternative hypothesis we should
  57. 2:07have done that in the beginning but
  58. 2:09let's go ahead and do that now
  59. 2:13now think about why
  60. 2:15this test
  61. 2:16is being done
  62. 2:18we want to find out the difference
  63. 2:19between the two groups if the difference
  64. 2:21is significant
  65. 2:23so we believe
  66. 2:25that
  67. 2:26there is a difference
  68. 2:28that p2 and p1 are not the same
  69. 2:31that's why we're conducting the tests
  70. 2:33so therefore
  71. 2:34for the null hypothesis the status quo
  72. 2:37must be that they are the same
  73. 2:39since we're trying to prove it otherwise
  74. 2:44now our next step
  75. 2:46is to calculate z
  76. 2:49before we do that
  77. 2:51we need to find the critical z values
  78. 2:56what type of distribution are we dealing
  79. 2:58with by the way
  80. 3:00should we use
  81. 3:01a t distribution or a normal
  82. 3:03distribution what would you say
  83. 3:06now because the sample sizes for both
  84. 3:08groups are very large
  85. 3:10they're well above 30 we need to use the
  86. 3:13normal distribution
  87. 3:16and the fact that i mentioned z values
  88. 3:19is another indication that we should use
  89. 3:21the normal distribution
  90. 3:30now
  91. 3:31alpha
  92. 3:32is point zero five
  93. 3:35so this here is alpha over two
  94. 3:38so that's an area of point zero two five
  95. 3:41and the same is true for this side
  96. 3:43that's point zero two five
  97. 3:451 minus alpha or 1 minus 0.05
  98. 3:50gives us the area
  99. 3:51in the middle which is 0.95
  100. 3:54now for those of you who might be
  101. 3:55wondering
  102. 3:56the significance level is
  103. 3:58alpha so if alpha is point zero five
  104. 4:03alpha over two
  105. 4:04is point zero two five
  106. 4:07just for you know those of you who are
  107. 4:08wondering hey how how did you get that
  108. 4:10number
  109. 4:12so now you know
  110. 4:14now the next thing we need to do is
  111. 4:17we need to calculate the cumulative area
  112. 4:19up to this point from the left
  113. 4:23so that's going to be the sum of these
  114. 4:25two numbers
  115. 4:27so 0.025 plus 0.95
  116. 4:30gives us a cumulative area of 0.975
  117. 4:34so what we're going to do now is we're
  118. 4:36going to use this value and we're going
  119. 4:38to
  120. 4:39find
  121. 4:40the critical
  122. 4:41z values
  123. 4:42from the positive z table or the
  124. 4:44positive z-score table so let's go ahead
  125. 4:47and do that now
  126. 4:48so here is the positive z-score table
  127. 4:52and as you can see
  128. 4:54it correlates to the cumulative area
  129. 4:57from the left up to z
  130. 5:00so we need to look for
  131. 5:01a cumulative area of 0.975
  132. 5:04and here it is right here so we got to
  133. 5:06find the z-score that corresponds to
  134. 5:09that area
  135. 5:10so looking at the row we have a row of
  136. 5:131.9
  137. 5:14and the column point zero six so add in
  138. 5:16those two numbers point zero six plus
  139. 5:19one point nine
  140. 5:20gives us
  141. 5:21a corresponding z value of 1.96
  142. 5:25so now let's write those z values here
  143. 5:31so these are critical z values because
  144. 5:34they separate the rejection region which
  145. 5:36is shaded in blue
  146. 5:38from the fail to reject region
  147. 5:40which is not shaded
  148. 5:42so now what we need to do is
  149. 5:44we need to get our calculated z values
  150. 5:46and compare it to our critical z values
  151. 5:50so here's the formula that we're going
  152. 5:52to use so the calculated z value when
  153. 5:55dealing with a difference of two
  154. 5:56proportions
  155. 5:58is going to be
  156. 6:00p hat one
  157. 6:01minus p hat two
  158. 6:03those are the sample proportions that we
  159. 6:05have here
  160. 6:06and this is minus
  161. 6:08p1 minus p2
  162. 6:10that is
  163. 6:11the population proportion
  164. 6:14divided by
  165. 6:15the square root
  166. 6:17of
  167. 6:18p hat that's the uh that's the pool
  168. 6:22proportion which we'll talk about how to
  169. 6:24get that
  170. 6:25and then times one minus p hat
  171. 6:29times one over n plus one
  172. 6:32plus 1 over n plus 2.
  173. 6:36now
  174. 6:37notice that
  175. 6:38based on the null hypothesis p1 is equal
  176. 6:40to p2 so if we move p2 to the left
  177. 6:45we'll get this expression p1 minus p2 is
  178. 6:48a zero
  179. 6:49so this part here we can replace that
  180. 6:52with a zero
  181. 6:55now what we need to find before we can
  182. 6:57use this formula
  183. 6:58is we need to calculate the pooled
  184. 7:01proportion
  185. 7:02and so here's the formula that will help
  186. 7:04you to do that i'm gonna
  187. 7:06put it here
  188. 7:07it's
  189. 7:08x1 plus x2 divided by
  190. 7:12n1 plus n2
  191. 7:14so x1 in this problem
  192. 7:18that is 32
  193. 7:22and x2 in this problem is 30.
  194. 7:26n1 is 800
  195. 7:29and 2
  196. 7:30is
  197. 7:31500
  198. 7:32so 32 plus 30
  199. 7:35gives us 62
  200. 7:37800 plus 500
  201. 7:39that's 1300
  202. 7:42so 62 divided by 1300
  203. 7:45is
  204. 7:470.04769
  205. 7:52so now we have our pooled proportion
  206. 7:55so we have everything that we need to
  207. 7:57plug in to that formula
  208. 8:06so zc is going to be
  209. 8:08p1 hat which is .04
  210. 8:13minus
  211. 8:15p2 hat that's 0.06
  212. 8:19and as we said before p1 minus p2
  213. 8:22is equal to
  214. 8:24zero this is going to be divided by
  215. 8:28the square root
  216. 8:30of
  217. 8:31the pooled proportion which is
  218. 8:330.04769
  219. 8:37and then we're going to multiply that by
  220. 8:391 minus
  221. 8:40p hat or 0.04769
  222. 8:45and then this is going to be times 1
  223. 8:47over n1 n1 is
  224. 8:50800
  225. 8:53and then plus 1 over n2 where
  226. 8:56n2 is 500
  227. 9:01so 0.04
  228. 9:03minus 0.06
  229. 9:06that's negative point zero two
  230. 9:11now for the other part in the bottom i'm
  231. 9:13just gonna plug all of that in
  232. 9:16so hold on one second
  233. 9:20it's going to take me some time to
  234. 9:23put this into the calculator
  235. 9:28so for the part on the bottom i got
  236. 9:30.012149
  237. 9:33so dividing these two numbers
  238. 9:36will give us
  239. 9:38our calculated z value
  240. 9:43which is approximately
  241. 9:47negative 1.64
  242. 9:51so negative 1.646
  243. 9:54lies somewhere here between 0 and
  244. 9:57negative 1.96
  245. 9:59so notice that
  246. 10:01it doesn't fall in the rejection region
  247. 10:03it falls in
  248. 10:04the fail to reject region which we can
  249. 10:07call
  250. 10:07ftr
  251. 10:11so therefore
  252. 10:12we can't reject the null hypothesis
  253. 10:16so we can throw out the alternative
  254. 10:18hypothesis
  255. 10:19which implies that
  256. 10:20the null hypothesis is true
  257. 10:23so
  258. 10:24we can say
  259. 10:26there is not a significant difference
  260. 10:29between
  261. 10:30the proportions of the two groups
  262. 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.