Professional Documents
Culture Documents
Statistical Inference: Bba-Vb Analysis of Variance (ANOVA) DR Imtiaz Husain
Statistical Inference: Bba-Vb Analysis of Variance (ANOVA) DR Imtiaz Husain
Inference
BBA-VB
Chapter 6
Analysis of Variance (ANOVA)
Dr Imtiaz Husain
Test Statistic for ANOVA
The F statistic is computed by taking the ratio of what is called the "between
treatment" variability to the "residual or error" variability.
Is there a statistically significant difference in the mean weight loss among the four diets?
We will run the ANOVA using the five-step approach.
Solution:
The appropriate critical value can be found in a table of probabilities for the F distribution. In order to
determine the critical value of F we need degrees of freedom, df1=k-1 and df2=N-k.
In this example, df1=k-1=4-1=3 and df2=N-k=20-4=16.
The critical value is 3.24 and the decision rule is as follows:
Is there a statistically significant difference in mean calcium intake in patients with normal bone density as
compared to patients with osteopenia and osteoporosis?
We will run the ANOVA using the five-
step approach.
• Step 1. Set up hypotheses and determine level of significance
H0: μ1 = μ2 = μ3
H1: Means are not all equal
α=0.05
• Step 2. Select the appropriate test statistic.
The test statistic is the F statistic for ANOVA, F=MSB/MSE.
• Step 3. Set up decision rule.
In order to determine the critical value of F we need degrees of freedom,
df1=k-1 and df2=N-k.
In this example, df1=k-1=3-1=2 and df2=N-k=18-3=15.
The critical value is 3.68 and the decision rule is as follows:
Reject H0 if F > 3.68.
Step 4. Compute the test statistic.
• To organize our computations we will complete the ANOVA table. In
order to compute the sums of squares we must first compute the
sample means for each group and the overall mean.
Substituting:
Next, we calculate each SSE:
SSE requires computing the squared differences between each observation and its group mean. We will compute
SSE in parts. For the participants with normal bone density:
Thus,
For participants with osteopenia:
Thus,
For participants with osteoporosis:
Thus,
Therefore, sum of square error:
We can now construct the ANOVA table.
•Step 5. Conclusion.
We do not reject H0 because 1.395 < 3.68. We do not have statistically significant evidence at a =0.05 to show that
there is a difference in mean calcium intake in patients with normal bone density as compared to osteopenia and
osterporosis
Example # 3:Using the following data, perform a
oneway analysis of variance using α=0.05
Assignment [05 marks] due on December 20,2021
The National Transportation Safety Board (NTSB) wants to examine the safety of
compact cars, midsize cars, and full-size cars. It collects a sample of three for
each of the treatments (cars types). Using the hypothetical data provided
below, test whether the mean pressure applied to the driver’s head during a
crash test is equal for each types of car. Use α =5%.