{"id":360,"date":"2019-03-12T07:07:34","date_gmt":"2019-03-12T07:07:34","guid":{"rendered":"http:\/\/esp14.epgpbooks.inflibnet.ac.in\/?post_type=chapter&#038;p=360"},"modified":"2019-03-12T07:32:09","modified_gmt":"2019-03-12T07:32:09","slug":"f-distribution-and-tests-of-significance-based-on-f-distribution","status":"publish","type":"chapter","link":"https:\/\/ebooks.inflibnet.ac.in\/esp14\/chapter\/f-distribution-and-tests-of-significance-based-on-f-distribution\/","title":{"rendered":"F-distribution and tests of significance based on F distribution"},"content":{"raw":"<div>\r\n\r\n\u00a0 \u00a0 1.\u00a0<strong>Introduction<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">F-distribution is an important probability distribution which is used in a number of statistical tests of significance, most famous among which is ANOVA used to compare means of more than two groups. The main problem with multiple t-tests is that significance level applies to each comparison and as number of comparisons increases, chance of false positives greatly increases and test results would become unreliable. One way ANOVA tests whether means of all groups are equal. If ANOVA returns a P value &lt;0.05 (or any other threshold significance level that we decide as part of the experimental design), it would mean that at least one group mean is different from the rest. In most cases we are more interested to know which group means are significantly different from the rest rather than ANOVA P value itself. This can be tested by multiple comparisons posttests, famous one being Tukey\u2019s HSD. Tukey\u2019s HSD calculates 95% CI of the difference between each pairs of group means adjusted for multiple comparisons using a critical value from q-distribution. Tukey\u2019s HSD depends not merely of the two groups that the test analyses, but also all other groups and in fact every single value. Interpretation of Tukey\u2019s HSD Confidence Intervals are straight forward; if the range includes zero-the null hypothesis of no difference, then the difference in means of the pair of groups are significant. Other posttests include Dunnett\u2019s test which is highly useful to compare multiple groups with a group defined as a control group (each test group will be compared with control group, but there wont be any comparison between test groups), and Scheffe\u2019s test to compare \u2018contrasting\u2019 sets of group means (for example, groups {A, B and C} versus groups {D and E}).<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong>2.\u00a0<\/strong><strong>Learning Outcome:<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">a. To learn about the properties of F-distribution and statistical tests of significance based upon F distribution.<\/span><\/p>\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">b. To learn why uncorrected multiple comparisons like multiple t-tests to compare means of groups is problematic.<\/span><\/p>\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">c. To learn <\/span>principles<span style=\"text-align: initial;font-size: 1em\"> and assumptions of one-way ANOVA and how to compute it by hand<\/span><\/p>\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">d. To know more about other kinds of ANOVA including two-way ANOVA, Repeated measures ANOVA, Random Effects ANOVA, MANOVA and AMOVA<\/span><\/p>\r\n<p style=\"text-align: justify\">e.\u00a0<span style=\"text-align: initial;font-size: 1em\">To learn how to perform multiple comparison post hoc tests including Tukey\u2019s HSD and<b>\u00a0<\/b><\/span><span style=\"text-align: initial;font-size: 1em\">Bonferroni adjustment<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">3.<\/strong><span style=\"text-align: initial;font-size: 1em\">\u00a0<\/span><strong style=\"text-align: initial;font-size: 1em\">F Distribution<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">F-distribution (Fisher distribution) is a type of continuous probability distribution with exact probabilities of every F ratios under the assumption of <\/span>null<span style=\"text-align: initial;font-size: 1em\"> hypothesis. This enables us to calculate <\/span>P<span style=\"text-align: initial;font-size: 1em\"> value from a given F-ratio. We have seen how F-ratio is calculated in module 18 while testing for the assumption that two groups have <\/span>same<span style=\"text-align: initial;font-size: 1em\"> variance, prior to performing an unpaired t-test. This is calculated by the formula:<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">(s1\/s2)2<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">Where s1 and s2 are standard deviations of group 1 and group 2 respectively. More generally, each of these standard deviations is divided by the respective degrees of freedom of each group. Distribution of these F-ratios plotted as in a probability histogram is called F-distribution. Like lognormal distribution and Chi-Square distribution, F-distribution is right-skewed (with a long tail towards <\/span>right<span style=\"text-align: initial;font-size: 1em\">. The shape of F-distribution depends only on degrees of freedom (df) of <\/span>numerator<span style=\"text-align: initial;font-size: 1em\"> (DFn) and df of <\/span>denominator<span style=\"text-align: initial;font-size: 1em\"> (DFd).<\/span><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"aligncenter size-full wp-image-364\" src=\"http:\/\/esp14.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-211.png\" alt=\"\" width=\"509\" height=\"444\" \/>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">As one can see, when both of the df is small, <\/span>shape<span style=\"text-align: initial;font-size: 1em\"> is distinctly skewed to the right. With high df, distribution becomes bell-shaped, although it would still be skewed to the right.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">At each combination of <\/span>these two df<span style=\"text-align: initial;font-size: 1em\">, F-distribution can be calculated using <\/span>intricacies<span style=\"text-align: initial;font-size: 1em\"> of calculus. At each of these distributions at each combination of DFn and DFd, we can calculate the area under the significance level (the threshold P value, alpha) at the tails. These values can be presented in a tabular format, the so called F-distribution tables, where one can lookup a value called F-critical. One can compare this F-critical value found from the table and the F-ratio calculated from the data to make inferences about statistical significance. If F-critical at <\/span>significance<span style=\"text-align: initial;font-size: 1em\"> level of 0.05 is less than F-ratio, we can infer that P value must be less than 0.05 and can reject the null hypothesis.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">4. Tests of significance based on F distribution<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">F distribution is used to test whether two groups have equal variances, one of the assumptions of <\/span>unpaired<span style=\"text-align: initial;font-size: 1em\"> t-test, as we have seen in module 18. The most important use of F-distribution is for F-test, also known as ANOVA (Analysis of Variance), for comparing means of three or more groups, as discussed in this module. Keep in mind that ANOVA merely compares group means and informs us whether all groups have identical means or not. Means would not be identical if <\/span>mean<span style=\"text-align: initial;font-size: 1em\"> of one group is different from the rest. To know which group means are significantly different, we should do multiple comparisons posttest, as explained later in this module.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">5.<\/strong><span style=\"text-align: initial;font-size: 1em\">\u00a0<\/span><strong style=\"text-align: initial;font-size: 1em\">Problem with multiple t-tests<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">Consider three groups of patients (X, Y <\/span>and<span style=\"text-align: initial;font-size: 1em\"> Z), each group treated with <\/span>different<span style=\"text-align: initial;font-size: 1em\"> drug. An intuitive approach to compare group means would be performing multiple t-tests. For example, t-test to compare means of X and Y, another one between Y-Z, yet another one between X and Z. In any of these t-tests if P&lt;0.05 was obtained, we can conclude that group means as not identical. If all of these t-tests returns P&gt;0.05, we can conclude that group means are identical. Though sound appealing, multiple <\/span>comparison<span style=\"text-align: initial;font-size: 1em\"> like these should not be performed as it drastically increases random <\/span>error .In<span style=\"text-align: initial;font-size: 1em\"> one t-test at 0.05 significance level, we still expect to find 5% of \u201cfalse positives\u201d (a blood test tells you are HIV+ but in reality you are HIV-); i.e, t-test yielding a significant P value even if two group means are identical due to chance alone. With two or more t-tests, <\/span>proportion<span style=\"text-align: initial;font-size: 1em\"> of expected false positives are not merely 5% but well above this. Therefore multiple comparisons, like multiple t-tests, should never be used.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">6.<\/strong><span style=\"text-align: initial;font-size: 1em\">\u00a0<\/span><strong style=\"text-align: initial;font-size: 1em\">One-way ANOVA<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">One-way ANOVA, also called one-factor ANOVA compares means of three or more groups to find differences between means of these groups are statistically significant or not. ANOVA can also be used to compare means of two groups, but in this <\/span>case<span style=\"text-align: initial;font-size: 1em\"> ANOVA is indistinguishable from unpaired t-test explained previously and returns identical P values from <\/span>t-test<span style=\"text-align: initial;font-size: 1em\">. ANOVA was developed by population geneticist and founder of statistics, Ronald Fisher.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">7.<\/strong><span style=\"text-align: initial;font-size: 1em\">\u00a0<\/span><strong style=\"text-align: initial;font-size: 1em\">Assumptions for ANOVA<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">Like t-test, One-way ANOVA is based on a set of familiar assumptions:<\/span><\/p>\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">1.\u00a0\u00a0\u00a0\u00a0\u00a0 Random samples<\/span><\/p>\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">2.\u00a0\u00a0\u00a0\u00a0\u00a0 Independent measurements<\/span><\/p>\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">3.\u00a0\u00a0\u00a0\u00a0\u00a0 Accurate Data<\/span><\/p>\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">4.\u00a0\u00a0\u00a0\u00a0\u00a0 Data are sampled from populations that are approximately Gaussian<\/span><\/p>\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">5.\u00a0\u00a0\u00a0\u00a0\u00a0 Variances, or Standard deviations, of populations from which the samples came <\/span>from<span style=\"text-align: initial;font-size: 1em\"> are\u00a0<\/span><span style=\"text-align: initial;font-size: 1em\">identical<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">To test <\/span>4th<span style=\"text-align: initial;font-size: 1em\"> assumption, a formal statistical test like D\u2019Agostino Pearson Omnibus K2 test can be performed. In case the populations significantly deviate from Gaussian, <\/span>first<span style=\"text-align: initial;font-size: 1em\"> option should be trying to see any normalizations transforms the distributions to normal (normalization). For example, a number of biological distributions like enzyme kinetics and wherever the term \u2018half-maximal\u2019 is used are lognormal. It can be normalized by converting each <\/span>values<span style=\"text-align: initial;font-size: 1em\"> to <\/span>logarithm<span style=\"text-align: initial;font-size: 1em\">. If none of the normalizations works, then a non-parametric test like Kruskal-Wallis test, followed by Dunn\u2019s posttest should be preferred. For paired (matched) data that came from non-Gaussian, Friedman\u2019s test followed by Dunn\u2019s posttest should be preferred. A statistical package like Graphpad Prism can be used for both of these non-parametric tests. <\/span>5th<span style=\"text-align: initial;font-size: 1em\"> assumption of equal variance is not usually tested prior to ANOVA, as testing for this assumption is built-in ANOVA itself.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">8.\u00a0\u00a0 One-way ANOVA by hand<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">Let us consider an example, Increase in mouse colorectal tumor by four different heavy metals after feeding for a period of time.<\/span><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"size-full wp-image-365 alignleft\" src=\"http:\/\/esp14.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-212.png\" alt=\"\" width=\"495\" height=\"214\" \/>\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\nLet us first define our null hypothesis and alternative hypotheses:\r\n\r\nH0: All group means are equal\r\n\r\nHa: At least one group mean is different from the rest\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">As we can see, there are four groups (arranged by columns: U, Pb, As and Hg) and four technical replicate measurements (also called levels) for each group, arranged by rows (only three for As though). The numbers (elements, measurements) means <\/span>increase<span style=\"text-align: initial;font-size: 1em\"> in <\/span>tumour<span style=\"text-align: initial;font-size: 1em\">, so in <\/span>effect<span style=\"text-align: initial;font-size: 1em\"> there is only one factor (increase in <\/span>tumour<span style=\"text-align: initial;font-size: 1em\"> mass) across four groups. That is why the ANOVA is called one-way or one factor ANOVA. A factor is an independent treatment variable whose settings (values) are controlled and varied by the experimenter. The intensity setting of a factor is the level. Levels may be quantitative numbers or, in many cases, simply \"present\" or \"not present\" (\"0\" or \"1\"). Had there been another factor like <\/span>age<span style=\"text-align: initial;font-size: 1em\"> of mouse, then we would need to do two-factor ANOVA. Use one-way for comparing <\/span>1 factor<span style=\"text-align: initial;font-size: 1em\"> means of &gt;2 groups. For eg., average heights of neem trees at three villages; average ground water As levels at 4 districts in Gujarat.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"font-size: 1em\">For one-way ANOVA, the first step is to calculate mean, standard deviation and variance for each of these groups, as already computed in the table above. We can also compute overall (total) mean, Standard Deviation and variance of our entire Dataset (n=15). ANOVA starts with <\/span>calculation<span style=\"font-size: 1em\"> of \u201cSum of Squares,\u201d SS. SS is defined as the square of deviations of values from <\/span>sample<span style=\"font-size: 1em\"> mean (\u2211(x-x\u0304)2). Remember that we have used this while calculating standard deviation from raw data.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">First let us calculate <\/span><strong style=\"text-align: initial;font-size: 1em\">SS<\/strong><strong style=\"text-align: initial;font-size: 1em\">total<\/strong><span style=\"text-align: initial;font-size: 1em\">, Sum of Squares of difference between each of these 15 values and the overall mean (x\u0304, 77.79).<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">(60.8-77.79)2+ (67-77.79)2+\u2026\u2026\u2026..(90.3-77.79)2<\/span><\/p>\r\n\r\n<\/div>\r\n<div>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td><\/td>\r\n<td><\/td>\r\n<td>x-x\u0304<\/td>\r\n<td>(x-x\u0304)2<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>1<\/td>\r\n<td>60.8<\/td>\r\n<td>-16.99<\/td>\r\n<td>288.6601<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>2<\/td>\r\n<td>67<\/td>\r\n<td>-10.79<\/td>\r\n<td>116.4241<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>3<\/td>\r\n<td>54.6<\/td>\r\n<td>-23.19<\/td>\r\n<td>537.7761<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>4<\/td>\r\n<td>61.7<\/td>\r\n<td>-16.09<\/td>\r\n<td>258.8881<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>5<\/td>\r\n<td>78.7<\/td>\r\n<td>0.91<\/td>\r\n<td>0.8281<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>6<\/td>\r\n<td>77.7<\/td>\r\n<td>-0.09<\/td>\r\n<td>0.0081<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>7<\/td>\r\n<td>76.3<\/td>\r\n<td>-1.49<\/td>\r\n<td>2.2201<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>8<\/td>\r\n<td>79.8<\/td>\r\n<td>2.01<\/td>\r\n<td>4.0401<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>9<\/td>\r\n<td>92.6<\/td>\r\n<td>14.81<\/td>\r\n<td>219.3361<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>10<\/td>\r\n<td>84.1<\/td>\r\n<td>6.31<\/td>\r\n<td>39.8161<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\n<div>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td>11<\/td>\r\n<td>90.5<\/td>\r\n<td>12.71<\/td>\r\n<td>161.5441<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>12<\/td>\r\n<td>86.9<\/td>\r\n<td>9.11<\/td>\r\n<td>82.9921<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>13<\/td>\r\n<td>82.2<\/td>\r\n<td>4.41<\/td>\r\n<td>19.4481<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>14<\/td>\r\n<td>83.7<\/td>\r\n<td>5.91<\/td>\r\n<td>34.9281<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>15<\/td>\r\n<td>90.3<\/td>\r\n<td>12.51<\/td>\r\n<td>156.5001<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><\/td>\r\n<td><\/td>\r\n<td><strong>Total<\/strong><\/td>\r\n<td><strong>1923.41<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td><\/td>\r\n<td><\/td>\r\n<td>(<strong>SS<\/strong><strong>total<\/strong><strong>)<\/strong><\/td>\r\n<td><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Let us then consider <strong>SS<\/strong><strong>between<\/strong>, \u201cSum of Squares\u201d between group means. We have 4 groups, so as four group means. To compute <strong>SS<\/strong><strong>between<\/strong>, we have to subtract each group mean (x) with overall mean (x\u0304, 77.79), square this number, and multiplied with size of each of these groups (to weigh by sample size). Sum of all these values in our 5th column is <strong>SS<\/strong><strong>between<\/strong>.<\/p>\r\n<img class=\"size-full wp-image-366 alignleft\" src=\"http:\/\/esp14.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-213.png\" alt=\"\" width=\"532\" height=\"226\" \/>\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\nWe need one more Sum of Squares, i.e., within groups <strong>SS<\/strong><strong>within<\/strong>.\r\n\r\n&nbsp;\r\n\r\n<strong>SS<\/strong><strong>total<\/strong><strong> = SS<\/strong><strong>between<\/strong> and<strong> SS<\/strong><strong>within<\/strong> (derivation of which is omitted for the sake of simplicity)\r\n\r\n\u2234\u00a0\u00a0\u00a0\u00a0 <strong>SS<\/strong><strong>within<\/strong>=<strong> SS<\/strong><strong>total<\/strong> -<strong> SS<\/strong><strong>between<\/strong>\r\n\r\n=1923.41- 1761.128\r\n\r\n=162.282\r\n\r\nThis <strong>SS<\/strong><strong>within<\/strong> is also called \u2018residual sum of squares\u2019 or \u2018error sum of squares\u2019\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Next step is to calculate degree of freedom for each of these three Sum of Squares. For <strong>SS<\/strong><strong>between<\/strong>, we have four groups (K, total number of groups); as df=(n-1), df is 4-1= 3<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Degree of freedom for <strong>SS<\/strong><strong>within<\/strong>, is overall sample size (N) minus number of groups (K). Here overall sample size is 15 and number of groups is 4. Therefore, 15-4= 11<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Degree<span style=\"text-align: initial;font-size: 1em\"> of freedom for <\/span><strong style=\"text-align: initial;font-size: 1em\">SS<\/strong><strong style=\"text-align: initial;font-size: 1em\">total<\/strong><span style=\"text-align: initial;font-size: 1em\"> is N-1, 15-1= 11 (also, df for between groups + df for within groups = df for total)<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">Let us put all these numbers in the <\/span><strong style=\"text-align: initial;font-size: 1em\">summary table<\/strong><span style=\"text-align: initial;font-size: 1em\"> for one-way ANOVA:<\/span><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"size-full wp-image-367 alignleft\" src=\"http:\/\/esp14.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-214.png\" alt=\"\" width=\"714\" height=\"255\" \/>\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">The fourth column is Mean Square (MS, also called variance), which is Sum of Squares divided by df for each of these sources. Sum of MS to calculate total MS makes no sense, so this is not done. Please note that MSwithin is perhaps the most important statistic in an ANOVA test; it tells us about the variance due to error and is important for calculating \u2018margin of error\u2019 required for standardized error computations in posttests (like Tukey\u2019s) to know which means are significantly different, as explained later in this module. Finally, the fifth column is F-ratio, which is the ratio of these two MS values (MSbetween\/MSwithin).<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">As in the case of F-test to detect the equality of variance (assumption of homoscedasticity) we did prior to unpaired t-test, here too we should look up F table for critical F value. Df for F Ratio is expressed with DFn =3 and DFd=11. Critical F value corresponding to these two df at 0.05 significance level is:<\/p>\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-368\" src=\"http:\/\/esp14.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-215.png\" alt=\"\" width=\"1222\" height=\"703\" \/>\r\n\r\n<\/div>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">As table value (critical F, 3.587) is far less than our obtained F ratio (39.7917), we can conclude that P&lt;0.05, null hypothesis of equal means are rejected and concluded that at least one of the group mean is significantly different from the rest. There are many F tables corresponding to different significance levels (these are accessible at <\/span><a style=\"text-align: initial;font-size: 1em\" href=\"http:\/\/www.socr.ucla.edu\/applets.dir\/f_table.html\">http:\/\/www.socr.ucla.edu\/applets.dir\/f_table.html<\/a><span style=\"text-align: initial;font-size: 1em\">). Perhaps we are interested whether this F ratio is still higher than the critical F at lower significance levels, let us say 0.01 or 0.001. We can see that even at <\/span>significance<span style=\"text-align: initial;font-size: 1em\"> level of 0.001 level, F critical from <\/span>table<span style=\"text-align: initial;font-size: 1em\"> (11.56) is still less than our obtained F ratio, so our actual P value must be very less. One-way ANOVA for the above data done using excel returns a P value of 3.36E-06 (read this value as 3.36 x 10-6 i.e, 0.00000336). We can also use an online calculator like the one at <\/span><a style=\"text-align: initial;font-size: 1em\" href=\"http:\/\/stattrek.com\/online-calculator\/f-distribution.aspx\">http:\/\/stattrek.com\/online-calculator\/f-<\/a><a style=\"text-align: initial;font-size: 1em\" href=\"http:\/\/stattrek.com\/online-calculator\/f-distribution.aspx\">distribution.aspx <\/a><span style=\"text-align: initial;font-size: 1em\">(keep in mind that this calculator returns a cumulative probability; we have to subtract this value from 1 to get empirical probability). A low P value <\/span>indicate<span style=\"text-align: initial;font-size: 1em\"> that the group means are significantly different. It could be because one of the four means is different from the rest three, or two of the group means different from the rest two. It could also be due to all four means different from each other. None of these finer details are revealed by one-way ANOVA P value. To find those out we have to perform an appropriate multiple comparison posttest as explained below.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">9.<\/strong><span style=\"text-align: initial;font-size: 1em\">\u00a0<\/span><strong style=\"text-align: initial;font-size: 1em\">Other types of ANOVA<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">a)\u00a0<\/strong><strong style=\"text-align: initial;font-size: 1em\"><em>Repeated Measures ANOVA: <\/em><\/strong><span style=\"text-align: initial;font-size: 1em\">As a paired t-test is used to compare two groups with paired\u00a0<\/span><span style=\"text-align: initial;font-size: 1em\">(matched or dependant) measurements, we use \u2018Repeated Measures ANOVA for matched measurements for more than 2 groups (these are called matched sets or matched blocks). Whenever a value in any particular group is expected to be closer to a specific value in another group than to a random value from our whole experiment (because of the way we designed the experiment), we should use repeated measures ANOVA. To find those out which groups are significantly different, we have to perform an appropriate multiple comparison posttest as explained below, similar to normal one-way ANOVA.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">b)\u00a0<\/strong><strong style=\"text-align: initial;font-size: 1em\"><em>Two-way ANOVA and more: <\/em><\/strong><span style=\"text-align: initial;font-size: 1em\">Two-way (or two-factor) ANOVA is used for comparison involving two factors. As already explained, in addition to heavy metals, we might also be interested to know the effects of their age on <\/span>tumour<span style=\"text-align: initial;font-size: 1em\"> mass (so variable remains only one). Use two-way ANOVA for comparing <\/span>2 factor<span style=\"text-align: initial;font-size: 1em\"> means of &gt;2 groups. Examples are average heights of neem trees grown using 4 different fertilizers at three villages<\/span>; and<span style=\"text-align: initial;font-size: 1em\"> average As levels at shallow\/moderate\/deep wells in 4 districts. If we add yet another factor, like sex, we will have to perform 3 <\/span>factor<span style=\"text-align: initial;font-size: 1em\"> ANOVA and so on. In the case of One-way ANOVA, <\/span>null<span style=\"text-align: initial;font-size: 1em\"> hypothesis is that means of groups are <\/span>same<span style=\"text-align: initial;font-size: 1em\">. In case of Two-way ANOVA, null hypothesis takes up three possibilities: 1) There is no difference in the means of factor A across the groups, 2) There is no difference in means of factor B across the groups and 3) There is no interaction between factors A and B<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">c)\u00a0<\/strong><strong style=\"text-align: initial;font-size: 1em\"><em>Multivariate ANOVA (MANOVA): <\/em><\/strong><span style=\"text-align: initial;font-size: 1em\">Manova is used for comparing the effect of <\/span>single<span style=\"text-align: initial;font-size: 1em\"> categorical variable (exposure to tobacco) on the averages of two or more continuous variables (for eg: heart rate and blood pressure)<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">d)\u00a0<\/strong><strong style=\"text-align: initial;font-size: 1em\"><em>Random Effects ANOVA: <\/em><\/strong><span style=\"text-align: initial;font-size: 1em\">Normal ANOVA is technically called fixed-effects or Type-I ANOVA; in this <\/span>case<span style=\"text-align: initial;font-size: 1em\"> the test assess means of our selected groups only without any further extrapolations. In the case of Random Effects ANOVA, also called Type-II ANOVA, the test assumes that the groups that we selected are randomly selected representatives (our sample groups) of an infinite number of groups (our unknown population) and the test compares our sample group means to infer whether our infinite population group means are significantly different or not.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">e)\u00a0<\/strong><strong style=\"text-align: initial;font-size: 1em\"><em>Analysis of Molecular Variance (AMOVA): <\/em><\/strong><span style=\"text-align: initial;font-size: 1em\">This is a method to detect population differentiation (a large contiguous population fragmenting to small isolated populations using molecular markers. While AMOVA had been developed in lines of ANOVA, two methods are quite different.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">10. Multiple Comparisons Posttests<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">One-way ANOVA informs us whether the overall differences in the means of our groups are significant or not. As explained already, a low P value in one-way ANOVA could be due to the fact that only one of the mean is significantly deferring from the rest, or groups of means differing from other groups of <\/span>mean<span style=\"text-align: initial;font-size: 1em\"> (the so called \u2018contrast\u2019), or every <\/span>mean<span style=\"text-align: initial;font-size: 1em\"> differing from every other means significantly. In most of the situations, ANOVA P value is not what we want to know; we would be more interested to know which means are significantly different. To find that out, we should perform a multiple comparisons posttest (also called Post Hoc test).<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">Multiple <\/span>t-test<span style=\"text-align: initial;font-size: 1em\"> is one way to compare pairs of means after ANOVA; however, as already explained this should not be used as expected false positives (Type I error) would be far higher than 5% level. This is because <\/span>significance<span style=\"text-align: initial;font-size: 1em\"> level (for example, 0.05) is for each comparison involved, not for the entire family of comparisons. Between four groups, 6 comparisons are possible (no. of possible comparisons can be calculated by combination formula, nCr= n! \/(n-r)!.r!), so after performing these comparisons, our significance level would be far higher than 0.05 ( that would mean a number of false positives in our results). In case multiple <\/span>t-test<span style=\"text-align: initial;font-size: 1em\"> is used, each individual P value should be multiplied with <\/span>total<span style=\"text-align: initial;font-size: 1em\"> number of such comparisons. For example, an unadjusted P value of 0.01 is obtained for one pair of comparison in a group of 4. As <\/span>total<span style=\"text-align: initial;font-size: 1em\"> number of possible comparisons in a group of four is 6, the unadjusted P value <\/span>need<span style=\"text-align: initial;font-size: 1em\"> to be multiplied with 6 to get the corrected P value. 0.01*6 = 0.06. This correction is known as <\/span><strong style=\"text-align: initial;font-size: 1em\">Bonferroni adjustment<\/strong><span style=\"text-align: initial;font-size: 1em\">. Bonferroni adjustment is fine in case you want to compare a specific pair after the ANOVA provided that this pair is clearly specified as part of the experimental design. As already mentioned, after seeing the data and choosing the highest and lowest means, you would be effectively comparing not merely <\/span>this two<span style=\"text-align: initial;font-size: 1em\"> means but all six means in a group of four.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">In case we would like to compare all combinations of means, which is by far most of us would like to do after ANOVA, the best option is Tukey\u2019s Honestly Signified Differences (Tukey\u2019s HSD). Bonferroni\u00a0<\/span>test<span style=\"text-align: initial;font-size: 1em\"> should not be used for this purpose, as the statistical power for which is far less than Tukey\u2019s HSD. As already explained, Tukey\u2019s HSD depends on a key output of ANOVA, MSwithin. As in Confidence Interval of mean explained in module 16, or CI of differences between means explained in module 18, Tukey\u2019s test returns CIs for all pairwise combinations of the differences between group means. For four groups, there would be six pairwise comparisons (<\/span>difference<span style=\"text-align: initial;font-size: 1em\"> between means) and these would be expressed in Confidence Intervals at our selected Confidence Level (for example 95%).<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">The formula for Tukey\u2019s HSD is:<\/span><\/p>\r\n\r\n<div>\r\n\r\n<img class=\"size-full wp-image-369 alignleft\" src=\"http:\/\/esp14.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-216.png\" alt=\"\" width=\"270\" height=\"62\" \/>\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Where x\u0304i and x\u0304j are means of groups i and j. q is a critical value from q distribution, MSw is MSwithin from ANOVA output, and ni and nj are sizes of groups I and j respectively. The above equation is very similar to other equations of Confidence Intervals; difference between sample means \u00b1 w (the width of CI). The width of CI is calculated from standardized (instead of \u2018standard\u2019) error (the square-root term in above equation) multiplied by a critical value from q distribution (instead of t*). The critical value q depends upon three things; the chosen level of significance (\u03b1), total number of groups (r) and degree of freedom for MSwithin (dfw). q Distribution is studentized range for \u03b1. Also note that though we are only comparing means of two of our groups (i and j), all groups and every single value in our dataset is important, as the value MSwithin depends upon the whole dataset. This is needed to account for the perils of multiple comparisons as already explained.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Let us go back to our original example. To compare means of Pb vs U (Lead vs Uranium, our first two groups), we need to first calculate the difference between their respective group means. Mean for Pb is 78.13 and mean for U is 61.03, so difference is 17.1.<\/p>\r\n&nbsp;\r\n\r\nLet us first define our null hypothesis and alternative hypotheses:\r\n\r\nH0: Difference between two means is zero\r\n\r\nHa: Difference between two means is not zero\r\n\r\n&nbsp;\r\n\r\n<span style=\"text-align: initial;font-size: 1em\">Next step is to calculate the width of 95% CI (so \u03b1=0.05). To calculate it we need the following information: MSwithin, dfw, nPb, nU, \u03b1, r and q. MS<sub>within<\/sub>=14.753, df<sub>w<\/sub>=11, nPb=4, nU=4. \u03b1=0.05, r=4 and dfw=11. Plugging the values in:<\/span>\r\n\r\n&nbsp;\r\n\r\n<span style=\"text-align: initial;font-size: 1em\">w=[\u221a(14.753\/2)x (1\/4+1\/4)] x q (\u03b1=0.05, r=4 and df<\/span><sub style=\"text-align: initial\">w<\/sub><span style=\"text-align: initial;font-size: 1em\">=11)<\/span>\r\n\r\n&nbsp;\r\n\r\n<span style=\"text-align: initial;font-size: 1em\">q- <\/span>table<span style=\"text-align: initial;font-size: 1em\"> is not normally provided in <\/span>statistics<span style=\"text-align: initial;font-size: 1em\"> tests of tables, as it is hard to calculate. One version of <\/span>online<span style=\"text-align: initial;font-size: 1em\"> calculator can be found at <\/span><a style=\"text-align: initial;font-size: 1em\" href=\"http:\/\/www.vassarstats.net\/tabs.html#q\">http:\/\/www.vassarstats.net\/tabs.html#q<\/a>\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"size-full wp-image-370 alignleft\" src=\"http:\/\/esp14.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-217.png\" alt=\"\" width=\"370\" height=\"115\" \/>\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\nAs seen, Q at \u03b1=0.05 is 4.27. Plugging this in the above equation:\r\n\r\n=[\u221a(14.753\/2)x (1\/4+1\/4)] x 4.27\r\n\r\n=\u221a (7.365x 0.5) x 4.27\r\n\r\n=1.919 x 4.27\r\n\r\n=8.2\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">The above value is the width, it extends both sides of the difference between means (17.1). So, 95% Confidence Interval for this difference is:<\/p>\r\n(17.1 \u2013 8.2) to (17.1 + 8.2)\r\n\r\n8.9 to 25.3\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Does this range include our null hypothesis of no difference in means, i.e., zero? No, it doesn\u2019t. Therefore, P&lt;0.05 and the difference is statistically significant.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">We can perform the same pairwise computation of 95% CI for all six combinations of group means as well to find how many of these combinations returns statistically significant differences. Confidence Interval of difference between means tells us whether P value is significant at our chosen significance level. Some softwares (like GraphPad prism) also returns an exact P value, called \u2018multiplicity-adjusted P value\u2019 (that had been adjusted for multiple comparisons).<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"font-size: 1em;text-align: initial\">It is possible that the one-way ANOVA returns a P&lt;0.05 yet none of the pairs of mean differences are significant. It is also possible that ANOVA returns P&gt;0.05, yet some of the difference between group means are significant.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">Other post hoc multiple comparison methods other than Bonferroni\u2019s test and Tukey\u2019s HSD) include Dunnett\u2019s test which is highly useful to compare multiple groups with a group defined as a control group (each test group will be compared with <\/span>control<span style=\"text-align: initial;font-size: 1em\"> group, but <\/span>there wont<span style=\"text-align: initial;font-size: 1em\"> be any comparison between test groups), Scheffe\u2019s test to compare \u2018contrasting\u2019 sets of group means (for example, groups {A, B and C} versus groups {D and E}) and Holm\u2019s test.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">An online calculator for ANOVA with Tukey\u2019s HSD is available at <\/span><a style=\"text-align: initial;font-size: 1em\" href=\"http:\/\/astatsa.com\/OneWay_Anova_with_TukeyHSD\/\">http:\/\/astatsa.com\/OneWay_Anova_with_TukeyHSD\/<\/a><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">The results of Tukey\u2019s HSD for our example are as follows:<\/span><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"size-full wp-image-371 alignleft\" src=\"http:\/\/esp14.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-218.png\" alt=\"\" width=\"520\" height=\"405\" \/>\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">This calculator also include results of other multiple comparison tests, including Bonferroni\u2019s test, Scheff\u00e9 test, and Holm\u2019s test.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Also note that even though ANOVA returns and overall P value &gt;0.05 (and differences not statistically significant), results of multiple comparisons like Tukey\u2019s HSD, Bonferroni test and Dunn\u2019s test are still valid.<\/p>\r\n&nbsp;\r\n\r\n<strong>11. Summary<\/strong>\r\n\r\n<\/div>\r\n<ol>\r\n \t<li style=\"text-align: justify\">For One way ANOVA, we first have to calculate SStotal, SSbetween and SSwithin. With degrees of freedom for all of these Sum of Squares, we can calculate Mean Square by dividing Sum of Squares with df. Finally we can calculate F-ratio by MSbetween\/MSwithin. From two df, number of groups and F-ratio, finally we can calculate P value. One way ANOVA can easily be calculated using a software or many web-based calculators.<\/li>\r\n \t<li style=\"text-align: justify\">For matched or paired data, the test analogous to matched t-test for groups more than 2 is repeated measures ANOVA<\/li>\r\n \t<li style=\"text-align: justify\">Two-way ANOVA determines how a response is affected by two variables, and any association between the variables.<\/li>\r\n \t<li style=\"text-align: justify\">A common mistake is analysis<span style=\"text-align: initial;font-size: 1em\"> of ANOVA groups by multiple t-tests, but this is highly problematic as <\/span>chance<span style=\"text-align: initial;font-size: 1em\"> of false positives greatly increases this way.<\/span><\/li>\r\n \t<li style=\"text-align: justify\">A popular and powerful multiple comparison post hoc test<span style=\"text-align: initial;font-size: 1em\"> is Tukey\u2019s HSD that calculate\u00a0<\/span>95% CI of differences between means of pairs of groups. In most cases, results of Post hoc tests like Tukey\u2019s is a lot more informative than ANOVA itself, but Tukey\u2019s test is dependent on results of ANOVA.<\/li>\r\n \t<li style=\"text-align: justify\">Even though ANOVA returns and overall P value &gt;0.05 (and differences not statistically significant), results of multiple comparisons like Tukey\u2019s HSD, Bonferroni test and Dunn\u2019s test are still valid.<\/li>\r\n<\/ol>\r\n<strong>\u00a0 \u00a0 Quadrant-III: Learn More\/ Web Resources \/ Supporting Materials:<\/strong>\r\n<ol>\r\n \t<li>F tables arranged by significance levels <a href=\"http:\/\/www.socr.ucla.edu\/applets.dir\/f_table.html\">http:\/\/www.socr.ucla.edu\/applets.dir\/f_table.html<\/a><\/li>\r\n<\/ol>\r\n<ol start=\"2\">\r\n \t<li>One-way ANOVA online calculator <a href=\"http:\/\/stattrek.com\/online-calculator\/f-distribution.aspx\">http:\/\/stattrek.com\/online-calculator\/f-distribution.aspx<\/a><\/li>\r\n<\/ol>\r\n<ol start=\"3\">\r\n \t<li>Online calculator to find q-value from df and k (number of groups) <a href=\"http:\/\/www.vassarstats.net\/tabs.html#q\">http:\/\/www.vassarstats.net\/tabs.html#q<\/a><\/li>\r\n<\/ol>\r\n<ol start=\"4\">\r\n \t<li>online calculator for ANOVA with Tukey\u2019s HSD is available at <a href=\"http:\/\/astatsa.com\/OneWay_Anova_with_TukeyHSD\/\">http:\/\/astatsa.com\/OneWay_Anova_with_TukeyHSD\/<\/a><\/li>\r\n<\/ol>\r\n<ol start=\"5\">\r\n \t<li>Online calculator to calculate exact P from F ratio <a href=\"https:\/\/www.graphpad.com\/quickcalcs\/pValue1\/\">https:\/\/www.graphpad.com\/quickcalcs\/pValue1\/<\/a><\/li>\r\n<\/ol>","rendered":"<div>\n<p>\u00a0 \u00a0 1.\u00a0<strong>Introduction<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">F-distribution is an important probability distribution which is used in a number of statistical tests of significance, most famous among which is ANOVA used to compare means of more than two groups. The main problem with multiple t-tests is that significance level applies to each comparison and as number of comparisons increases, chance of false positives greatly increases and test results would become unreliable. One way ANOVA tests whether means of all groups are equal. If ANOVA returns a P value &lt;0.05 (or any other threshold significance level that we decide as part of the experimental design), it would mean that at least one group mean is different from the rest. In most cases we are more interested to know which group means are significantly different from the rest rather than ANOVA P value itself. This can be tested by multiple comparisons posttests, famous one being Tukey\u2019s HSD. Tukey\u2019s HSD calculates 95% CI of the difference between each pairs of group means adjusted for multiple comparisons using a critical value from q-distribution. Tukey\u2019s HSD depends not merely of the two groups that the test analyses, but also all other groups and in fact every single value. Interpretation of Tukey\u2019s HSD Confidence Intervals are straight forward; if the range includes zero-the null hypothesis of no difference, then the difference in means of the pair of groups are significant. Other posttests include Dunnett\u2019s test which is highly useful to compare multiple groups with a group defined as a control group (each test group will be compared with control group, but there wont be any comparison between test groups), and Scheffe\u2019s test to compare \u2018contrasting\u2019 sets of group means (for example, groups {A, B and C} versus groups {D and E}).<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong>2.\u00a0<\/strong><strong>Learning Outcome:<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">a. To learn about the properties of F-distribution and statistical tests of significance based upon F distribution.<\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">b. To learn why uncorrected multiple comparisons like multiple t-tests to compare means of groups is problematic.<\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">c. To learn <\/span>principles<span style=\"text-align: initial;font-size: 1em\"> and assumptions of one-way ANOVA and how to compute it by hand<\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">d. To know more about other kinds of ANOVA including two-way ANOVA, Repeated measures ANOVA, Random Effects ANOVA, MANOVA and AMOVA<\/span><\/p>\n<p style=\"text-align: justify\">e.\u00a0<span style=\"text-align: initial;font-size: 1em\">To learn how to perform multiple comparison post hoc tests including Tukey\u2019s HSD and<b>\u00a0<\/b><\/span><span style=\"text-align: initial;font-size: 1em\">Bonferroni adjustment<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">3.<\/strong><span style=\"text-align: initial;font-size: 1em\">\u00a0<\/span><strong style=\"text-align: initial;font-size: 1em\">F Distribution<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">F-distribution (Fisher distribution) is a type of continuous probability distribution with exact probabilities of every F ratios under the assumption of <\/span>null<span style=\"text-align: initial;font-size: 1em\"> hypothesis. This enables us to calculate <\/span>P<span style=\"text-align: initial;font-size: 1em\"> value from a given F-ratio. We have seen how F-ratio is calculated in module 18 while testing for the assumption that two groups have <\/span>same<span style=\"text-align: initial;font-size: 1em\"> variance, prior to performing an unpaired t-test. This is calculated by the formula:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">(s1\/s2)2<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">Where s1 and s2 are standard deviations of group 1 and group 2 respectively. More generally, each of these standard deviations is divided by the respective degrees of freedom of each group. Distribution of these F-ratios plotted as in a probability histogram is called F-distribution. Like lognormal distribution and Chi-Square distribution, F-distribution is right-skewed (with a long tail towards <\/span>right<span style=\"text-align: initial;font-size: 1em\">. The shape of F-distribution depends only on degrees of freedom (df) of <\/span>numerator<span style=\"text-align: initial;font-size: 1em\"> (DFn) and df of <\/span>denominator<span style=\"text-align: initial;font-size: 1em\"> (DFd).<\/span><\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-364\" src=\"http:\/\/esp14.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-211.png\" alt=\"\" width=\"509\" height=\"444\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-211.png 509w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-211-300x262.png 300w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-211-65x57.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-211-225x196.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-211-350x305.png 350w\" sizes=\"auto, (max-width: 509px) 100vw, 509px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">As one can see, when both of the df is small, <\/span>shape<span style=\"text-align: initial;font-size: 1em\"> is distinctly skewed to the right. With high df, distribution becomes bell-shaped, although it would still be skewed to the right.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">At each combination of <\/span>these two df<span style=\"text-align: initial;font-size: 1em\">, F-distribution can be calculated using <\/span>intricacies<span style=\"text-align: initial;font-size: 1em\"> of calculus. At each of these distributions at each combination of DFn and DFd, we can calculate the area under the significance level (the threshold P value, alpha) at the tails. These values can be presented in a tabular format, the so called F-distribution tables, where one can lookup a value called F-critical. One can compare this F-critical value found from the table and the F-ratio calculated from the data to make inferences about statistical significance. If F-critical at <\/span>significance<span style=\"text-align: initial;font-size: 1em\"> level of 0.05 is less than F-ratio, we can infer that P value must be less than 0.05 and can reject the null hypothesis.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">4. Tests of significance based on F distribution<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">F distribution is used to test whether two groups have equal variances, one of the assumptions of <\/span>unpaired<span style=\"text-align: initial;font-size: 1em\"> t-test, as we have seen in module 18. The most important use of F-distribution is for F-test, also known as ANOVA (Analysis of Variance), for comparing means of three or more groups, as discussed in this module. Keep in mind that ANOVA merely compares group means and informs us whether all groups have identical means or not. Means would not be identical if <\/span>mean<span style=\"text-align: initial;font-size: 1em\"> of one group is different from the rest. To know which group means are significantly different, we should do multiple comparisons posttest, as explained later in this module.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">5.<\/strong><span style=\"text-align: initial;font-size: 1em\">\u00a0<\/span><strong style=\"text-align: initial;font-size: 1em\">Problem with multiple t-tests<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">Consider three groups of patients (X, Y <\/span>and<span style=\"text-align: initial;font-size: 1em\"> Z), each group treated with <\/span>different<span style=\"text-align: initial;font-size: 1em\"> drug. An intuitive approach to compare group means would be performing multiple t-tests. For example, t-test to compare means of X and Y, another one between Y-Z, yet another one between X and Z. In any of these t-tests if P&lt;0.05 was obtained, we can conclude that group means as not identical. If all of these t-tests returns P&gt;0.05, we can conclude that group means are identical. Though sound appealing, multiple <\/span>comparison<span style=\"text-align: initial;font-size: 1em\"> like these should not be performed as it drastically increases random <\/span>error .In<span style=\"text-align: initial;font-size: 1em\"> one t-test at 0.05 significance level, we still expect to find 5% of \u201cfalse positives\u201d (a blood test tells you are HIV+ but in reality you are HIV-); i.e, t-test yielding a significant P value even if two group means are identical due to chance alone. With two or more t-tests, <\/span>proportion<span style=\"text-align: initial;font-size: 1em\"> of expected false positives are not merely 5% but well above this. Therefore multiple comparisons, like multiple t-tests, should never be used.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">6.<\/strong><span style=\"text-align: initial;font-size: 1em\">\u00a0<\/span><strong style=\"text-align: initial;font-size: 1em\">One-way ANOVA<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">One-way ANOVA, also called one-factor ANOVA compares means of three or more groups to find differences between means of these groups are statistically significant or not. ANOVA can also be used to compare means of two groups, but in this <\/span>case<span style=\"text-align: initial;font-size: 1em\"> ANOVA is indistinguishable from unpaired t-test explained previously and returns identical P values from <\/span>t-test<span style=\"text-align: initial;font-size: 1em\">. ANOVA was developed by population geneticist and founder of statistics, Ronald Fisher.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">7.<\/strong><span style=\"text-align: initial;font-size: 1em\">\u00a0<\/span><strong style=\"text-align: initial;font-size: 1em\">Assumptions for ANOVA<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">Like t-test, One-way ANOVA is based on a set of familiar assumptions:<\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">1.\u00a0\u00a0\u00a0\u00a0\u00a0 Random samples<\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">2.\u00a0\u00a0\u00a0\u00a0\u00a0 Independent measurements<\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">3.\u00a0\u00a0\u00a0\u00a0\u00a0 Accurate Data<\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">4.\u00a0\u00a0\u00a0\u00a0\u00a0 Data are sampled from populations that are approximately Gaussian<\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">5.\u00a0\u00a0\u00a0\u00a0\u00a0 Variances, or Standard deviations, of populations from which the samples came <\/span>from<span style=\"text-align: initial;font-size: 1em\"> are\u00a0<\/span><span style=\"text-align: initial;font-size: 1em\">identical<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">To test <\/span>4th<span style=\"text-align: initial;font-size: 1em\"> assumption, a formal statistical test like D\u2019Agostino Pearson Omnibus K2 test can be performed. In case the populations significantly deviate from Gaussian, <\/span>first<span style=\"text-align: initial;font-size: 1em\"> option should be trying to see any normalizations transforms the distributions to normal (normalization). For example, a number of biological distributions like enzyme kinetics and wherever the term \u2018half-maximal\u2019 is used are lognormal. It can be normalized by converting each <\/span>values<span style=\"text-align: initial;font-size: 1em\"> to <\/span>logarithm<span style=\"text-align: initial;font-size: 1em\">. If none of the normalizations works, then a non-parametric test like Kruskal-Wallis test, followed by Dunn\u2019s posttest should be preferred. For paired (matched) data that came from non-Gaussian, Friedman\u2019s test followed by Dunn\u2019s posttest should be preferred. A statistical package like Graphpad Prism can be used for both of these non-parametric tests. <\/span>5th<span style=\"text-align: initial;font-size: 1em\"> assumption of equal variance is not usually tested prior to ANOVA, as testing for this assumption is built-in ANOVA itself.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">8.\u00a0\u00a0 One-way ANOVA by hand<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">Let us consider an example, Increase in mouse colorectal tumor by four different heavy metals after feeding for a period of time.<\/span><\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-365 alignleft\" src=\"http:\/\/esp14.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-212.png\" alt=\"\" width=\"495\" height=\"214\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-212.png 495w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-212-300x130.png 300w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-212-65x28.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-212-225x97.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-212-350x151.png 350w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Let us first define our null hypothesis and alternative hypotheses:<\/p>\n<p>H0: All group means are equal<\/p>\n<p>Ha: At least one group mean is different from the rest<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">As we can see, there are four groups (arranged by columns: U, Pb, As and Hg) and four technical replicate measurements (also called levels) for each group, arranged by rows (only three for As though). The numbers (elements, measurements) means <\/span>increase<span style=\"text-align: initial;font-size: 1em\"> in <\/span>tumour<span style=\"text-align: initial;font-size: 1em\">, so in <\/span>effect<span style=\"text-align: initial;font-size: 1em\"> there is only one factor (increase in <\/span>tumour<span style=\"text-align: initial;font-size: 1em\"> mass) across four groups. That is why the ANOVA is called one-way or one factor ANOVA. A factor is an independent treatment variable whose settings (values) are controlled and varied by the experimenter. The intensity setting of a factor is the level. Levels may be quantitative numbers or, in many cases, simply &#8220;present&#8221; or &#8220;not present&#8221; (&#8220;0&#8221; or &#8220;1&#8221;). Had there been another factor like <\/span>age<span style=\"text-align: initial;font-size: 1em\"> of mouse, then we would need to do two-factor ANOVA. Use one-way for comparing <\/span>1 factor<span style=\"text-align: initial;font-size: 1em\"> means of &gt;2 groups. For eg., average heights of neem trees at three villages; average ground water As levels at 4 districts in Gujarat.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"font-size: 1em\">For one-way ANOVA, the first step is to calculate mean, standard deviation and variance for each of these groups, as already computed in the table above. We can also compute overall (total) mean, Standard Deviation and variance of our entire Dataset (n=15). ANOVA starts with <\/span>calculation<span style=\"font-size: 1em\"> of \u201cSum of Squares,\u201d SS. SS is defined as the square of deviations of values from <\/span>sample<span style=\"font-size: 1em\"> mean (\u2211(x-x\u0304)2). Remember that we have used this while calculating standard deviation from raw data.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">First let us calculate <\/span><strong style=\"text-align: initial;font-size: 1em\">SS<\/strong><strong style=\"text-align: initial;font-size: 1em\">total<\/strong><span style=\"text-align: initial;font-size: 1em\">, Sum of Squares of difference between each of these 15 values and the overall mean (x\u0304, 77.79).<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">(60.8-77.79)2+ (67-77.79)2+\u2026\u2026\u2026..(90.3-77.79)2<\/span><\/p>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>x-x\u0304<\/td>\n<td>(x-x\u0304)2<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>60.8<\/td>\n<td>-16.99<\/td>\n<td>288.6601<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>67<\/td>\n<td>-10.79<\/td>\n<td>116.4241<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>54.6<\/td>\n<td>-23.19<\/td>\n<td>537.7761<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>61.7<\/td>\n<td>-16.09<\/td>\n<td>258.8881<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>78.7<\/td>\n<td>0.91<\/td>\n<td>0.8281<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>77.7<\/td>\n<td>-0.09<\/td>\n<td>0.0081<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>76.3<\/td>\n<td>-1.49<\/td>\n<td>2.2201<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>79.8<\/td>\n<td>2.01<\/td>\n<td>4.0401<\/td>\n<\/tr>\n<tr>\n<td>9<\/td>\n<td>92.6<\/td>\n<td>14.81<\/td>\n<td>219.3361<\/td>\n<\/tr>\n<tr>\n<td>10<\/td>\n<td>84.1<\/td>\n<td>6.31<\/td>\n<td>39.8161<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td>11<\/td>\n<td>90.5<\/td>\n<td>12.71<\/td>\n<td>161.5441<\/td>\n<\/tr>\n<tr>\n<td>12<\/td>\n<td>86.9<\/td>\n<td>9.11<\/td>\n<td>82.9921<\/td>\n<\/tr>\n<tr>\n<td>13<\/td>\n<td>82.2<\/td>\n<td>4.41<\/td>\n<td>19.4481<\/td>\n<\/tr>\n<tr>\n<td>14<\/td>\n<td>83.7<\/td>\n<td>5.91<\/td>\n<td>34.9281<\/td>\n<\/tr>\n<tr>\n<td>15<\/td>\n<td>90.3<\/td>\n<td>12.51<\/td>\n<td>156.5001<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><strong>Total<\/strong><\/td>\n<td><strong>1923.41<\/strong><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>(<strong>SS<\/strong><strong>total<\/strong><strong>)<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Let us then consider <strong>SS<\/strong><strong>between<\/strong>, \u201cSum of Squares\u201d between group means. We have 4 groups, so as four group means. To compute <strong>SS<\/strong><strong>between<\/strong>, we have to subtract each group mean (x) with overall mean (x\u0304, 77.79), square this number, and multiplied with size of each of these groups (to weigh by sample size). Sum of all these values in our 5th column is <strong>SS<\/strong><strong>between<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-366 alignleft\" src=\"http:\/\/esp14.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-213.png\" alt=\"\" width=\"532\" height=\"226\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-213.png 532w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-213-300x127.png 300w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-213-65x28.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-213-225x96.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-213-350x149.png 350w\" sizes=\"auto, (max-width: 532px) 100vw, 532px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>We need one more Sum of Squares, i.e., within groups <strong>SS<\/strong><strong>within<\/strong>.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>SS<\/strong><strong>total<\/strong><strong> = SS<\/strong><strong>between<\/strong> and<strong> SS<\/strong><strong>within<\/strong> (derivation of which is omitted for the sake of simplicity)<\/p>\n<p>\u2234\u00a0\u00a0\u00a0\u00a0 <strong>SS<\/strong><strong>within<\/strong>=<strong> SS<\/strong><strong>total<\/strong> &#8211;<strong> SS<\/strong><strong>between<\/strong><\/p>\n<p>=1923.41- 1761.128<\/p>\n<p>=162.282<\/p>\n<p>This <strong>SS<\/strong><strong>within<\/strong> is also called \u2018residual sum of squares\u2019 or \u2018error sum of squares\u2019<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Next step is to calculate degree of freedom for each of these three Sum of Squares. For <strong>SS<\/strong><strong>between<\/strong>, we have four groups (K, total number of groups); as df=(n-1), df is 4-1= 3<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Degree of freedom for <strong>SS<\/strong><strong>within<\/strong>, is overall sample size (N) minus number of groups (K). Here overall sample size is 15 and number of groups is 4. Therefore, 15-4= 11<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Degree<span style=\"text-align: initial;font-size: 1em\"> of freedom for <\/span><strong style=\"text-align: initial;font-size: 1em\">SS<\/strong><strong style=\"text-align: initial;font-size: 1em\">total<\/strong><span style=\"text-align: initial;font-size: 1em\"> is N-1, 15-1= 11 (also, df for between groups + df for within groups = df for total)<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">Let us put all these numbers in the <\/span><strong style=\"text-align: initial;font-size: 1em\">summary table<\/strong><span style=\"text-align: initial;font-size: 1em\"> for one-way ANOVA:<\/span><\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-367 alignleft\" src=\"http:\/\/esp14.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-214.png\" alt=\"\" width=\"714\" height=\"255\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-214.png 714w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-214-300x107.png 300w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-214-65x23.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-214-225x80.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-214-350x125.png 350w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The fourth column is Mean Square (MS, also called variance), which is Sum of Squares divided by df for each of these sources. Sum of MS to calculate total MS makes no sense, so this is not done. Please note that MSwithin is perhaps the most important statistic in an ANOVA test; it tells us about the variance due to error and is important for calculating \u2018margin of error\u2019 required for standardized error computations in posttests (like Tukey\u2019s) to know which means are significantly different, as explained later in this module. Finally, the fifth column is F-ratio, which is the ratio of these two MS values (MSbetween\/MSwithin).<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">As in the case of F-test to detect the equality of variance (assumption of homoscedasticity) we did prior to unpaired t-test, here too we should look up F table for critical F value. Df for F Ratio is expressed with DFn =3 and DFd=11. Critical F value corresponding to these two df at 0.05 significance level is:<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-368\" src=\"http:\/\/esp14.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-215.png\" alt=\"\" width=\"1222\" height=\"703\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-215.png 1222w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-215-300x173.png 300w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-215-768x442.png 768w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-215-1024x589.png 1024w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-215-65x37.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-215-225x129.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-215-350x201.png 350w\" sizes=\"auto, (max-width: 1222px) 100vw, 1222px\" \/><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">As table value (critical F, 3.587) is far less than our obtained F ratio (39.7917), we can conclude that P&lt;0.05, null hypothesis of equal means are rejected and concluded that at least one of the group mean is significantly different from the rest. There are many F tables corresponding to different significance levels (these are accessible at <\/span><a style=\"text-align: initial;font-size: 1em\" href=\"http:\/\/www.socr.ucla.edu\/applets.dir\/f_table.html\">http:\/\/www.socr.ucla.edu\/applets.dir\/f_table.html<\/a><span style=\"text-align: initial;font-size: 1em\">). Perhaps we are interested whether this F ratio is still higher than the critical F at lower significance levels, let us say 0.01 or 0.001. We can see that even at <\/span>significance<span style=\"text-align: initial;font-size: 1em\"> level of 0.001 level, F critical from <\/span>table<span style=\"text-align: initial;font-size: 1em\"> (11.56) is still less than our obtained F ratio, so our actual P value must be very less. One-way ANOVA for the above data done using excel returns a P value of 3.36E-06 (read this value as 3.36 x 10-6 i.e, 0.00000336). We can also use an online calculator like the one at <\/span><a style=\"text-align: initial;font-size: 1em\" href=\"http:\/\/stattrek.com\/online-calculator\/f-distribution.aspx\">http:\/\/stattrek.com\/online-calculator\/f-<\/a><a style=\"text-align: initial;font-size: 1em\" href=\"http:\/\/stattrek.com\/online-calculator\/f-distribution.aspx\">distribution.aspx <\/a><span style=\"text-align: initial;font-size: 1em\">(keep in mind that this calculator returns a cumulative probability; we have to subtract this value from 1 to get empirical probability). A low P value <\/span>indicate<span style=\"text-align: initial;font-size: 1em\"> that the group means are significantly different. It could be because one of the four means is different from the rest three, or two of the group means different from the rest two. It could also be due to all four means different from each other. None of these finer details are revealed by one-way ANOVA P value. To find those out we have to perform an appropriate multiple comparison posttest as explained below.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">9.<\/strong><span style=\"text-align: initial;font-size: 1em\">\u00a0<\/span><strong style=\"text-align: initial;font-size: 1em\">Other types of ANOVA<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">a)\u00a0<\/strong><strong style=\"text-align: initial;font-size: 1em\"><em>Repeated Measures ANOVA: <\/em><\/strong><span style=\"text-align: initial;font-size: 1em\">As a paired t-test is used to compare two groups with paired\u00a0<\/span><span style=\"text-align: initial;font-size: 1em\">(matched or dependant) measurements, we use \u2018Repeated Measures ANOVA for matched measurements for more than 2 groups (these are called matched sets or matched blocks). Whenever a value in any particular group is expected to be closer to a specific value in another group than to a random value from our whole experiment (because of the way we designed the experiment), we should use repeated measures ANOVA. To find those out which groups are significantly different, we have to perform an appropriate multiple comparison posttest as explained below, similar to normal one-way ANOVA.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">b)\u00a0<\/strong><strong style=\"text-align: initial;font-size: 1em\"><em>Two-way ANOVA and more: <\/em><\/strong><span style=\"text-align: initial;font-size: 1em\">Two-way (or two-factor) ANOVA is used for comparison involving two factors. As already explained, in addition to heavy metals, we might also be interested to know the effects of their age on <\/span>tumour<span style=\"text-align: initial;font-size: 1em\"> mass (so variable remains only one). Use two-way ANOVA for comparing <\/span>2 factor<span style=\"text-align: initial;font-size: 1em\"> means of &gt;2 groups. Examples are average heights of neem trees grown using 4 different fertilizers at three villages<\/span>; and<span style=\"text-align: initial;font-size: 1em\"> average As levels at shallow\/moderate\/deep wells in 4 districts. If we add yet another factor, like sex, we will have to perform 3 <\/span>factor<span style=\"text-align: initial;font-size: 1em\"> ANOVA and so on. In the case of One-way ANOVA, <\/span>null<span style=\"text-align: initial;font-size: 1em\"> hypothesis is that means of groups are <\/span>same<span style=\"text-align: initial;font-size: 1em\">. In case of Two-way ANOVA, null hypothesis takes up three possibilities: 1) There is no difference in the means of factor A across the groups, 2) There is no difference in means of factor B across the groups and 3) There is no interaction between factors A and B<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">c)\u00a0<\/strong><strong style=\"text-align: initial;font-size: 1em\"><em>Multivariate ANOVA (MANOVA): <\/em><\/strong><span style=\"text-align: initial;font-size: 1em\">Manova is used for comparing the effect of <\/span>single<span style=\"text-align: initial;font-size: 1em\"> categorical variable (exposure to tobacco) on the averages of two or more continuous variables (for eg: heart rate and blood pressure)<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">d)\u00a0<\/strong><strong style=\"text-align: initial;font-size: 1em\"><em>Random Effects ANOVA: <\/em><\/strong><span style=\"text-align: initial;font-size: 1em\">Normal ANOVA is technically called fixed-effects or Type-I ANOVA; in this <\/span>case<span style=\"text-align: initial;font-size: 1em\"> the test assess means of our selected groups only without any further extrapolations. In the case of Random Effects ANOVA, also called Type-II ANOVA, the test assumes that the groups that we selected are randomly selected representatives (our sample groups) of an infinite number of groups (our unknown population) and the test compares our sample group means to infer whether our infinite population group means are significantly different or not.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">e)\u00a0<\/strong><strong style=\"text-align: initial;font-size: 1em\"><em>Analysis of Molecular Variance (AMOVA): <\/em><\/strong><span style=\"text-align: initial;font-size: 1em\">This is a method to detect population differentiation (a large contiguous population fragmenting to small isolated populations using molecular markers. While AMOVA had been developed in lines of ANOVA, two methods are quite different.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">10. Multiple Comparisons Posttests<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">One-way ANOVA informs us whether the overall differences in the means of our groups are significant or not. As explained already, a low P value in one-way ANOVA could be due to the fact that only one of the mean is significantly deferring from the rest, or groups of means differing from other groups of <\/span>mean<span style=\"text-align: initial;font-size: 1em\"> (the so called \u2018contrast\u2019), or every <\/span>mean<span style=\"text-align: initial;font-size: 1em\"> differing from every other means significantly. In most of the situations, ANOVA P value is not what we want to know; we would be more interested to know which means are significantly different. To find that out, we should perform a multiple comparisons posttest (also called Post Hoc test).<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">Multiple <\/span>t-test<span style=\"text-align: initial;font-size: 1em\"> is one way to compare pairs of means after ANOVA; however, as already explained this should not be used as expected false positives (Type I error) would be far higher than 5% level. This is because <\/span>significance<span style=\"text-align: initial;font-size: 1em\"> level (for example, 0.05) is for each comparison involved, not for the entire family of comparisons. Between four groups, 6 comparisons are possible (no. of possible comparisons can be calculated by combination formula, nCr= n! \/(n-r)!.r!), so after performing these comparisons, our significance level would be far higher than 0.05 ( that would mean a number of false positives in our results). In case multiple <\/span>t-test<span style=\"text-align: initial;font-size: 1em\"> is used, each individual P value should be multiplied with <\/span>total<span style=\"text-align: initial;font-size: 1em\"> number of such comparisons. For example, an unadjusted P value of 0.01 is obtained for one pair of comparison in a group of 4. As <\/span>total<span style=\"text-align: initial;font-size: 1em\"> number of possible comparisons in a group of four is 6, the unadjusted P value <\/span>need<span style=\"text-align: initial;font-size: 1em\"> to be multiplied with 6 to get the corrected P value. 0.01*6 = 0.06. This correction is known as <\/span><strong style=\"text-align: initial;font-size: 1em\">Bonferroni adjustment<\/strong><span style=\"text-align: initial;font-size: 1em\">. Bonferroni adjustment is fine in case you want to compare a specific pair after the ANOVA provided that this pair is clearly specified as part of the experimental design. As already mentioned, after seeing the data and choosing the highest and lowest means, you would be effectively comparing not merely <\/span>this two<span style=\"text-align: initial;font-size: 1em\"> means but all six means in a group of four.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">In case we would like to compare all combinations of means, which is by far most of us would like to do after ANOVA, the best option is Tukey\u2019s Honestly Signified Differences (Tukey\u2019s HSD). Bonferroni\u00a0<\/span>test<span style=\"text-align: initial;font-size: 1em\"> should not be used for this purpose, as the statistical power for which is far less than Tukey\u2019s HSD. As already explained, Tukey\u2019s HSD depends on a key output of ANOVA, MSwithin. As in Confidence Interval of mean explained in module 16, or CI of differences between means explained in module 18, Tukey\u2019s test returns CIs for all pairwise combinations of the differences between group means. For four groups, there would be six pairwise comparisons (<\/span>difference<span style=\"text-align: initial;font-size: 1em\"> between means) and these would be expressed in Confidence Intervals at our selected Confidence Level (for example 95%).<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">The formula for Tukey\u2019s HSD is:<\/span><\/p>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-369 alignleft\" src=\"http:\/\/esp14.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-216.png\" alt=\"\" width=\"270\" height=\"62\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-216.png 270w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-216-65x15.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-216-225x52.png 225w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Where x\u0304i and x\u0304j are means of groups i and j. q is a critical value from q distribution, MSw is MSwithin from ANOVA output, and ni and nj are sizes of groups I and j respectively. The above equation is very similar to other equations of Confidence Intervals; difference between sample means \u00b1 w (the width of CI). The width of CI is calculated from standardized (instead of \u2018standard\u2019) error (the square-root term in above equation) multiplied by a critical value from q distribution (instead of t*). The critical value q depends upon three things; the chosen level of significance (\u03b1), total number of groups (r) and degree of freedom for MSwithin (dfw). q Distribution is studentized range for \u03b1. Also note that though we are only comparing means of two of our groups (i and j), all groups and every single value in our dataset is important, as the value MSwithin depends upon the whole dataset. This is needed to account for the perils of multiple comparisons as already explained.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Let us go back to our original example. To compare means of Pb vs U (Lead vs Uranium, our first two groups), we need to first calculate the difference between their respective group means. Mean for Pb is 78.13 and mean for U is 61.03, so difference is 17.1.<\/p>\n<p>&nbsp;<\/p>\n<p>Let us first define our null hypothesis and alternative hypotheses:<\/p>\n<p>H0: Difference between two means is zero<\/p>\n<p>Ha: Difference between two means is not zero<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-align: initial;font-size: 1em\">Next step is to calculate the width of 95% CI (so \u03b1=0.05). To calculate it we need the following information: MSwithin, dfw, nPb, nU, \u03b1, r and q. MS<sub>within<\/sub>=14.753, df<sub>w<\/sub>=11, nPb=4, nU=4. \u03b1=0.05, r=4 and dfw=11. Plugging the values in:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-align: initial;font-size: 1em\">w=[\u221a(14.753\/2)x (1\/4+1\/4)] x q (\u03b1=0.05, r=4 and df<\/span><sub style=\"text-align: initial\">w<\/sub><span style=\"text-align: initial;font-size: 1em\">=11)<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-align: initial;font-size: 1em\">q- <\/span>table<span style=\"text-align: initial;font-size: 1em\"> is not normally provided in <\/span>statistics<span style=\"text-align: initial;font-size: 1em\"> tests of tables, as it is hard to calculate. One version of <\/span>online<span style=\"text-align: initial;font-size: 1em\"> calculator can be found at <\/span><a style=\"text-align: initial;font-size: 1em\" href=\"http:\/\/www.vassarstats.net\/tabs.html#q\">http:\/\/www.vassarstats.net\/tabs.html#q<\/a><\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-370 alignleft\" src=\"http:\/\/esp14.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-217.png\" alt=\"\" width=\"370\" height=\"115\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-217.png 370w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-217-300x93.png 300w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-217-65x20.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-217-225x70.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-217-350x109.png 350w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>As seen, Q at \u03b1=0.05 is 4.27. Plugging this in the above equation:<\/p>\n<p>=[\u221a(14.753\/2)x (1\/4+1\/4)] x 4.27<\/p>\n<p>=\u221a (7.365x 0.5) x 4.27<\/p>\n<p>=1.919 x 4.27<\/p>\n<p>=8.2<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The above value is the width, it extends both sides of the difference between means (17.1). So, 95% Confidence Interval for this difference is:<\/p>\n<p>(17.1 \u2013 8.2) to (17.1 + 8.2)<\/p>\n<p>8.9 to 25.3<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Does this range include our null hypothesis of no difference in means, i.e., zero? No, it doesn\u2019t. Therefore, P&lt;0.05 and the difference is statistically significant.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">We can perform the same pairwise computation of 95% CI for all six combinations of group means as well to find how many of these combinations returns statistically significant differences. Confidence Interval of difference between means tells us whether P value is significant at our chosen significance level. Some softwares (like GraphPad prism) also returns an exact P value, called \u2018multiplicity-adjusted P value\u2019 (that had been adjusted for multiple comparisons).<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"font-size: 1em;text-align: initial\">It is possible that the one-way ANOVA returns a P&lt;0.05 yet none of the pairs of mean differences are significant. It is also possible that ANOVA returns P&gt;0.05, yet some of the difference between group means are significant.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">Other post hoc multiple comparison methods other than Bonferroni\u2019s test and Tukey\u2019s HSD) include Dunnett\u2019s test which is highly useful to compare multiple groups with a group defined as a control group (each test group will be compared with <\/span>control<span style=\"text-align: initial;font-size: 1em\"> group, but <\/span>there wont<span style=\"text-align: initial;font-size: 1em\"> be any comparison between test groups), Scheffe\u2019s test to compare \u2018contrasting\u2019 sets of group means (for example, groups {A, B and C} versus groups {D and E}) and Holm\u2019s test.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">An online calculator for ANOVA with Tukey\u2019s HSD is available at <\/span><a style=\"text-align: initial;font-size: 1em\" href=\"http:\/\/astatsa.com\/OneWay_Anova_with_TukeyHSD\/\">http:\/\/astatsa.com\/OneWay_Anova_with_TukeyHSD\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">The results of Tukey\u2019s HSD for our example are as follows:<\/span><\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-371 alignleft\" src=\"http:\/\/esp14.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-218.png\" alt=\"\" width=\"520\" height=\"405\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-218.png 520w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-218-300x234.png 300w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-218-65x51.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-218-225x175.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-content\/uploads\/sites\/176\/2019\/03\/Untitled-218-350x273.png 350w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">This calculator also include results of other multiple comparison tests, including Bonferroni\u2019s test, Scheff\u00e9 test, and Holm\u2019s test.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Also note that even though ANOVA returns and overall P value &gt;0.05 (and differences not statistically significant), results of multiple comparisons like Tukey\u2019s HSD, Bonferroni test and Dunn\u2019s test are still valid.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>11. Summary<\/strong><\/p>\n<\/div>\n<ol>\n<li style=\"text-align: justify\">For One way ANOVA, we first have to calculate SStotal, SSbetween and SSwithin. With degrees of freedom for all of these Sum of Squares, we can calculate Mean Square by dividing Sum of Squares with df. Finally we can calculate F-ratio by MSbetween\/MSwithin. From two df, number of groups and F-ratio, finally we can calculate P value. One way ANOVA can easily be calculated using a software or many web-based calculators.<\/li>\n<li style=\"text-align: justify\">For matched or paired data, the test analogous to matched t-test for groups more than 2 is repeated measures ANOVA<\/li>\n<li style=\"text-align: justify\">Two-way ANOVA determines how a response is affected by two variables, and any association between the variables.<\/li>\n<li style=\"text-align: justify\">A common mistake is analysis<span style=\"text-align: initial;font-size: 1em\"> of ANOVA groups by multiple t-tests, but this is highly problematic as <\/span>chance<span style=\"text-align: initial;font-size: 1em\"> of false positives greatly increases this way.<\/span><\/li>\n<li style=\"text-align: justify\">A popular and powerful multiple comparison post hoc test<span style=\"text-align: initial;font-size: 1em\"> is Tukey\u2019s HSD that calculate\u00a0<\/span>95% CI of differences between means of pairs of groups. In most cases, results of Post hoc tests like Tukey\u2019s is a lot more informative than ANOVA itself, but Tukey\u2019s test is dependent on results of ANOVA.<\/li>\n<li style=\"text-align: justify\">Even though ANOVA returns and overall P value &gt;0.05 (and differences not statistically significant), results of multiple comparisons like Tukey\u2019s HSD, Bonferroni test and Dunn\u2019s test are still valid.<\/li>\n<\/ol>\n<p><strong>\u00a0 \u00a0 Quadrant-III: Learn More\/ Web Resources \/ Supporting Materials:<\/strong><\/p>\n<ol>\n<li>F tables arranged by significance levels <a href=\"http:\/\/www.socr.ucla.edu\/applets.dir\/f_table.html\">http:\/\/www.socr.ucla.edu\/applets.dir\/f_table.html<\/a><\/li>\n<\/ol>\n<ol start=\"2\">\n<li>One-way ANOVA online calculator <a href=\"http:\/\/stattrek.com\/online-calculator\/f-distribution.aspx\">http:\/\/stattrek.com\/online-calculator\/f-distribution.aspx<\/a><\/li>\n<\/ol>\n<ol start=\"3\">\n<li>Online calculator to find q-value from df and k (number of groups) <a href=\"http:\/\/www.vassarstats.net\/tabs.html#q\">http:\/\/www.vassarstats.net\/tabs.html#q<\/a><\/li>\n<\/ol>\n<ol start=\"4\">\n<li>online calculator for ANOVA with Tukey\u2019s HSD is available at <a href=\"http:\/\/astatsa.com\/OneWay_Anova_with_TukeyHSD\/\">http:\/\/astatsa.com\/OneWay_Anova_with_TukeyHSD\/<\/a><\/li>\n<\/ol>\n<ol start=\"5\">\n<li>Online calculator to calculate exact P from F ratio <a href=\"https:\/\/www.graphpad.com\/quickcalcs\/pValue1\/\">https:\/\/www.graphpad.com\/quickcalcs\/pValue1\/<\/a><\/li>\n<\/ol>\n","protected":false},"author":3,"menu_order":19,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":["dr-felix-bast"],"pb_section_license":""},"chapter-type":[],"contributor":[59],"license":[],"class_list":["post-360","chapter","type-chapter","status-publish","hentry","contributor-dr-felix-bast"],"part":3,"_links":{"self":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-json\/pressbooks\/v2\/chapters\/360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-json\/wp\/v2\/users\/3"}],"version-history":[{"count":4,"href":"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-json\/pressbooks\/v2\/chapters\/360\/revisions"}],"predecessor-version":[{"id":372,"href":"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-json\/pressbooks\/v2\/chapters\/360\/revisions\/372"}],"part":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-json\/pressbooks\/v2\/chapters\/360\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-json\/wp\/v2\/media?parent=360"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-json\/pressbooks\/v2\/chapter-type?post=360"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-json\/wp\/v2\/contributor?post=360"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/esp14\/wp-json\/wp\/v2\/license?post=360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}