{"id":151,"date":"2018-03-07T21:16:00","date_gmt":"2018-03-07T20:16:00","guid":{"rendered":"https:\/\/kindsonthegenius.com\/blog\/2018\/03\/07\/how-to-perform-analysis-of-variance-anova-step-by-step-procedure\/"},"modified":"2020-11-05T14:22:11","modified_gmt":"2020-11-05T13:22:11","slug":"how-to-perform-analysis-of-variance-anova-step-by-step-procedure","status":"publish","type":"post","link":"https:\/\/kindsonthegenius.com\/blog\/how-to-perform-analysis-of-variance-anova-step-by-step-procedure\/","title":{"rendered":"How to Perform Analysis of Variance (ANOVA) &#8211;  Step By Step Procedure"},"content":{"rendered":"<div style=\"color: #555555; font-size: 18px; line-height: 30px; text-align: justify;\">\n<div style=\"font-family: 'segoe ui';\">In this lesson, we would look at the steps to follow to perform Analysis of Variance(ANOVA). This would be very clear and easy to follow. ANOVA is used to analyze the difference in the means of diffrent groups (for 3 or more groups).<\/p>\n<p>The procedure is made up of just three basic stages. After looking at the procedure, we would apply it in a real problem.<\/p>\n<p><b>The Seven Steps are<\/b><br \/><a href=\"http:\/\/kindsonthegenius.blogspot.com\/#step1\">Step 1: Calculate the Mean<\/a><br \/><a href=\"http:\/\/kindsonthegenius.blogspot.com\/#step2\">Step 2: Setup the null and alternate hypothesis<\/a><br \/><a href=\"http:\/\/kindsonthegenius.blogspot.com\/#step3\">Step 3: Calculate the Sum of Squares<\/a><br \/><a href=\"http:\/\/kindsonthegenius.blogspot.com\/#step4\">Step 4: Calculate the Degrees of Freedom<\/a><br \/><a href=\"http:\/\/kindsonthegenius.blogspot.com\/#step5\">Step 5: Calculate the Mean Squares<\/a><br \/><a href=\"http:\/\/kindsonthegenius.blogspot.com\/#step6\">Step 6: Calculate the F Statistic<\/a><br \/><a href=\"http:\/\/kindsonthegenius.blogspot.com\/#step7\">Step 7: Look up statistical Table and state your conclusion<\/a><\/p>\n<p><a href=\"https:\/\/kindsonthegenius.com\/blog\/one-way-anovaanalysis-of-variance-problem-question-11\/\">Veiw a solve example!<\/a><\/p>\n<p>Before we begin, take some time to examine Figure 1. This figure summarizes what needs to be calculated to perform a one-way ANOVA.<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/2.bp.blogspot.com\/-tK2stbPWllc\/Wp_xMsenDjI\/AAAAAAAABFk\/UELtnfXd92o0nVIwwYUPoP9htAlpWwBDACLcBGAs\/s1600\/Anova%2BTable.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" loading=\"lazy\" border=\"0\" data-original-height=\"571\" data-original-width=\"1204\" height=\"300\" src=\"https:\/\/2.bp.blogspot.com\/-tK2stbPWllc\/Wp_xMsenDjI\/AAAAAAAABFk\/UELtnfXd92o0nVIwwYUPoP9htAlpWwBDACLcBGAs\/s640\/Anova%2BTable.jpg\" width=\"640\" \/><\/a><\/div>\n<p>Figure 1: Analysis of Variance Table<\/p>\n<p><b><\/b><br \/> <b><\/p>\n<h3>Step 1: Calculate all the means<\/h3>\n<p><\/b><br \/>You need to calculate all the means for all the groups in the question. Then you also need to calculate to overall means with all the data combined as one single group.<br \/><span style=\"color: #0000ee;\"><a href=\"https:\/\/kindsonthegenius.com\/blog\/one-way-anovaanalysis-of-variance-problem-question-11\/\" target=\"_blank\" rel=\"noopener noreferrer\">Go to solved example <\/a><\/span><\/p>\n<p><b><\/p>\n<h3>Step 2: Set up the null and alternate hypothesis and the Alpha<\/h3>\n<p><\/b><br \/>The null hypothesis assumes that there is no variance data in different groups. In other words, the means are the same<br \/>The alternate hypothesis states the means are different. So we can state as follows:<\/p>\n<p><b>H<sub>0<\/sub>:<\/b> \u03bc<sub>1<\/sub> = \u03bc<sub>2<\/sub> = \u03bc<sub>3<\/sub><br \/><b>H<sub>a<\/sub><\/b>: \u03bc<sub>1<\/sub> \u2260 \u03bc<sub>2<\/sub> \u2260 \u03bc<sub>3<\/sub><\/p>\n<p><b><\/p>\n<h3>Step 3: Calculate the Sum of Squares<\/h3>\n<p><\/b><br \/><span style=\"color: #20124d;\"><i>Calculate the Sum of Squares Total (SST):<\/i><\/span> The SStotal is the Sum of Squares(SS) based on the  entire set in all the groups. In this case, you treat all the data from  all the groups like on single combined set of data<\/p>\n<p><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/2.bp.blogspot.com\/-mC-lcjdQmz4\/WqASl9xJYWI\/AAAAAAAABGQ\/q3aaGZsCB38QX467745fzHwfbrPHjnrFgCLcBGAs\/s1600\/SSTOTAL.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" data-original-height=\"101\" data-original-width=\"282\" src=\"https:\/\/2.bp.blogspot.com\/-mC-lcjdQmz4\/WqASl9xJYWI\/AAAAAAAABGQ\/q3aaGZsCB38QX467745fzHwfbrPHjnrFgCLcBGAs\/s1600\/SSTOTAL.jpg\" \/><\/a> <\/div>\n<p><span style=\"color: #20124d;\"><i>Calculate the Sum of Squares Within Groups (SSW)<\/i>: <\/span>The is the sum of squares within each group. After calculating the sum of squares for each group, then you add them together for all the groups. That is why you have the sum symbol twice in the formular<\/p>\n<ul>\n<li>The internal sum is for within the group<\/li>\n<li>The external sum is to sum the sums! <\/li>\n<\/ul>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-N4RZU0DE7Hs\/WqASmFDAIJI\/AAAAAAAABGU\/lW2dLS_dH8A25LP15QuQWS1PTYhQB8_gACLcBGAs\/s1600\/SSWITHIN.jpg\" style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\"><img decoding=\"async\" loading=\"lazy\" border=\"0\" data-original-height=\"104\" data-original-width=\"332\" height=\"99\" src=\"https:\/\/1.bp.blogspot.com\/-N4RZU0DE7Hs\/WqASmFDAIJI\/AAAAAAAABGU\/lW2dLS_dH8A25LP15QuQWS1PTYhQB8_gACLcBGAs\/s320\/SSWITHIN.jpg\" width=\"320\" \/><\/a><\/div>\n<p>Note: If you have calculated the first two sum of squares, you can the go ahead to calculate the the third on using the first two values using the formula<br \/>But for learning purposes, we would calculate the third one. So let&#8217;s keep moving!<\/p>\n<p><i><span style=\"color: #20124d;\">Calculate the Sum of Squares Between Groups (SSB)<\/span>:<\/i> This is the sum of squares with the groups taken as single elements.<\/p>\n<p>Assumming there are three groups you will have to do the the following:<br \/>(group1_mean &#8211; total_mean)2 + (group2_mean &#8211; total_mean)2 + group3_mean &#8211; total_mean)2<\/p>\n<p><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/2.bp.blogspot.com\/-JILeX_HLXEw\/WqASl-YpcrI\/AAAAAAAABGM\/U31Jp0d1Tlg1pU2YwP7uKQKX-TA7KfCqwCLcBGAs\/s1600\/SSBETWEEN.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" loading=\"lazy\" border=\"0\" data-original-height=\"104\" data-original-width=\"332\" height=\"100\" src=\"https:\/\/2.bp.blogspot.com\/-JILeX_HLXEw\/WqASl-YpcrI\/AAAAAAAABGM\/U31Jp0d1Tlg1pU2YwP7uKQKX-TA7KfCqwCLcBGAs\/s320\/SSBETWEEN.jpg\" width=\"320\" \/><\/a><\/div>\n<p>Verify that<br \/>SStotal = SSbetween + SSwithin<\/p>\n<p><b><\/p>\n<h3>Step 4: Calculate the Degrees of Freedom (df)<\/h3>\n<p><\/b><br \/><i><span style=\"color: #20124d;\">Calculate the Degrees of Freedom Total (DFT)<\/span><\/i><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-dTG81RUZRQo\/WqASkItJZvI\/AAAAAAAABF4\/egDZw25vsgIEkGxymW-9Z9sjxeG50mjpwCLcBGAs\/s1600\/DFTOTAL.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" data-original-height=\"53\" data-original-width=\"198\" src=\"https:\/\/4.bp.blogspot.com\/-dTG81RUZRQo\/WqASkItJZvI\/AAAAAAAABF4\/egDZw25vsgIEkGxymW-9Z9sjxeG50mjpwCLcBGAs\/s1600\/DFTOTAL.jpg\" \/><\/a><\/div>\n<p>where n is to total of all the data sets combined<\/p>\n<p><span style=\"color: #20124d;\"><i>Calculate the Degrees of Freedom Within Groups (DFW)<\/i><\/span><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/2.bp.blogspot.com\/-bR-4yPt9oq4\/WqASkDvPBoI\/AAAAAAAABF0\/rOo3X9xf8ssTyZfeNfU6pxk6c-GLEkNcwCLcBGAs\/s1600\/DFWITHIN.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" data-original-height=\"53\" data-original-width=\"223\" src=\"https:\/\/2.bp.blogspot.com\/-bR-4yPt9oq4\/WqASkDvPBoI\/AAAAAAAABF0\/rOo3X9xf8ssTyZfeNfU6pxk6c-GLEkNcwCLcBGAs\/s1600\/DFWITHIN.jpg\" \/><\/a><\/div>\n<p>where k is the number of groups.<br \/>So, if there are three groups of measurements, then k = 3 <\/p>\n<p><span style=\"color: #20124d;\"><i>Calculate the Degrees Between Groups (DFB)<\/i><\/span><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-pYaQkJ1Hjzo\/WqASkLogPRI\/AAAAAAAABF8\/6R8vU-HF_dkEveaiccdFYP6Zx6qfxqNpQCLcBGAs\/s1600\/DFBETWEEN.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" data-original-height=\"53\" data-original-width=\"221\" src=\"https:\/\/4.bp.blogspot.com\/-pYaQkJ1Hjzo\/WqASkLogPRI\/AAAAAAAABF8\/6R8vU-HF_dkEveaiccdFYP6Zx6qfxqNpQCLcBGAs\/s1600\/DFBETWEEN.jpg\" \/><\/a><\/div>\n<p><i>Note<\/i>: You could actually calculate the third degree of freedom if you have two of them just like in the case of sum of square<\/p>\n<p>You can verify that:<br \/>dft = dfw + dfb<\/p>\n<p><b><\/p>\n<h3>Step 5: Calculate the Mean Squares<\/h3>\n<p><\/b><br \/><i><span style=\"color: #20124d;\">Calculate the Mean Squares Between (MSB)<\/span><\/i><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-kW_Oa1Wcie0\/WqASlIYYxhI\/AAAAAAAABGA\/Edm7uTWPd2o5ZmvgA8z-iu4OrEL8oY7kACLcBGAs\/s1600\/MSBETWEEN.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" data-original-height=\"80\" data-original-width=\"297\" src=\"https:\/\/4.bp.blogspot.com\/-kW_Oa1Wcie0\/WqASlIYYxhI\/AAAAAAAABGA\/Edm7uTWPd2o5ZmvgA8z-iu4OrEL8oY7kACLcBGAs\/s1600\/MSBETWEEN.jpg\" \/><\/a><\/div>\n<p><span style=\"color: #20124d;\"><i>Calculate the Mean Squares Within (MSW)<\/i><\/span><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-DkjzP2Oc-2U\/WqASlv_gTqI\/AAAAAAAABGI\/v9Ey7rOeg4gEbJ4ApE03Qsc5djx6DghzgCLcBGAs\/s1600\/MSWITHIN.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" data-original-height=\"80\" data-original-width=\"257\" src=\"https:\/\/4.bp.blogspot.com\/-DkjzP2Oc-2U\/WqASlv_gTqI\/AAAAAAAABGI\/v9Ey7rOeg4gEbJ4ApE03Qsc5djx6DghzgCLcBGAs\/s1600\/MSWITHIN.jpg\" \/><\/a><\/div>\n<p><b><\/p>\n<h3>Step 6: Create a Summary Table and Calculate the F Statistic<\/h3>\n<p><\/b><br \/>This is the same table you created in Step 2. You just have to fill it with actual results based on your calculations. Stating with this table makes the problem easier to solve.<br \/>Calculate the F Statistic using the fomular<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-UYYBdQI18TM\/WqASk8G4EmI\/AAAAAAAABGE\/eGKkwINc9twRXYSdXQsqBkIR0xYljVmYQCLcBGAs\/s1600\/F.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" data-original-height=\"77\" data-original-width=\"221\" src=\"https:\/\/4.bp.blogspot.com\/-UYYBdQI18TM\/WqASk8G4EmI\/AAAAAAAABGE\/eGKkwINc9twRXYSdXQsqBkIR0xYljVmYQCLcBGAs\/s1600\/F.jpg\" \/><\/a><\/div>\n<p><b><\/p>\n<h3>Step 7: Look up F from table<\/h3>\n<p><\/b><br \/>Lood up the tabulated value of F(critical value) of F from the<a href=\"http:\/\/#\" target=\"_blank\" rel=\"noopener noreferrer\"> statistical table<\/a> and compare it with the value you calculated (absolute value).<br \/>If the absolute value is greater than the critical value, we reject the null hypothesis and conclude that there is significant different between the means of the populations. Otherwise, accept the null hypothesis or fail to reject the null hypothesis.<\/p>\n<p><a href=\"http:\/\/#\" target=\"_blank\" rel=\"noopener noreferrer\">On to a Solved Example! <\/a><\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this lesson, we would look at the steps to follow to perform Analysis of Variance(ANOVA). This would be very clear and easy to follow. &hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[223],"tags":[544],"_links":{"self":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/151"}],"collection":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/comments?post=151"}],"version-history":[{"count":4,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/151\/revisions"}],"predecessor-version":[{"id":1770,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/151\/revisions\/1770"}],"wp:attachment":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/media?parent=151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/categories?post=151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/tags?post=151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}