Professional Documents
Culture Documents
Bus101 Wk11 Ws Ttests Anova Bv2
Bus101 Wk11 Ws Ttests Anova Bv2
Dr J. Campton 1
© University of The Sunshine Coast
Week 11: T-tests and ANOVA
Since some of the egg laying hens were used for the updated farming technique, we
need to run a paired samples t-test. You run a paired sample t-test to identify if the
weight of the eggs is significantly different.
Dr J. Campton 2
© University of The Sunshine Coast
Note. This practice example is not designed to offend or insult anyone’s egg purchasing
behaviour. Merely to highlight new farming technologies and industries.
1.4 What does this mean for the Feather family? Should they continue to change
the rest of their farms to Pastured?
Dr J. Campton 3
© University of The Sunshine Coast
Paired Differences
95% Confidence
Interval of the
Std. Std. Error Difference Sig. (2-
Mean Deviation Mean Lower Upper t df tailed)
Pair Before_Caged - - 142.96775 10.00974 - - - 203 .000
1 After_Pasturised 147.50000 167.23640 127.76360 14.736
Dr J. Campton 4
© University of The Sunshine Coast
Run the Test again but this time enter the test value of 500
2.4 What would you recommend to the Feather Family based on this result? What
can they claim for their marketing?
2.5 What else could we use that might give us a better indication of what the weight
might be 95% of the time on average? (Hint: Something we learned in the content
last week)
See:
https://www.backyardchickencoops.com.au/blogs/learning-centre/different-breeds-and-
types-of-chickens
They would like to know which breed of hen lays heavier eggs?
Dr J. Campton 5
© University of The Sunshine Coast
3.1 What is the null and alternative hypothesis?
3.2 Check Levene’s test for equality of variances: is this significant? If it is this means it
is breached - which line, should you read for the t-test? (Equal variances assumed
or equal variances not assumed?)
3.3 Are the results of the t-test significant?
Dr J. Campton 6
© University of The Sunshine Coast
Problem 4: ANOVA
What is an ANOVA?
The null and alternative hypotheses of one-way ANOVA can be expressed as:
Dr J. Campton 7
© University of The Sunshine Coast
H0: µ1 = µ2 = µ3 = ... = µk ("all k population means are equal")
H1: At least one µi different ("at least one of the k population means is not equal to the
others")
The test statistic for a One-Way ANOVA is denoted as F. For an independent variable
with k groups, the F statistic evaluates whether the group means are significantly
different.”
The steps in SPSS for a One-Way ANOVA in SPSS:
Select “Options” and tick ✔ “Descriptive” and “Means plot” > Continue
Hit “OK”
Questions
4.1 What is the null and alternative hypothesis?
4.2 Is the omnibus ANOVA statistically significant at = .05? Can the null hypothesis
be rejected?
4.3 Which of the post hoc comparisons were statistically significant? Which were
not?
Dr J. Campton 8
© University of The Sunshine Coast
4.4 Write up the results
Make sure you state the null and alternative hypothesis
State which one is rejected
Name the test and report the test statistic (including the post hoc test)
Give a recommendation
Descriptives
Weight
95% Confidence
Std. Std. Interval for Mean Minimu
N Mean Maximum
Deviation Error Lower Upper m
Bound Bound
759.859 742.009
Layer 71 75.41301 8.94988 777.7091 650.00 850.00
2 2
458.000 444.490
Mash 65 54.52064 6.76245 471.5096 400.00 545.00
0 4
591.562 583.106
Crumble 48 29.12110 4.20327 600.0184 545.00 650.00
5 6
679.891 668.866
Pellets 46 37.12575 5.47389 690.9163 600.00 750.00
3 3
623.434 606.293
Total 230 131.93201 8.69934 640.5758 400.00 850.00
8 8
ANOVA
Weight
Dr J. Campton 9
© University of The Sunshine Coast
Sum of
df Mean Square F Sig.
Squares
Multiple Comparisons
Dependent Variable: Weight
Tukey HSD
95% Confidence
Mean Interval
(I) (J) Std.
Difference Sig.
Feed_Types Feed_Types Error Lower Upper
(I-J)
Bound Bound
10.3267
Crumble 168.29665* .000 141.5685 195.0248
Layer 5
10.4598
Pellets 79.96785* .000 52.8952 107.0405
3
-
Layer 9.48688 .000 -326.4136 -277.3048
301.85915*
- 10.5172
Mash Crumble * .000 -160.7837 -106.3413
133.56250 4
- 10.6479
Pellets * .000 -249.4508 -194.3318
221.89130 4
- 10.3267
Layer * .000 -195.0248 -141.5685
Crumble 168.29665 5
Dr J. Campton 10
© University of The Sunshine Coast
4
11.4026
Pellets -88.32880* .000 -117.8416 -58.8160
1
10.4598
Layer -79.96785* .000 -107.0405 -52.8952
3
10.6479
Pellets Mash 221.89130* .000 194.3318 249.4508
4
11.4026
Crumble 88.32880* .000 58.8160 117.8416
1
Dr J. Campton 11
© University of The Sunshine Coast