YouTube2Text

13 - ANOVA Basics - The Grand Mean — Transcript

by Math and Science · 3,710 words · 479 segments · language en · Watch on YouTube

Full transcript

  1. 0:00hello welcome back to statistics we're
  2. 0:03talking about analysis of variance we're
  3. 0:05gonna talk about the basics here so this
  4. 0:08lesson and the next several lessons will
  5. 0:09be going through the components of the
  6. 0:11calculations one little piece at a time
  7. 0:13so the first piece is called the grand
  8. 0:15mean it's the easiest piece to
  9. 0:17understand is very very simple before we
  10. 0:20get to that let's look at this problem
  11. 0:22what we're going to do is end up solving
  12. 0:24this problem by hand I know in the
  13. 0:26previous section we talked about school
  14. 0:27districts and testing that was great to
  15. 0:29keep in your brain just because
  16. 0:31everybody has some experience with
  17. 0:32grades but this is a real problem so
  18. 0:34below are the ages that females get
  19. 0:37married in New York Texas and Oregon so
  20. 0:40you say we have New York here Texas and
  21. 0:42Oregon and we have some numbers written
  22. 0:45down here so these are the ages that
  23. 0:48girls get married so New York we have
  24. 0:50one person that got married at 18 years
  25. 0:52old one in 19 years old and so on so
  26. 0:55everybody you ask there's ten people
  27. 0:56that we sampled in New York 10 people we
  28. 0:59sampled in Texas and 10 people that we
  29. 1:00sampled in Oregon so this is another
  30. 1:03example the population that we're
  31. 1:05studying is the entire New York female
  32. 1:07population the age that they get married
  33. 1:09the population here is all the females
  34. 1:11in Texas the population here is all the
  35. 1:14females in Oregon but we can't sample
  36. 1:15everybody what we want to do because you
  37. 1:18can't do that because there's not enough
  38. 1:19money or time what we want to do is
  39. 1:22perform an analysis of variance test to
  40. 1:24see if the average age of marriage in
  41. 1:26these three states are equal so again
  42. 1:29analysis of variance three or more
  43. 1:31populations in this case three but we
  44. 1:33could have Louisiana and Kentucky and
  45. 1:35Florida if we wanted to we could
  46. 1:36continue doing testing and doing doing
  47. 1:38them all do them all at once but we
  48. 1:41cannot know the population average we
  49. 1:43can't sample all girls in Texas all
  50. 1:45females and figure that out it's just
  51. 1:47too costly so we sample 10 from each of
  52. 1:49these guys and we want to figure out
  53. 1:50from that information at a point one
  54. 1:53level of significance which means 90%
  55. 1:55level of confidence if this data
  56. 1:57indicates that the average age of
  57. 1:59marriage in these three states are the
  58. 2:01same or not now I have the numbers here
  59. 2:03because the equations I'm going to write
  60. 2:05down are going to have subscripts 1 2 3
  61. 2:07so when you see a number one it means
  62. 2:09New York number two mean
  63. 2:11Texas number 3 means Oregon you should
  64. 2:12label your data that way as well all
  65. 2:15right so first thing we need to do is
  66. 2:17write down the null and alternate
  67. 2:18hypothesis and I already told you that
  68. 2:20it's always the same for these problems
  69. 2:21but let's write it down anyway the null
  70. 2:23hypothesis is that the average age that
  71. 2:25females get married in New York C mu
  72. 2:28number one this is population 1 is equal
  73. 2:32to the average age of the females in
  74. 2:34population 2 which is equal to the
  75. 2:36average age in population 3 that's the
  76. 2:37null that's the currently accepted
  77. 2:39hypothesis that we think is true what
  78. 2:42would then be the alternate hypothesis
  79. 2:43well it just means that at least one of
  80. 2:48these means is different and I want to
  81. 2:57remind you we did talk about it in the
  82. 2:58last section I want to remind you though
  83. 3:00that even at the end of this test I'm
  84. 3:02really not gonna know which of these
  85. 3:04means is different if any of them are
  86. 3:06different I'm just gonna know that one
  87. 3:07of them is different you have to do
  88. 3:09different testing beyond the scope of
  89. 3:11ANOVA to figure out which one of them is
  90. 3:13different alright so the first thing
  91. 3:15we're going to talk about is the concept
  92. 3:16of the grand mean so let me write that
  93. 3:18down
  94. 3:18grand mean because here's the deal
  95. 3:25I've got sample data from population one
  96. 3:27sample data from population to sample
  97. 3:29data from population three so what I'm
  98. 3:30going to end up doing is I'm gonna
  99. 3:32average this data and I'm gonna get a
  100. 3:34number that's going to be the sample
  101. 3:36mean from population one then I'll
  102. 3:38average all of this and get a sample
  103. 3:39mean from population 2 then i'll sample
  104. 3:42average all of that and i'll get a
  105. 3:44sample mean from population 3 so i'll be
  106. 3:46comparing those three sample means
  107. 3:48together i'll be comparing them but how
  108. 3:50am I really gonna know if any of them
  109. 3:52are different I mean what were you doing
  110. 3:53in the previous section where we're
  111. 3:54looking at the test scores me I graphed
  112. 3:56it so you could visually see it but what
  113. 3:59were you really doing you were looking
  114. 4:00at those three scores and comparing them
  115. 4:02to each other but really what you were
  116. 4:03doing is comparing them to a common
  117. 4:05baseline the common baseline that you're
  118. 4:07going to end up using to compare each of
  119. 4:10these averages to is what we call the
  120. 4:12grand mean basically you have all of
  121. 4:15this data here so if you if you take the
  122. 4:18mean of all of each of these sample
  123. 4:21means let's say you get a sample mean
  124. 4:22from this data sample mean from this
  125. 4:23data sample
  126. 4:24from this day to see have a mean from
  127. 4:26New York mean from Texas and a mean from
  128. 4:27Oregon if you average all three of those
  129. 4:30means together you get what we call the
  130. 4:32grand mean so I'm gonna write it down it
  131. 4:35is the mean of the sample means right so
  132. 4:47I'm gonna say this a few different ways
  133. 4:48it's a really simple concept but the
  134. 4:50reason I'm saying it this way is because
  135. 4:51your book is going to describe to you
  136. 4:53it's gonna say the grand mean is the
  137. 4:55mean of the sample means and a lot of
  138. 4:57people look at that and say what does
  139. 4:57that mean well I'm telling you what it
  140. 4:59means you average up your data here and
  141. 5:01get an average we call it a sample mean
  142. 5:03average this together we get another
  143. 5:05sample mean average this together get
  144. 5:06another sample mean but we need a common
  145. 5:08baseline to compare everything to so we
  146. 5:11take all of these three means and
  147. 5:12average them together that's what we say
  148. 5:15it's the mean of the sample means now
  149. 5:16when you mathematically do that when you
  150. 5:18take this and average it with this an
  151. 5:20average it with this other sample mean
  152. 5:21what you're really doing really is just
  153. 5:24averaging all of the data together
  154. 5:26that's really what the grand mean is so
  155. 5:29some books make it really difficult to
  156. 5:30understand that concept but basically to
  157. 5:32calculate this grand mean all you do is
  158. 5:34you add all the numbers together you end
  159. 5:37up adding them all together and you
  160. 5:39divide by the total number of samples
  161. 5:41you have across everything that's the
  162. 5:43grand mean it's exactly the same answer
  163. 5:45as if you take the individual sample
  164. 5:47means that you calculate and average
  165. 5:48them together so either way you want to
  166. 5:50think about it you're going to get the
  167. 5:51same number right now I'm telling you
  168. 5:53this in words because now I'm gonna
  169. 5:55write the equation down and the
  170. 5:56equations scare a lot of people so just
  171. 5:58bear with me I'm writing them down so
  172. 6:00that you can learn how to read them so
  173. 6:01the grand mean is denoted like this X
  174. 6:06double bar now the single bar notice the
  175. 6:08sample means have a single bar right
  176. 6:11because when you think about it this guy
  177. 6:13is going to give you a sample mean X bar
  178. 6:161 this guy is going to give you a sample
  179. 6:19mean X bar from population 2 this is
  180. 6:21gonna give you x-bar population 3 single
  181. 6:24bar means sample means from each
  182. 6:26individual population grand mean double
  183. 6:29bar is the grand mean it's the grant in
  184. 6:31the mean of everything so let me write
  185. 6:33the equation down it looks ugly but it's
  186. 6:35not that hard so here you have a sick
  187. 6:37I'll explain all this in a second I is
  188. 6:39equal to 1 up to K open up a bracket and
  189. 6:44we have another Sigma here inside this
  190. 6:47bracket looks really complicated don't
  191. 6:48worry about it it's not complicated J is
  192. 6:50equal to 1 up to n sub I over X I comma
  193. 6:57J and I'll close this guy out and now
  194. 7:01you're taking all that stuff and you're
  195. 7:02dividing it by another Sigma if that was
  196. 7:05already enough in sub I ok the reason I
  197. 7:10took a minute to write down the grand
  198. 7:12mean and explain what it is in words is
  199. 7:14because if I give you this first most
  200. 7:16people just fall asleep and they say
  201. 7:18this is difficult I can't understand it
  202. 7:20I'm not a math person but it's really
  203. 7:21simple to understand I already told you
  204. 7:23the grand mean is just the average of
  205. 7:25all this data all of it right this
  206. 7:27equation is the way that you
  207. 7:29mathematically write that down so I'm
  208. 7:30gonna go through it because even though
  209. 7:32I could skip over it what's gonna happen
  210. 7:34is we're gonna come across more and more
  211. 7:35of these things more and more of these
  212. 7:37equations in the next sections you need
  213. 7:38to learn how to read these things
  214. 7:40because if you deny yourself that then
  215. 7:42you're just not going to understand a
  216. 7:44nova ever so just stick with me for a
  217. 7:45second alright first of all I need to
  218. 7:49explain a few things from algebra right
  219. 7:51so this Sigma here this Big E this means
  220. 7:54you're adding things up this one means
  221. 7:56you're adding things up and this one
  222. 7:58means you're adding things up now I have
  223. 7:59to write a few things down off to the
  224. 8:01side before you'll really understand
  225. 8:02what it's saying
  226. 8:03K this value of K ok is the number of
  227. 8:09populations in this case 3 right so
  228. 8:15there's 3 populations so when I actually
  229. 8:17calculate it it's gonna be I go goes
  230. 8:19from 1 up to 3 if I had 16 populations
  231. 8:22and I would be going from 1 up to 16 all
  232. 8:25right then you have this guy here and
  233. 8:28this guy in some I appears in two
  234. 8:30different places down here so I'll write
  235. 8:32this down n sub I is the sample size
  236. 8:39sample size
  237. 8:42of if-- population right so we have a
  238. 8:48population of New York we took ten
  239. 8:50samples the sample size here was ten
  240. 8:52Texas we took the same number ten sample
  241. 8:55so the sample size was tenth here we
  242. 8:57took ten samples the sample size was ten
  243. 8:59so I is just a letter that represents a
  244. 9:02number so the way you really what I'm
  245. 9:04really trying to get across to you is in
  246. 9:05sub one was ten because we took ten
  247. 9:08samples and sub two was ten because we
  248. 9:11took ten samples in sub 3 is 10 because
  249. 9:15we took ten samples but again when we do
  250. 9:17a Nova I'm doing it with the same number
  251. 9:19of samples now but you know I could take
  252. 9:21seven samples from New York eight
  253. 9:23samples from Texas ten samples from
  254. 9:25Oregon in sub 1 in sub-2 and sub-3 the
  255. 9:28sample sizes would just be different all
  256. 9:30right so now it's time to try to to
  257. 9:34figure out what this is really telling
  258. 9:36us okay we have an outer in an inner
  259. 9:39right so what we do is we work out to
  260. 9:41end first I goes from 1 up to K which is
  261. 9:453 3 populations so let's say I starts
  262. 9:48out being 1 so the value of I is 1 so
  263. 9:51that means we go in here and we put a 1
  264. 9:52everywhere where the eye is so forget
  265. 9:55about the bottom for now on the top what
  266. 9:57are you adding together right J which is
  267. 10:00another variable starts from 1 and it
  268. 10:03goes up to n sub I which means it's just
  269. 10:05sampling over the 10 samples from
  270. 10:07population 1 because remember I is 1 to
  271. 10:10start out with I starts out being 1 so
  272. 10:12we just let the second variable J go
  273. 10:15from 1 up to the total number of samples
  274. 10:17from population number 1 and this Sigma
  275. 10:21means I'm adding together what's inside
  276. 10:23here is the all the different values
  277. 10:25basically all you're doing is this is
  278. 10:27telling you that you're just going to
  279. 10:28add up all the values from population
  280. 10:30number one because and I didn't write
  281. 10:32this down yet I'll write it down right
  282. 10:35here X IJ is the jafe sample
  283. 10:42from the ithe population so as an
  284. 10:50example I'm just going to give you a
  285. 10:52couple of examples okay x11 from
  286. 10:57population one sample number one
  287. 10:59population one sample number one is just
  288. 11:0218 okay
  289. 11:04x2 one the first letter here is the
  290. 11:08population that you're on this is the
  291. 11:10sample from the second population sample
  292. 11:12number one is second population as here
  293. 11:15sample number one is also 18 in just one
  294. 11:19more example x3 one from the third
  295. 11:22population sample number one is 21 so
  296. 11:27now you have all the pieces in place
  297. 11:29basically what's going on here is you
  298. 11:31start out with the outer loop you set I
  299. 11:33equal to 1 and then you come in and put
  300. 11:35I equal to 1 here and I equal to 1 here
  301. 11:38so your sampler is you're summing you're
  302. 11:40adding up that's what the Sigma means
  303. 11:42you're adding up all of the values from
  304. 11:44population number one across J which is
  305. 11:47the samples from population number one
  306. 11:49so I won one I won - I won three I won
  307. 11:53four I won five I won six I won seven I
  308. 11:56won eight I won I won ten so you're
  309. 11:59adding all those together that's what
  310. 12:00the Sigma means right once you're done
  311. 12:02you've gone up from one up to the
  312. 12:04complete you know sample size that you
  313. 12:06had for that population then what
  314. 12:08happens you pop out and you increment I
  315. 12:11you go to the second population so now I
  316. 12:13is 2 so 2 is here so now you're adding
  317. 12:16up from here going J from 1 up to the
  318. 12:19sample size of population 2 means you're
  319. 12:21going to add up all of these guys X 2 1
  320. 12:24X 2 2 X 2 3 X - 4 X - five - six - seven
  321. 12:28- eight - nine - ten you're just adding
  322. 12:31up all those values because you're going
  323. 12:33from this value up to the sample size of
  324. 12:35population - and then you do the same
  325. 12:36thing when you increment I to population
  326. 12:393 I 3 1 I 3 2 I 3 3 3 4 3 5 3 6 3 7 3 8
  327. 12:443 9 3 10 so you see what you're doing
  328. 12:47this entire ugly mess up here just means
  329. 12:50that I've added up all of these plus all
  330. 12:52of these plus all of these which is what
  331. 12:55I told you the grand mean was going
  332. 12:56do is gonna add up everything but then
  333. 12:59you have to divide by something right
  334. 13:01notice what's on the bottom you don't
  335. 13:04have anything on the top in the bottom
  336. 13:05it means you just sum all of the total
  337. 13:08number the sample size of the eigth
  338. 13:10population so population number one has
  339. 13:13ten samples population two has ten
  340. 13:15samples population three has ten samples
  341. 13:17you're not summing up the values in
  342. 13:19there you're just summing up how many
  343. 13:20there are so 10 plus 10 plus 10 is 30 so
  344. 13:24you see what's going on here the top
  345. 13:25here is you're adding up all of these
  346. 13:28things then all of these things to that
  347. 13:30and then all of these things to that you
  348. 13:32add all of them up and you divide by the
  349. 13:33total number of samples that you have
  350. 13:35across all the populations that's what
  351. 13:37we call the grand mean I could have
  352. 13:38skipped that I know I spent some time on
  353. 13:40it but I wanted you to understand it
  354. 13:42because you're gonna see this kind of
  355. 13:43notation here that's why I say it's the
  356. 13:45Jade sample from the population so
  357. 13:48population 1 then increment 1 2 3 4 5 6
  358. 13:517 add all of those up go to the next
  359. 13:53population population to increment to 1
  360. 13:562 3 2 3 2 4 2 5 and so on and then
  361. 13:59population 3 add everything up and
  362. 14:01divide by the total number so now that
  363. 14:03you have all that down we're gonna
  364. 14:06actually do it
  365. 14:07let's go ahead and calculate that for
  366. 14:09this data that we have so I've stripped
  367. 14:11away the problem statement and I've left
  368. 14:12just the raw data here essentially all
  369. 14:16right another way to write that I know
  370. 14:18you're probably sick of math but the
  371. 14:20grand mean the way I wrote it before was
  372. 14:22very compact this is another way to
  373. 14:24write it that's exactly the same thing
  374. 14:25if I blow it out for this particular
  375. 14:27problem I'm going to sum J is equal to 1
  376. 14:30up to 10 X 1 J so across population 1 I
  377. 14:36just increment the elements there let me
  378. 14:38get it all down here and I'll explain J
  379. 14:40is equal to 1 up to the sample size of
  380. 14:43population 2 X 2 J and then I'm going to
  381. 14:46add to that J is equal to 1 up to 10 of
  382. 14:50X 3 J all that's happening on the top is
  383. 14:54this is adding up all the elements from
  384. 14:56this population this is adding up all
  385. 14:58the elements from this population this
  386. 15:00is adding up all the elements from this
  387. 15:01population because in each case I'm
  388. 15:03running up from 1 up to the sample size
  389. 15:053 1 3 2 3 3 3 4 so on - 1 - 2 - 3
  390. 15:09to four so on 1 1 1 2 1 3 1 4 so on
  391. 15:12adding them all up on the bottom you
  392. 15:15know we already said that it was the sum
  393. 15:17of the total number of samples that you
  394. 15:18have so really on the bottom it's gonna
  395. 15:20be 10 plus 10 plus 10 which of course
  396. 15:24you know is the 30 so you're basically
  397. 15:26summing up all the samples divided by
  398. 15:28the total number of samples that's what
  399. 15:30the grand mean is so to be absolutely
  400. 15:32clear the grand mean is drumroll please
  401. 15:3618 plus 19 plus 20 plus 21 plus 22 plus
  402. 15:4423 plus 18 plus 19 plus 20 plus 21 okay
  403. 15:52all of that is what this is doing is
  404. 15:55just adding up all of those elements but
  405. 15:56to that I have a second summation right
  406. 15:59after it which is 18 plus 19 whoops plus
  407. 16:0320 plus 16 plus 20 plus 21 plus 20 plus
  408. 16:1118 plus 19 plus 17 plus 13 okay and then
  409. 16:17I add to that from the last part 21 plus
  410. 16:2022 plus 17 plus 18 plus 22 plus 19 plus
  411. 16:2821 plus 20 plus 18 plus 23 so I add all
  412. 16:34that stuff up and I divide by 30 now I
  413. 16:39agree I wrote a lot of stuff out there I
  414. 16:41probably didn't have to write all that
  415. 16:42but there's a reason why I'm writing it
  416. 16:43all out out there so what you're gonna
  417. 16:45end up getting there I think I do have
  418. 16:48enough room on this page is X double bar
  419. 16:52is going to be 584 that's what you get
  420. 16:55on the top divided by 30 so let's go and
  421. 16:59round over here with a little bit more
  422. 17:00room X double bar the grand mean in this
  423. 17:02case is nineteen point four six six six
  424. 17:08six seven how many decimals you choose
  425. 17:11to carry is up to you I'm carrying a lot
  426. 17:13because I want to make sure that I don't
  427. 17:14have any rounding errors as I go through
  428. 17:16here so this is the grand mean I'll
  429. 17:18circle it in red and ultimately I could
  430. 17:21have probably skipped about 90% of this
  431. 17:23hole
  432. 17:23lesson because ultimately the grand mean
  433. 17:25is just simply the average of all of
  434. 17:27this data together I could have just
  435. 17:29told you to do that but I want you to
  436. 17:30understand where the equation comes from
  437. 17:32and how to read them because we're going
  438. 17:34to be doing other equations for other
  439. 17:35calculations and you need to kind of get
  440. 17:37used to seeing summation symbols but
  441. 17:39ultimately that's what this one was
  442. 17:40doing this guy 19 four point four six
  443. 17:43six six six six seven is basically a
  444. 17:46representative average of the average
  445. 17:48age of marriage of females across all
  446. 17:50three of these states so later on when
  447. 17:52we calculate the sample mean of each guy
  448. 17:54separately and we're gonna have to
  449. 17:56compare it to a baseline this is going
  450. 17:58to be the baseline we're going to
  451. 17:59compare them to to figure out if any of
  452. 18:01them are deviating or varying with
  453. 18:03respect to any of the other guys so
  454. 18:05we're going to be comparing them to this
  455. 18:07grand mean essentially it's what we're
  456. 18:08going to be doing so make sure you
  457. 18:11understand this we're going to be
  458. 18:12calculating different parts of this
  459. 18:14problem as we go through it we're going
  460. 18:15to be taking getting these sample means
  461. 18:18comparing them to the grand mean that we
  462. 18:20just calculated and they're performing
  463. 18:21the rest of the of the ANOVA testing
  464. 18:24this was actually the easiest part to
  465. 18:26understand there are some other parts
  466. 18:27they're a little difficult to understand
  467. 18:29so I'm going to try to break it out
  468. 18:30slowly for you make sure you understand
  469. 18:31it I wrote all those numbers down just
  470. 18:33so there's no confusion about how I'm
  471. 18:35calculating it by hand then when you
  472. 18:37start using Excel you'll know exactly
  473. 18:39what it's doing there won't be no
  474. 18:40question marks for you so make sure you
  475. 18:42understand this follow me on to the next
  476. 18:43lesson and we'll take apart a nova to
  477. 18:45the next calculation so the next part of
  478. 18:47the puzzle time make sure you understand
  479. 18:49how to do it

About this transcript

This page contains the full transcript of 13 - ANOVA Basics - The Grand Mean by Math and Science, generated from the public captions YouTube serves with the video. The transcript has 3,710 words across 479 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.