YouTube2Text

YouTube transcript (tsPv-ffN-0M) — Transcript

1,967 words · 296 segments · language en · Watch on YouTube

Full transcript

  1. 0:09Let's go ahead and look at a couple of
  2. 0:10examples. So, a report from 6 years ago
  3. 0:13indicated that the average gross salary
  4. 0:16for a business analyst was $69,873.
  5. 0:21Now, since this survey is now outdated,
  6. 0:24the Bureau of Labor Statistics wishes to
  7. 0:26test this figure against current
  8. 0:29salaries to see if the current salaries
  9. 0:32are statistically different from the old
  10. 0:34ones. So, the
  11. 0:37$69,873 will be our presumed our assumed
  12. 0:41population mean that we're going to test
  13. 0:44against. Now, based on other studies,
  14. 0:46we're going to assume a sigma of
  15. 0:52$13,985. Now, for this study, the BLS
  16. 0:55will take a sample of 112 current
  17. 0:59salaries. So, we have all the parts we
  18. 1:02need to set up our hypothesis. We have
  19. 1:05the hypothesized population mean. We
  20. 1:08have our sigma. We have our sample size.
  21. 1:11And of course once we collect our data,
  22. 1:13we'll have our sample
  23. 1:17mean. Now step one is always establish
  24. 1:20our hypothesis. Now we went ahead and
  25. 1:22did the other step one which is
  26. 1:24formulate a good problem. We did that in
  27. 1:25the previous slide. So actually in the
  28. 1:27numbers we have step one establish the
  29. 1:30hypothesis. So remember our null
  30. 1:33hypothesis is that the current salary
  31. 1:36mean is the same as the previous one 6
  32. 1:40years ago. So mu is equal to
  33. 1:4669,873. Now our alternative is the
  34. 1:48opposite of that and that is that the
  35. 1:50current mean salary for business
  36. 1:53analysts is not $69,873.
  37. 1:59Now, step two, determine the appropriate
  38. 2:01statistical test and sampling
  39. 2:03distribution. Now, this will be a
  40. 2:05two-tailed test because remember,
  41. 2:06salaries could be higher or lower
  42. 2:09because we're still in the middle of a
  43. 2:12global recession. So, it's very possible
  44. 2:15that salaries could have gone down. Now,
  45. 2:17they could have gone up as well. We
  46. 2:18don't know. So, we're just testing
  47. 2:20whether or not it's equal to. We don't
  48. 2:22know on which side it may have gone if
  49. 2:25it's not equal to. Now, since sigma is
  50. 2:28known, we will be using the Z
  51. 2:30distribution as we will in all the
  52. 2:32examples in this video. So, we're going
  53. 2:34to go ahead and use the formula we had
  54. 2:36two slides
  55. 2:40ago. Now, step three, we're going to
  56. 2:42specify the type one error rate or the
  57. 2:45significance level. And again, this is
  58. 2:47up to us. So, I'm going to choose for
  59. 2:49this one the middle ground and say an
  60. 2:51alpha of 0.05.
  61. 2:54So I am okay with the possibility of
  62. 2:58making a type one error 5% of the time.
  63. 3:03Now step four, we're going to state our
  64. 3:06decision rule. Now remember based on the
  65. 3:10curve, if our ZV valueue is above
  66. 3:141.96, it'll be in our top rejection
  67. 3:17region. Therefore, we'll reject the null
  68. 3:20hypothesis. If our zstistic is less than
  69. 3:24negative 1.96 then again we will reject
  70. 3:27the null hypothesis because that will be
  71. 3:29in our lower rejection region. Now of
  72. 3:33course step five we will gather the
  73. 3:35data. Now in this case we went ahead and
  74. 3:38gathered our data. So our sample size
  75. 3:40was 112 and our sample mean was 70
  76. 3:4872,180. So, we know that it's higher,
  77. 3:52but the question is, is it high enough
  78. 3:55to be statistically
  79. 4:01significant? Let's go ahead and
  80. 4:03calculate our test statistics. So, our
  81. 4:05mean salary for the current salaries is
  82. 4:11$72,180. Our
  83. 4:13hypothesized mean was
  84. 4:16$69,873. Now our sigma was given to us
  85. 4:19at 13985 and of course our sample size
  86. 4:22is 112. So again we have our formula
  87. 4:25down here at the bottom. So all we do is
  88. 4:28we go ahead and insert those numbers
  89. 4:31into our Z formula. So 72180 which is
  90. 4:36our sample mean minus
  91. 4:3969,873 which is our hypothesized mean
  92. 4:42divided by sigma / the<unk> of n. And
  93. 4:47that comes up with a value of Z that is
  94. 4:50equal to
  95. 4:531.75. Now we have a decision to
  96. 4:57make. So remember our hypothesis were mu
  97. 5:01is
  98. 5:0369,873 or the alternative was mu is not
  99. 5:0869,873. Now we know it's not exactly
  100. 5:1269,873 because we found that it was like
  101. 5:1471,000 something. But the question is,
  102. 5:17is it high enough to say that it is
  103. 5:21statistically
  104. 5:23different? So our Z was
  105. 5:271.75. And look where that falls in our
  106. 5:30non-rejection region. It's right there
  107. 5:33to the left of our critical value. Now
  108. 5:37since the test statistic is inside the
  109. 5:39non-rejection region and not beyond the
  110. 5:42critical value, we fail to reject the
  111. 5:46null hypothesis that the old and the
  112. 5:49current salaries are statistically
  113. 5:52different. So we therefore fail to
  114. 5:57reject the null hypothesis. So we assume
  115. 6:01that our assumption holds up. Remember,
  116. 6:04we're not saying that our null is quote
  117. 6:07true. All we're saying is that we could
  118. 6:10not reject it based on the statistical
  119. 6:13analysis we did. So, is the salary
  120. 6:17higher based on our sample? Yes. But can
  121. 6:21we say it is statistically different?
  122. 6:24No. And remember why is that? That's
  123. 6:28because of the idea of sampling error.
  124. 6:32Remember, this was just one sample. We
  125. 6:35could have taken many samples. And those
  126. 6:38other samples might be right smack in
  127. 6:40the middle of the non-rejection region.
  128. 6:42We might have a sample that's lower in
  129. 6:45the non-rejection region. They could be
  130. 6:47anywhere in that blue area. We just
  131. 6:50happened to get one here. Now remember
  132. 6:54what we're saying is that 5% of the time
  133. 6:57we expect to get a sample mean that's
  134. 7:00either in the upper rejection region or
  135. 7:02in the lower rejection region. But this
  136. 7:05one sample just happens to be located
  137. 7:08right here right at the upper edge of
  138. 7:11the non-rejection region. So we would
  139. 7:13conclude that the old salaries and the
  140. 7:16current salary are not
  141. 7:19statistically different.
  142. 7:24So, example two, Starbucks customer
  143. 7:26satisfaction. So, Starbucks is
  144. 7:28interested in assessing customer
  145. 7:31satisfaction in the Canadian city of
  146. 7:33Toronto, Ontario. To conduct the study,
  147. 7:36Starbucks asks 225 customers in the city
  148. 7:41compared to other coffee houses in
  149. 7:43Toronto. Would you say the customer
  150. 7:45service at Starbucks is much better than
  151. 7:47average, which is a score of five?
  152. 7:49better than average, which is a score of
  153. 7:51four. Average, a score of three. Worse
  154. 7:54than average, a score of two. Or much
  155. 7:57worse than average, a score of one. And
  156. 8:01this is commonly known as a Lykert
  157. 8:03scale. So 54321 in descending order. Now
  158. 8:08based on the data we collected, the mean
  159. 8:10rating was determined to be 3.25.
  160. 8:14And based on previous studies done by
  161. 8:16the company, it is assumed that sigma is
  162. 8:221.5. So let's go ahead and establish our
  163. 8:25hypothesis. So our null hypothesis is
  164. 8:29that the average customer rating is less
  165. 8:32than or equal to three because remember
  166. 8:34three is average in our lacquered scale.
  167. 8:37Three is average. And then our
  168. 8:39alternative hypothesis is that the
  169. 8:42satisfaction level is higher than three.
  170. 8:46So we're going to assume that it's three
  171. 8:49or less and then we'll either reject or
  172. 8:52fail to reject that and then we will go
  173. 8:55on to our alternative because remember
  174. 8:57the equal sign the equality portion is
  175. 9:00always in the
  176. 9:01null. So determine the appropriate
  177. 9:03statistical test and sampling
  178. 9:05distribution. Now, this will be a
  179. 9:07onetailed test. Starbucks is interested
  180. 9:11in a better than average customer
  181. 9:14service rating. So, you can see that in
  182. 9:17our alternative hypothesis, we're
  183. 9:20interested if the the average customer
  184. 9:22rating is higher than three. So, because
  185. 9:26of the greater than and less than or
  186. 9:28equal to than, this will be a one-
  187. 9:29tailed test. Now since sigma is known,
  188. 9:32we will again use the Z distribution as
  189. 9:34we did
  190. 9:37before. Now specify the type one error
  191. 9:41rate. So our significance level. Now for
  192. 9:44this one, I'm going to choose a 01.
  193. 9:47Again, just to show you some conceptual
  194. 9:49information, I'm going to show you a
  195. 9:50different one or use a different one.
  196. 9:52Then we'll state the decision rule. So
  197. 9:55if our ZV valueue is greater than
  198. 10:002.33, we will reject the null
  199. 10:03hypothesis. So this is our upper tailed
  200. 10:05test. Remember with an alpha of 01, we
  201. 10:08have 99% there in the non-rejection
  202. 10:10region and we have the 1% all in the
  203. 10:14upper rejection region. So our Z, our
  204. 10:17critical value is 2.33, which is right
  205. 10:21there. Of course, where does that come
  206. 10:22from? that comes from our Z table. So
  207. 10:26you just have to look up that critical
  208. 10:29value in the Z table. Of course, step
  209. 10:33five will gather our data. Now, we
  210. 10:34already did that. So our sample size
  211. 10:36again was 225 and our sample mean was
  212. 10:453.25. So let's go ahead and calculate
  213. 10:47our test statistic. So there are four
  214. 10:50inputs. our sample mean, our
  215. 10:52hypothesized mean, our sigma, and our
  216. 10:55sample size. And again, the same
  217. 10:57formula. So, we'll go ahead and
  218. 10:59substitute all that information into our
  219. 11:02equation, and we come up with a ZV
  220. 11:05value, a Z test value of
  221. 11:092.5. So, let's go ahead and put that on
  222. 11:11our
  223. 11:14curve. So, here is our distribution, and
  224. 11:17you can see that we have our
  225. 11:18non-rejection region in the middle.
  226. 11:20That's 99% or 0.99, that's our
  227. 11:22probability in the middle. And of
  228. 11:24course, we have our 1% there on the
  229. 11:26ends. So remember what we're saying here
  230. 11:29is that we expect 99% of our sample
  231. 11:32means to be in this blue region and then
  232. 11:351% to be in the rejection region in the
  233. 11:39uh brown color there. So here our
  234. 11:41hypothesis, our null is that mu is less
  235. 11:44than or equal to 3 and the alternative
  236. 11:46is that mu is greater than three.
  237. 11:49So our Zcritical value is 2.33 which is
  238. 11:53right there on our curve. Now our Z is
  239. 11:582.5. So where is it at? It is in the
  240. 12:03rejection region. Now since the test
  241. 12:07statistic is inside the rejection region
  242. 12:10and beyond the critical value, we reject
  243. 12:14the null hypothesis that customer
  244. 12:16satisfaction is at or below average. So
  245. 12:20therefore we have to reject the null
  246. 12:23hypothesis and accept the alternative
  247. 12:27hypothesis based on this Z value.
  248. 12:35Now, what is the mean customer
  249. 12:37satisfaction value at the critical value
  250. 12:41of
  251. 12:422.33? Because remember, up until now,
  252. 12:44we've been finding zcores. But what is
  253. 12:47the actual customer sentiment, the
  254. 12:50average customer satisfaction at that
  255. 12:54critical
  256. 12:55value? Well, remember this is the
  257. 12:57formula we used before. So, it's
  258. 12:59everything we had in our equation
  259. 13:00before. Now what we can do is we can
  260. 13:04just sort of put in the Zcritical value
  261. 13:07we're looking at. So 2.33 just goes in
  262. 13:10where Z was. Now we're solving for Xbar.
  263. 13:16So we want to find the sample that would
  264. 13:19fall right on the sample mean that would
  265. 13:21fall right on that Z critical value. So
  266. 13:24again, this is just where our wonderful
  267. 13:27basic algebra that we learned many years
  268. 13:29ago comes into play.
  269. 13:32So we'll go ahead and solve our
  270. 13:33denominator. That ends up being 0.1.
  271. 13:36Then we'll multiply both sides by 0.1.
  272. 13:39So on the left hand side we have
  273. 13:42233 equals xar minus 3 which is just the
  274. 13:46leftover of our
  275. 13:48numerator. And we come up with a sample
  276. 13:51mean xbar of 3.233.
  277. 13:57So therefore any sample of size
  278. 14:01225 with a sample mean greater than
  279. 14:073.233 would lead to a rejection of the
  280. 14:10null hypothesis assuming a constant
  281. 14:13sigma and the same alpha level. So if we
  282. 14:17went out again and we collected another
  283. 14:20sample, same 225 sample size, and let's
  284. 14:25say we got a mean of
  285. 14:313.19, what would happen
  286. 14:33then? Well, it's not greater than
  287. 14:373.233. Therefore, we would fail to
  288. 14:41reject the null hypothesis. See how this
  289. 14:44works? So what we've done is we've set
  290. 14:46up sort of a threshold mean value or
  291. 14:50sample mean value and anything above
  292. 14:53that assuming all this stays the same
  293. 14:56would lead to a rejection of the null
  294. 14:58hypothesis. Anything equal to or below
  295. 15:01that would make would mean we fail to
  296. 15:04reject the null hypothesis.

About this transcript

This page contains the full transcript of YouTube transcript (tsPv-ffN-0M) , generated from the public captions YouTube serves with the video. The transcript has 1,967 words across 296 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.