YouTube2Text

An Introduction to Inference for a Proportion — Transcript

by jbstatistics · 1,600 words · 250 segments · language en · Watch on YouTube

Full transcript

  1. 0:02Let's look at an introduction to
  2. 0:03inference for one proportion. This video
  3. 0:06provides an introduction to the methods
  4. 0:07and I work through an example in another
  5. 0:11video. Here's an example of a question
  6. 0:13these methods might help us answer. What
  7. 0:16proportion of American adults approve of
  8. 0:18the way the president is handling his
  9. 0:20job? Here the parameter P is the
  10. 0:22proportion of all American adults that
  11. 0:24approve. And this is the value that we
  12. 0:26would like to know. But we won't be able
  13. 0:28to talk to all Americans. So in
  14. 0:30practice, it is impossible to know this
  15. 0:32quantity. So we talk to a sample of
  16. 0:34American adults. The statistic P hat is
  17. 0:37the proportion of the sample of American
  18. 0:40adults that
  19. 0:42approve. Here is a similar but slightly
  20. 0:45different situation. Here we are
  21. 0:47interested in the probability of
  22. 0:49developing a surgical sight infection
  23. 0:51after a certain type of surgery. Here we
  24. 0:54might view P as the theoretical
  25. 0:56probability of developing a surgical
  26. 0:57sight infection. Or we might think of it
  27. 1:00as the proportion of a theoretically
  28. 1:02infinite population that would develop a
  29. 1:04surgical sight infection after this type
  30. 1:06of
  31. 1:06surgery. And again, we're not going to
  32. 1:09know the true value of P, but we might
  33. 1:11estimate it using sample
  34. 1:13data. Suppose that in a random sample of
  35. 1:16400 patients who have had this surgery,
  36. 1:1812 develop a surgical sight
  37. 1:21infection. Here P hat the sample
  38. 1:24proportion is 12 over 400 or
  39. 1:29003. P hat the sample proportion is a
  40. 1:32point estimator of P the population
  41. 1:35proportion. When we draw our sample P
  42. 1:38hat will take on a value. In the last
  43. 1:40example P hat was
  44. 1:42003. But as is usually the case in
  45. 1:44statistics just giving a point estimate
  46. 1:46is not good enough. We want to use the
  47. 1:49data to say as much as we can about the
  48. 1:51parameter
  49. 1:54P. Here are two very common points of
  50. 1:57interest. We very often want to
  51. 1:59construct a confidence interval for the
  52. 2:00parameter P. And depending on the
  53. 2:03situation, we may have a hypothesized
  54. 2:06value of the parameter P that we wish to
  55. 2:08test. To construct the appropriate
  56. 2:10inference procedures for P, we need to
  57. 2:12know the characteristics of the sampling
  58. 2:14distribution of the sample proportion P
  59. 2:16hat.
  60. 2:20I look at the following characteristics
  61. 2:22in greater detail in my video on the
  62. 2:23sampling distribution of the sample
  63. 2:25proportion. But here is a
  64. 2:27summary. The sampling distribution of
  65. 2:29the sample proportion P hat has a mean
  66. 2:31of P. The sample proportion is an
  67. 2:34unbiased estimator of the population
  68. 2:37proportion. The standard deviation of
  69. 2:39the sampling distribution of P hat is
  70. 2:41the square root of P * 1 - P / N. This
  71. 2:45is going to pose a bit of a problem for
  72. 2:47us as the standard deviation of P hat
  73. 2:50depends on the unknown value of P. But
  74. 2:52we will be able to work around
  75. 2:55that and the sampling distribution of P
  76. 2:58hat is approximately normal if the
  77. 3:00sample size is
  78. 3:04large. Here are the assumptions of the
  79. 3:06one sample inference procedures for a
  80. 3:08single proportion. We need a simple
  81. 3:10random sample from the population of
  82. 3:12interest and the sample size must be
  83. 3:15large enough for the normal
  84. 3:16approximation to be
  85. 3:20reasonable. Here's a rough guideline.
  86. 3:22It's reasonable to use confidence
  87. 3:24interval methods based on the normal
  88. 3:26distribution if n * phat is at least 15
  89. 3:29and n * 1 minus phat is at least 15.
  90. 3:34This guideline means we need a very
  91. 3:36large sample size if phat is close to 0
  92. 3:38or 1, but not quite so large if phat is
  93. 3:41close
  94. 3:43to.5. Overall, this ensures the sample
  95. 3:46size is large enough for the normal
  96. 3:48approximation to be
  97. 3:51reasonable. If these conditions are
  98. 3:54satisfied, a 1us alpha * 100% confidence
  99. 3:57interval for the parameter p is given by
  100. 4:00this formula. We take our best estimate
  101. 4:02of P which is P hat and we add and
  102. 4:05subtract this margin of error. The
  103. 4:08margin of error is made up of our usual
  104. 4:10Z subalpha over two value times the
  105. 4:13standard error of our estimator P
  106. 4:17hat. What is the standard error of P
  107. 4:20hat? Recall that the true standard
  108. 4:22deviation of the sampling distribution
  109. 4:24of P hat is the square root of P * 1 - P
  110. 4:28/ N. But we don't know the value of P.
  111. 4:31So we can't use it in a formula. We do
  112. 4:34the next best thing. We estimate P with
  113. 4:37P hat which results in this quantity.
  114. 4:40This is the standard error of P hat
  115. 4:43which is the estimated standard
  116. 4:45deviation of the sampling distribution
  117. 4:47of P hat. And this is what we use in
  118. 4:49this confidence interval
  119. 4:53formula. Now let's look at hypothesis
  120. 4:56testing. Is there strong evidence that
  121. 4:58the population proportion differs from a
  122. 5:00hypothesized value? We may wish to test
  123. 5:03a null hypothesis that the parameter p
  124. 5:06is equal to p not a hypothesized value
  125. 5:08of p. We may wish to test the null
  126. 5:11hypothesis that p equals.5 or.3 or
  127. 5:15whatever is of practical interest to us
  128. 5:17in a given
  129. 5:19situation. The appropriate alternative
  130. 5:22hypothesis will be one of these three
  131. 5:24possibilities. As per usual, the choice
  132. 5:27of alternative depends on the problem at
  133. 5:31hand. Here's a rough guideline. It's
  134. 5:34reasonable to use hypothesis testing
  135. 5:36methods based on the normal distribution
  136. 5:38if n * p is at least 15 and n * 1 - p is
  137. 5:44at least 15. This ensures the sample
  138. 5:47size is large enough for the normal
  139. 5:48approximation to be reasonable.
  140. 5:53To test this null hypothesis, we will
  141. 5:55use this zed statistic, which is similar
  142. 5:57in spirit to zed statistics we've seen
  143. 6:00before. The zed statistic is the sample
  144. 6:03proportion minus the hypothesized value
  145. 6:06divided by the standard error of p
  146. 6:09hat. I have a zero in the subscript here
  147. 6:13because this standard error is a little
  148. 6:15different from the one we used in
  149. 6:16confidence intervals.
  150. 6:18Recall the true standard deviation of
  151. 6:20the sampling distribution of P hat is
  152. 6:22this quantity. But we don't know P. So
  153. 6:25we can't use it in this formula. In
  154. 6:28confidence intervals, we replaced P with
  155. 6:30P hat, which was pretty reasonable and
  156. 6:32wouldn't be a silly thing to do here.
  157. 6:34But we do something a little bit
  158. 6:36different. We put the hypothesized value
  159. 6:39P in the
  160. 6:41formula. This is because of our
  161. 6:43philosophy of hypothesis testing. We
  162. 6:45construct a test statistic that has a
  163. 6:47known distribution assuming the null
  164. 6:49hypothesis is true. Here if the null
  165. 6:52hypothesis is true, P equals P. And so
  166. 6:55that's the value we should use in our
  167. 6:57standard error formula. So this is our
  168. 6:59standard error in hypothesis testing
  169. 7:03scenarios. If the null hypothesis is
  170. 7:06true and P equals P, then this Z test
  171. 7:09statistic will have approximately the
  172. 7:11standard normal distribution. So we will
  173. 7:14get the p value from the standard normal
  174. 7:16distribution and reach our conclusion in
  175. 7:18the usual
  176. 7:21ways. Here I've drawn in the standard
  177. 7:23normal distribution which is the
  178. 7:25distribution of the test statistic if
  179. 7:27the null hypothesis is true. And suppose
  180. 7:30we are testing the null hypothesis
  181. 7:32against this alternative that p is less
  182. 7:34than p. Suppose we draw the sample and
  183. 7:38end up with a zed test statistic of
  184. 7:40minus1.2.
  185. 7:42That's right about here on this
  186. 7:44curve. The p value is the probability
  187. 7:46under the null hypothesis of getting
  188. 7:49this zed value or something with even
  189. 7:50greater evidence against the null
  190. 7:53hypothesis. In other words, it is the
  191. 7:55area to the left of the observed value
  192. 7:57of the test statistic minus 1.20 under
  193. 8:00the standard normal curve.
  194. 8:06If we change the alternative hypothesis
  195. 8:08to P is greater than the hypothesized
  196. 8:11value, then the required area for the p
  197. 8:13value will
  198. 8:14change. Suppose in this situation we
  199. 8:17again obtain a test statistic value of
  200. 8:19minus
  201. 8:191.20 which is right here on this
  202. 8:22curve. The p value is the probability
  203. 8:25under the null hypothesis of getting
  204. 8:27this value or something even greater. In
  205. 8:30other words, the area to the right of
  206. 8:33-1.2. 20 under the standard normal
  207. 8:38curve. And what if we have a two-sided
  208. 8:41alternative
  209. 8:42hypothesis? Suppose again we draw a
  210. 8:44sample and the Z test statistic equals
  211. 8:47-1.2 which is right here. The p value is
  212. 8:51the probability under the null
  213. 8:53hypothesis of getting this value or
  214. 8:55something even more
  215. 8:57extreme. Part of that is this area to
  216. 9:00the left of minus1.20.
  217. 9:02But we would have thought at exactly the
  218. 9:04same amount of evidence against the null
  219. 9:06hypothesis had we gotten a zed value of
  220. 9:08positive
  221. 9:101.20. So the p value is the sum of these
  222. 9:13two
  223. 9:14areas. Another way to think of it is
  224. 9:17that the p value is double the area in
  225. 9:19the tail beyond the observed value of
  226. 9:21the test statistic. Here the p value is
  227. 9:24double the area to the left of minus
  228. 9:261.20.
  229. 9:32Once we get the p value, we draw our
  230. 9:34conclusions in the usual ways. A very
  231. 9:37small p value would give very strong
  232. 9:39evidence against the null hypothesis and
  233. 9:41in favor of the alternative
  234. 9:43hypothesis. And if we are carrying out a
  235. 9:46test with a set significance level
  236. 9:48alpha, we reject the null hypothesis in
  237. 9:51favor of the alternative hypothesis if
  238. 9:53the p value is less than or equal to
  239. 9:55alpha.
  240. 9:59There are other options available when
  241. 10:01we are conducting statistical inference
  242. 10:02on a single proportion including
  243. 10:05adjustments that improve the normal
  244. 10:07approximation and exact methods that are
  245. 10:09based on the binomial distribution or
  246. 10:11possibly the hypergeometric distribution
  247. 10:14depending on the specifics of the
  248. 10:16situation. I work through an example of
  249. 10:18inference for a single proportion in
  250. 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.