(21S) Analysis of Variance - Complete one-way ANOVA table
|
02-03-2021, 09:50 PM
Post: #1
|
|||
|
|||
(21S) Analysis of Variance - Complete one-way ANOVA table
This program computes the complete one-way ANOVA table for any number of treatment groups. Analysis of variance is used to test whether a difference within the means of multiple groups is likely to be due to chance, or whether the difference is statistically significant. The program is designed to interoperate with the F distribution functions on the 21S, making it particularly well suited for this model. It should also work on the 20S, though you will need an F-distribution table, or some other means of obtaining your threshold F value.
Usage Press CLRG to clear all registers and begin a new case. Enter the data points from the first group, each followed by pressing Σ+. Do not press the INPUT key, as this will cause Σ+ to accumulate x and y values, destroying intermediate results stored in R6, R8, and R9. In other words, make sure the : isn't displayed when pressing Σ+. When you have completed entering data for the group, you may press RCL 5 to see the sum, XEQ B to compute the mean, or XEQ C to compute the sample standard deviation for the group. These three calculations are optional. Press XEQ A after the last data point of each group has been entered. To compute the ANOVA table, use the following keystrokes, in any order (and omitting any results you are not interested in) to calculate each result: XEQ F : F Ratio (also calculates and stores df1, df2) XEQ 1 : df1 (Treatment Degrees of Freedom - result is displayed and stored in R1) XEQ 2 : df2 (Error Degrees of Freedom - result is displayed and stored in R2) XEQ 1 + XEQ 2 = : df3 (Total Degrees of Freedom) XEQ 3 : TSS (Total Sum of Squares) XEQ 4 : TrSS (Treatment Sum of Squares) XEQ 5 : ESS (Error Sum of Squares) XEQ 6 : TrMS (Treatment Mean Square - also calculates and stores df1) XEQ 7 : EMS (Error Mean Square - also calculates and stores df2) Calculating TrMS automatically stores df1 into R1, calculating EMS stores df2 into R2, and calculating F stores both df1 and df2 into their respective registers. You can then immediately use the F ratio and stored df1 and df2 values with the built-in Q(F) or Fp functions to determine whether to reject the null hypothesis which states that the means of the groups are equal. Example This example is from the HP 67 Stat Pac I. The following are the scores obtained in an achievement test by random samples of students from four different schools. School 1: 88, 99, 96, 68, 85 School 2: 78, 62, 98, 83, 61, 88 School 3: 80, 61, 74, 92, 78, 54, 77 School 4: 71, 65, 90, 46 Calculate the ANOVA table and test the null hypothesis that the differences among the sample means can be attributed to chance. Use significance level α=0.01. Code: Keystrokes Output Notes Since F(1.5509, 3, 18)=0.2358, and the calculated F value 1.5509 does not exceed F(.01, 3, 18)=5.0919, the null hypothesis cannot be rejected. We conclude that the means of the scores for the four schools are not significantly different. Program Listing Code: 01 LBL A |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(21S) Analysis of Variance - Complete one-way ANOVA table - Dave Britten - 02-03-2021 09:50 PM
|
User(s) browsing this thread: 2 Guest(s)