YouTube2Text

YouTube transcript (VFMcGdWp0MQ) — Transcript

3,657 words · 531 segments · language en · Watch on YouTube

Full transcript

  1. 0:07[Music]
  2. 0:17hello thank you for watching and welcome
  3. 0:19to the next video in my series on basic
  4. 0:21statistics now as usual a few things
  5. 0:24before we get started number one if
  6. 0:27you're watching this video because you
  7. 0:28were struggling in a class right now I
  8. 0:30want you to stay positive and keep your
  9. 0:32head up if you're watching this it means
  10. 0:34you've accomplished quite a bit already
  11. 0:36you're very smart and talented and you
  12. 0:38may have just hit a temporary rough
  13. 0:40patch now I know with the right amount
  14. 0:42of hard work practice and patience you
  15. 0:46can get through it I have faith in you
  16. 0:48many other people around you have faith
  17. 0:50in you so so should you number two
  18. 0:54please feel free to follow me here on
  19. 0:55YouTube on Twitter on Google+ or on
  20. 0:59LinkedIn
  21. 1:00that way when I upload a new video you
  22. 1:02know about it and it's always nice for
  23. 1:05me to connect with people who watch my
  24. 1:06videos online wherever in the world you
  25. 1:09may happen to be now on the topic of the
  26. 1:12video if you like it please give it a
  27. 1:15thumbs up share it with classmates or
  28. 1:17colleagues or put it on a playlist
  29. 1:19because that does encourage me to keep
  30. 1:21making them for you on the flip side if
  31. 1:23you think there is something I can do
  32. 1:25better please leave a constructive
  33. 1:27comment below the video and I will try
  34. 1:29to take this idea is into account when
  35. 1:31to make new ones for you and finally
  36. 1:34just keep in mind that these videos are
  37. 1:36meant for individuals who are relatively
  38. 1:38new to snats so I'm just going over
  39. 1:41basic concepts and I will be doing so in
  40. 1:44a very slow deliberate manner not only
  41. 1:48do I want you to know what's going on
  42. 1:50but also why and how to apply it so all
  43. 1:53that being said let's go ahead and get
  44. 1:57started so this video is the next in our
  45. 2:00series on hypothesis formulation and
  46. 2:03eventually hypothesis testing and like
  47. 2:06the last videos it's sometimes a concept
  48. 2:09that can give intro stat students
  49. 2:11headaches it can drive them crazy and
  50. 2:14the reason is that this concept runs
  51. 2:17counter to how we usually think about
  52. 2:19our everyday lives and of course this is
  53. 2:22the concept of type one and type two
  54. 2:25errors in hypothesis formulation and
  55. 2:28testing now remember in previous videos
  56. 2:31we talked about what hypotheses are we
  57. 2:33talked about how to set them up pull
  58. 2:35data out of problems and then set up our
  59. 2:37null hypothesis and our alternative
  60. 2:40hypothesis now remember the null
  61. 2:42hypothesis is what we assume to be true
  62. 2:46it's the status quo it's the information
  63. 2:48we are given or we again we assume to be
  64. 2:50the case the alternative is where we go
  65. 2:54next if we have to reject the null
  66. 2:57hypothesis so if we have to reject our
  67. 3:00assumption then we proceed on to the
  68. 3:03alternative now one thing we know by
  69. 3:05this point is that stats is never
  70. 3:08certain it's never 100% perfect so the
  71. 3:12way this usually works as far as
  72. 3:14hypothesis go we set up our hypothesis
  73. 3:17we go out and collect a sample we do
  74. 3:19some analysis on that sample and then we
  75. 3:22reach some conclusion about our
  76. 3:26hypothesis so the question is does our
  77. 3:29conclusion
  78. 3:30from our
  79. 3:31analysis match the actual state of
  80. 3:36reality so remember we're basing that
  81. 3:38conclusion off some sample we took and
  82. 3:41then we either reject or fail to reject
  83. 3:44our null hypothesis but the question is
  84. 3:48does our conclusion match the actual
  85. 3:51state of reality now we know it's not
  86. 3:55going to happen 100% of the time and
  87. 3:58that in a nut check
  88. 4:00is type one and type two error does our
  89. 4:04conclusion in our hypothesis test due to
  90. 4:06our analysis match the actual state of
  91. 4:11reality now this is not just some
  92. 4:13academic distinction here in real life
  93. 4:17in real studies in real research the
  94. 4:20type one and type two errors can have
  95. 4:23literally life or death consequences and
  96. 4:27I'm not OV exaggerating so in the
  97. 4:29examples I use in this video I'm going
  98. 4:31to show you that as starkly as I can now
  99. 4:34the way I'm going to proceed is to show
  100. 4:36you a couple of non-statistical real
  101. 4:39world examples that exhibit the idea of
  102. 4:42type one and type two error and then we
  103. 4:45will proceed into more formal
  104. 4:47statistical ways of putting it so all
  105. 4:50that being said let's go ahead and look
  106. 4:52at our first nonstatistical real world
  107. 4:57example now I call this the fire alarm
  108. 5:00hypothesis and unfortunately it's
  109. 5:02something a lot of us have to deal with
  110. 5:04at some point in our lives or in
  111. 5:06something similar you know similar
  112. 5:08situation and it goes something like
  113. 5:09this let's say you're going down the
  114. 5:12hallway at work or school sort of doing
  115. 5:14your own thing everything is normal as
  116. 5:17usual but you encounter a sudden smell
  117. 5:21of smoke like something's
  118. 5:24burning now you know that may mean a
  119. 5:27serious fire is taking place in in the
  120. 5:30building or it could be nothing serious
  121. 5:33maybe someone burned popcorn or
  122. 5:35something else in the microwave in the
  123. 5:37kitchen or cafeteria or wherever else
  124. 5:39you might be but the question is what do
  125. 5:41you do next you have to make some
  126. 5:43decision on what you're going to
  127. 5:47do so let's take a look at what might
  128. 5:50happen if you think the Smoky smell is
  129. 5:52nothing serious you may decide that your
  130. 5:54assumption that everything is normal is
  131. 5:57correct and therefore you will not pull
  132. 6:01the smoke alarm or the fire alarm so
  133. 6:03maybe someone burned something in the
  134. 6:05kitchen of course that's annoying but
  135. 6:07it's not a serious fire so you would
  136. 6:10just proceed on like everything was okay
  137. 6:13and of course you will not pull the fire
  138. 6:16alarm for that now if you think the
  139. 6:18Smoky smell is due to a serious fire you
  140. 6:22may reject your assumption that
  141. 6:24everything is normal and then you will
  142. 6:27pull the fire alarm so you have to reach
  143. 6:30some conclusion based on the evidence
  144. 6:33around you about the state of reality
  145. 6:37it's either a not serious fire or it's a
  146. 6:41very serious fire and then you have to
  147. 6:43decide what you're going to
  148. 6:47do so let's look at what might go wrong
  149. 6:49in this situation so of course you smell
  150. 6:51the smoke and you think to yourself This
  151. 6:54is not normal so you reject the
  152. 6:58assumption that everything is okay you
  153. 7:01reject your null
  154. 7:03hypothesis therefore you go ahead and
  155. 7:06pull the fire alarm so you rejected your
  156. 7:09null hypothesis that everything is
  157. 7:11normal and then you went ahead and
  158. 7:13pulled the fire alarm so the building is
  159. 7:15evacuated and the fire department
  160. 7:17arrives to
  161. 7:19investigate now after the investigation
  162. 7:22it is determined that there was no
  163. 7:24serious fire you quote falsely pull
  164. 7:30the fire
  165. 7:31alarm now here's the way we interpret
  166. 7:34that when you rejected your assumption
  167. 7:37that everything was okay so you looked
  168. 7:40at the situation you said this is not
  169. 7:41normal I'm going to reject my assumption
  170. 7:43that everything is normal and then you
  171. 7:46proceeded so when you rejected your
  172. 7:48assumption that everything was okay when
  173. 7:50it really was okay because there was no
  174. 7:54fire you committed type one error or in
  175. 7:58this case a false alarm so let's talk
  176. 8:02about type 1 error more formally so type
  177. 8:041 error is rejection of the Assumption
  178. 8:08or rejection of the null hypothesis when
  179. 8:12it should not have been
  180. 8:14rejected so in the Fire case you
  181. 8:18rejected your assumption that everything
  182. 8:20was normal but the reality was
  183. 8:23everything was okay so type 1 error is
  184. 8:26rejecting the N hypothesis when it
  185. 8:28should not be rejected
  186. 8:30you can think of it as incorrectly
  187. 8:32rejecting the null
  188. 8:34hypothesis in this case a false
  189. 8:38alarm and again this is a real world
  190. 8:40situation but is a perfect example of
  191. 8:43what type one error is rejecting the
  192. 8:46null when it should not have been
  193. 8:52rejected now let's look at what else
  194. 8:54might go wrong let's say you smell smoke
  195. 8:57and you think oh it's probably someone
  196. 8:59who burns their lunge in the microwave
  197. 9:02no big deal so you go ahead and just
  198. 9:04proceed along your way therefore you did
  199. 9:08not reject your assumption that
  200. 9:10everything is okay you upheld your null
  201. 9:13hypothesis you just sort of concluded
  202. 9:16it's not nothing serious so you or not
  203. 9:18something serious so you went ahead and
  204. 9:19just went on your way but let's say
  205. 9:23there is indeed a serious fire now no
  206. 9:26one is injured luckily but the entire
  207. 9:29building does burn to the
  208. 9:31ground so when you failed to reject your
  209. 9:35assumption that everything is okay when
  210. 9:37it really was not okay you committed
  211. 9:42type two
  212. 9:43error so let's formally Define this and
  213. 9:46then we'll compare the two so type two
  214. 9:48error failure to reject the Assumption
  215. 9:51or failure to reject the null hypothesis
  216. 9:55when it should have been
  217. 9:57rejected so incorrect ly not rejecting
  218. 10:01the null
  219. 10:02hypothesis so think about type one type
  220. 10:06one is when we reject the null
  221. 10:10hypothesis
  222. 10:12incorrectly type two is when we fail to
  223. 10:17reject the null hypothesis
  224. 10:20incorrectly so in the first case we pull
  225. 10:23the fire alarm when there was no fire in
  226. 10:26the second case we did not pull the fire
  227. 10:29alarm even though there was a fire so
  228. 10:33again we'll do some other examples but
  229. 10:35this sort of sets the stage for
  230. 10:37basically what type one and type two
  231. 10:40error as it relates to our conclusion we
  232. 10:43reach and the actual state of
  233. 10:51reality now we can set this up as a
  234. 10:53little hypothesis so our null hypothesis
  235. 10:55was the smoke is annoying but not
  236. 10:58serious everything is okay as usual
  237. 11:00there's no serious fire the alternative
  238. 11:04would be that smoke is evidence of a
  239. 11:06serious fire everything is not okay as
  240. 11:09usual there is a serious fire now we can
  241. 11:13set up a little hypothesis table here so
  242. 11:16on the left hand side we have the
  243. 11:18conclusion we reach and then on the top
  244. 11:23we have the actual condition or the
  245. 11:25actual state of reality so let go ahead
  246. 11:29and fill this in with some
  247. 11:32information now in the conclusion side
  248. 11:34we have we do not reject the null
  249. 11:37hypothesis so no serious fire or we
  250. 11:42reject our null hypothesis that
  251. 11:44everything is okay and there is some
  252. 11:47serious fire so those are the two
  253. 11:49conclusions we could reach in this
  254. 11:51situation now the actual condition of
  255. 11:55reality is there is no serious fire or
  256. 11:58there is is a serious
  257. 12:02fire now we notice that there are two
  258. 12:05correct conclusions here so if we do not
  259. 12:08reject the null hypothesis and there's
  260. 12:11no serious fire and the state of reality
  261. 12:14is that there is no serious fire that is
  262. 12:17a correct
  263. 12:19conclusion now if we reject the null
  264. 12:21hypothesis that everything is normal and
  265. 12:23there is a serious Fire based on our
  266. 12:26evidence and reality is that there is a
  267. 12:29serious fire that is also a correct
  268. 12:34conclusion so you can see are two
  269. 12:36correct conclusions there now the
  270. 12:38question is where is the type one and
  271. 12:41type two error in this
  272. 12:44chart well they go here so let's look at
  273. 12:47the type one error situation first so in
  274. 12:51the type 1 error we reach a conclusion
  275. 12:54where we reject the null hypothesis so
  276. 12:57in this case we re reject the assumption
  277. 13:00that everything is normal and we think
  278. 13:03there is a serious fire going on but the
  279. 13:06fire department arrives and they
  280. 13:09determine the actual condition is that
  281. 13:12there is no serious fire so therefore
  282. 13:15our conclusion does not match the actual
  283. 13:19reality now let's look at type two error
  284. 13:23so in type two error our conclusion was
  285. 13:26that we did not reject our null
  286. 13:28hypothesis and therefore we don't think
  287. 13:30there's a serious fire going on but the
  288. 13:33reality is there is a serious fire going
  289. 13:36on so we have a disconnect between our
  290. 13:38conclusion and the actual state of
  291. 13:41things so you can see that we have two
  292. 13:43correct conclusions and two errors type
  293. 13:46one error and type two
  294. 13:50error now in general the real world
  295. 13:53consequences of a type 2 error are much
  296. 13:56greater in this case a type two error
  297. 13:59error May mean the loss of property or
  298. 14:02even lives so think about this what
  299. 14:05happens if we commit a type one error in
  300. 14:07this case well we think there's a really
  301. 14:11serious fire so we pull the fire alarm
  302. 14:14that gets everyone out of the building
  303. 14:16and it brings the fire department to the
  304. 14:19location but it turns out there's no
  305. 14:22serious
  306. 14:23fire well pulling the fire alarm is
  307. 14:26going to be a very big inconvenience to
  308. 14:28everyone in the building but we pulled
  309. 14:32it we pulled the fire alarm because we'd
  310. 14:34rather be safe than sorry right so the
  311. 14:37minor inconvenience of the fire drill is
  312. 14:41no match of the consequences of type two
  313. 14:44error so look at type two we don't
  314. 14:47reject our null hypothesis we think
  315. 14:50there's no serious fire going on when in
  316. 14:52fact there is a serious fire so we don't
  317. 14:56pull the fire alarm what can the what
  318. 14:59can the consequences be here well if no
  319. 15:02one catches it in time the building
  320. 15:05could continue to burn because there is
  321. 15:07a serious fire and it could mean the
  322. 15:09loss of course property and lives so
  323. 15:12while the type one error in this case is
  324. 15:15a real world inconvenience the type two
  325. 15:18error can cost property and lives and
  326. 15:21that pattern tends to repeat itself
  327. 15:25throughout these examples
  328. 15:30so let's look at another example and I
  329. 15:32call this the andon hypothesis now
  330. 15:35you're probably thinking what is that
  331. 15:37well here's what it is in a
  332. 15:39manufacturing system such as the Toyota
  333. 15:41production system so Toyota the car
  334. 15:44company and other lean systems line
  335. 15:47workers have the power and indeed the
  336. 15:50responsibility to stop the entire
  337. 15:52production line when they notice a
  338. 15:55serious problem and this is done by
  339. 15:58pulling what's called an andon cord so
  340. 16:01you can see in these pictures all along
  341. 16:03the production line there's a cord like
  342. 16:05you might see on a bus or even a train
  343. 16:07and if they notice something is
  344. 16:09seriously wrong the worker is supposed
  345. 16:12to is actually required in this
  346. 16:14environment to pull it that will stop
  347. 16:17the entire production line dead in its
  348. 16:20tracks until that situation is
  349. 16:26resolved now the assumption is that the
  350. 16:28production line is running correctly
  351. 16:31this is the minute-by-minute null
  352. 16:32hypothesis so as things run the
  353. 16:35assumption is everything is running
  354. 16:37smoothly everything is running correctly
  355. 16:39now when a worker notices a defect he or
  356. 16:42she has a choice to make should they
  357. 16:45pull the chord or
  358. 16:49not if the endon chord is pulled the
  359. 16:53worker is rejecting the assumption that
  360. 16:55the process is error free they are
  361. 16:59rejecting the null hypothesis they are
  362. 17:01rejecting the assumption that everything
  363. 17:03is okay if the core is not pulled then
  364. 17:08the worker is not rejecting the
  365. 17:10assumption that the process is error
  366. 17:12free thus maintaining the null
  367. 17:14hypothesis and the production line
  368. 17:16continues to run so it's all about
  369. 17:19rejecting or not rejecting the
  370. 17:21assumption that everything is
  371. 17:26okay now what if the chord is P which is
  372. 17:30a rejection of the null hypothesis but
  373. 17:33nothing is actually wrong with the
  374. 17:36production process again this is sort of
  375. 17:39a false alarm
  376. 17:41situation in this case the worker quote
  377. 17:44committed a type one error they reject
  378. 17:48the null hypothesis incorrectly they
  379. 17:51rejected the null hypothesis that
  380. 17:53everything was okay
  381. 17:56incorrectly so type one error again is a
  382. 17:59wrongful rejection of the null
  383. 18:01hypothesis when it should not be
  384. 18:03rejected now something about this in the
  385. 18:06Toyota production system and in similar
  386. 18:09Lean Manufacturing Systems this is
  387. 18:12actually encouraged this is perfectly
  388. 18:16okay so if the worker thinks there is
  389. 18:19something wrong they are supposed to
  390. 18:21they are required to reject their null
  391. 18:25hypothesis reject the assumption that
  392. 18:27everything is going okay pull the cord
  393. 18:30and stop the production line they are
  394. 18:32not supposed to worry about whether or
  395. 18:35not they are correct or incorrect and
  396. 18:39that goes to the idea of the difference
  397. 18:41in the real world consequences between
  398. 18:43type 1 and type two error which we'll
  399. 18:45talk about here in a minute but actually
  400. 18:48this type one error is okay in this type
  401. 18:52of production
  402. 18:53[Music]
  403. 18:55system now what if the cord is not
  404. 18:57pulled thus supporting the null
  405. 19:00hypothesis but something actually is
  406. 19:03wrong with the production process so
  407. 19:06often times a worker or sometimes a
  408. 19:08worker might be afraid to pull that cord
  409. 19:12because they don't want to be blamed for
  410. 19:14stopping production and this is
  411. 19:16especially true in American
  412. 19:19Manufacturing Systems where at least
  413. 19:22previously to Toyota coming onto the
  414. 19:24scene the idea was to produce as much as
  415. 19:26possible as fast as possible so what if
  416. 19:29the cord is not pulled but something is
  417. 19:32wrong in this case the worker committed
  418. 19:35a type two error so they failed to
  419. 19:39reject the null hypothesis they failed
  420. 19:43to reject their assumption that
  421. 19:45everything is wrong when something was
  422. 19:47actually
  423. 19:48wrong so type two error is wrongful
  424. 19:51support of the null hypothesis when it
  425. 19:54actually should be rejected
  426. 19:58now note in this case in this case a
  427. 20:02type two error can be
  428. 20:05catastrophic it may mean that hundreds
  429. 20:08or thousands of cars have that defect
  430. 20:12built into them and see this is why in
  431. 20:16the Toyota production system and other
  432. 20:17Lean Manufacturing Systems pulling that
  433. 20:20andon cord is encouraged if not actually
  434. 20:25required because the type one error it
  435. 20:28an annoyance is okay if they stop the
  436. 20:32line for a couple of minutes it's not
  437. 20:34that big a deal it's going to mean a few
  438. 20:36cars off the end of the line that didn't
  439. 20:38produce but think about the reverse if a
  440. 20:42worker sees something that they don't
  441. 20:44think is right but don't pull the cord
  442. 20:47and let that defect keep going and going
  443. 20:50and going and then all these cars at the
  444. 20:54end of the line have that defect built
  445. 20:56in that's why typ one error in this case
  446. 21:00is really okay but type two error is
  447. 21:04very very bad very bad and if it's a
  448. 21:08part on the car that's a safety issue it
  449. 21:10can be very very bad so again think of
  450. 21:14the difference between type one and type
  451. 21:17two error in these two cases type one
  452. 21:20was kind of a false alarm so the alarm
  453. 21:22was pulled when there really wasn't a
  454. 21:24fire the andon cord was pulled when
  455. 21:27there really wasn't a major problem
  456. 21:29that's annoying but it's not
  457. 21:31catastrophic in terms of the
  458. 21:32consequences but type two is in the Fire
  459. 21:36case if we don't pull the fire alarm and
  460. 21:38there is a fire our building may burn
  461. 21:42down and people may lose their lives in
  462. 21:44this case if we don't pull the andon
  463. 21:47cord and there is a problem that defect
  464. 21:50may get repeated hundreds or thousands
  465. 21:52of times and that's the real world
  466. 21:54consequence of type 2 error as related
  467. 21:57to type one
  468. 22:01error now we can set this up as a couple
  469. 22:03of hypotheses like we did the last time
  470. 22:05so our null hypothesis is that the
  471. 22:07problem is annoying but not serious
  472. 22:10everything is okay no major defect so
  473. 22:12the normal running of the production
  474. 22:14line our null hypothesis is that the
  475. 22:17problem is serious everything is not
  476. 22:19okay as usual there is a major defect so
  477. 22:22we can set up a table just like this so
  478. 22:24we have two conclusions we can make we
  479. 22:27can accept our n hypothesis or you can
  480. 22:29think of it as not rejecting I should
  481. 22:31have changed that to not rejecting our
  482. 22:33null hypothesis and that is no serious
  483. 22:36defect we could reach the conclusion of
  484. 22:39rejecting our null hypothesis that there
  485. 22:42is some serious defect going on so
  486. 22:44that's the conclusion we can make on the
  487. 22:46line in the moment now the actual
  488. 22:49condition maybe when the supervisor
  489. 22:51walks over could be that there is no
  490. 22:53serious defect or there is some serious
  491. 22:56defect now if we if we do not reject our
  492. 23:01null and there is no serious defect
  493. 23:04that's the correct conclusion and
  494. 23:07actually that's the way the production
  495. 23:08line works you know the vast majority of
  496. 23:10the time we assume everything is going
  497. 23:13okay and there are no serious defects
  498. 23:16that's a conclusion that is correct
  499. 23:18that's a match now if we reject the no
  500. 23:21hypothesis we think there is a serious
  501. 23:23defect and the reality is there is a
  502. 23:25serious defect that's also correct so
  503. 23:28our correct conclusion now let's look at
  504. 23:30the type one situation very quickly so
  505. 23:32let's say we reject the no hypothesis we
  506. 23:35reject our assumption that production is
  507. 23:37going okay without serious defect we're
  508. 23:40going to reject that because we think
  509. 23:41there's a problem now the actual
  510. 23:43condition is that there is no serious
  511. 23:46problem or defect so that disconnect
  512. 23:48between conclusion and reality is the
  513. 23:51type one error so the production line
  514. 23:53might stop for a few minutes or even
  515. 23:55maybe less than a minute to check it
  516. 23:58then after we see there's no serious
  517. 23:59problem or defect it just starts up
  518. 24:02again the type two error that's when we
  519. 24:05accept or fail to reject the null
  520. 24:08hypothesis so we think everything is
  521. 24:10going smoothly when in fact there is a
  522. 24:13serious defect going on and that is type
  523. 24:15two error and again that gets replicated
  524. 24:19over and over and over into each
  525. 24:21successive car so in general the real
  526. 24:23real consequences of a type two error
  527. 24:25are much greater in this case type 2
  528. 24:28error would mean hundreds or thousands
  529. 24:30of defective cars and maybe even unsafe
  530. 24:33cars as we proceed on Down the Line
  531. 24:37[Music]

About this transcript

This page contains the full transcript of YouTube transcript (VFMcGdWp0MQ) , generated from the public captions YouTube serves with the video. The transcript has 3,657 words across 531 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.