Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Analysis of Variance The contents in this chapter are from Chapter 15 and Chapter 16 of the textbook. One-Way Analysis of Variance Multiple Comparisons.

Similar presentations

Presentation on theme: "1 Analysis of Variance The contents in this chapter are from Chapter 15 and Chapter 16 of the textbook. One-Way Analysis of Variance Multiple Comparisons."— Presentation transcript:

1 1 Analysis of Variance The contents in this chapter are from Chapter 15 and Chapter 16 of the textbook. One-Way Analysis of Variance Multiple Comparisons Two-Way Analysis of Variance The data of gssft.sav will be employed

2 2 One-way ANOVA Compare peoples ’ average working hours consider their educational backgrounds

3 3 One-way ANOVA

4 4 We can see the average working hours for all full- time employees is 45.62hours. The average work week ranges from a low of 44.95 hours for people with only a high school diploma to a high of 48.19 hours for people with graduate degrees. The descriptive statistics and plots suggest that there are difference in the average work week among the five groups.

5 5 One-way ANOVA Analysis of Variance (ANOVA): compare the means of more than two populations. Measurement of variation is most important idea in statistics Assumptions Independence: samples are independent Normality: the populations are normally distributed Equality of variance: the population variables are all equal

6 6 One-way ANOVA Analyzing the Variability Variations of observations will be decomposed in to Within-Groups variability Between-Groups variability Comparing the two estimates of variability and then put main results into a ANOVA table.

7 7 ANOVA Table The F test shows that there is a significant difference among average hours worked per week in five categories of education.

8 8 Example: An experiment was conducted to determine if any significant differences exist in the strength of parachutes woven from synthetic fibers from the different suppliers. Five parachutes were woven for each group – Supplier 1, Supplier 2, Supplier 3, and Supplier 4. One-way ANOVA

9 9 Example: The strength of the parachutes is measured by placing them in a testing device that pulls on both ends of parachute until it tears apart. The amount of force required to tear the parachute is measured on a tensile- strength scale where the larger the value the stronger the parachute. The results of this experiment (in term of tensile strength) are displayed with the sample mean and sample standard deviation from each suppliers. One-way ANOVA

10 10 One-way ANOVA We are required to test 1234 18.526.320.625.4 24.025.325.219.9 19.921.224.717.5 18.024.522.920.4 Mean 19.5224.2622.8421.16 Standard Deviation 2.691.922.132.98

11 11 One-Way ANOVA

12 12 One-Way ANOVA General Formulas: Total Variation

13 13 One-Way ANOVA General Formulas: Variation among the groups

14 14 One-Way ANOVA General Formulas: Variation within the groups

15 15 Example for parachutes woven ANOVA Source of Variation SSDfMSFP-value F- critical value Between Groups 63.285321.0953.4610.0413.238 Within Groups 97.504166.094 Total160.78919

16 16 Multiple Comparison The F test gives an answer about equality of several means. When the test is rejected, we want to know more detailed comparisons among those means.

17 17 Multiple Comparison

18 18 Multiple Comparison People with graduate degrees work significantly longer than people with only a high school education. No two other groups are significantly different from one another. There are many multiple comparison techniques. The method used on the previous page is called Bonferroni multiple comparisons.

19 19 Multiple Comparison We found that internet users watched significantly fewer hours of TV than non-users. However, since internet users are better educated than non-users. We should concern with TV watching and education.

20 20

21 21 Multiple Comparison People with less than a high school diploma watch significantly more TV than each of the other education groups. High school graduates watch more TV than college graduates and more TV than people with graduate degrees. People with junior college, college and graduate degrees to not differ significantly from one another in average hours of TV viewing.

22 22 Multiple Comparison Analysis of variance for television hours by internet use

23 23

24 24 Two-way ANOVA Let us consider the average hours worked based on degree and gender. Based on the results of the one-way ANOVA, we can’t say anything about differences between men and women in hours worked per week.

25 25

26 26 Bar chart of hours worked by degree and gender

27 27 Two-way ANOVA Firstly, try to look at the data by stem-and-leaf plots, histograms, or bar charts for 10 cells. For each level of education, on average, females in the sample work less than males. The largest difference between males and females is for those with junior college degrees. The box plots provide much more information than the bar charts.

28 28 Two-way ANOVA For each of the five degree categories, the median hours worked is higher for men than for women. The length of the boxes for the men is somewhat larger than for the women. That tells us that the interquartile ranges for hours worked are larger for the men than for the women. The box plots provide much more information than the bar charts. There are some outliers and extreme points.

29 29 Two-way ANOVA Testing Hypotheses Are the average hours worked the same for the five degree categories? Are the average hours worked the same for men and women? Is the relationship between average hours worked and degree the same for men and for women?

30 30 Interaction

31 31 Two-way ANOVA

32 32 Two-way ANOVA The null hypotheses for the interaction is that the effect of type of degree on average hours worked is the same for males and females in the population. The F test shows the p-value for testing no-interaction to be 0.16. The absence of interaction tells you that it’s reasonable to believe that the difference in average hours worked between males and females is the same for all degree categories.

33 33 Two-way ANOVA The F test for the degree is significant with p- value 0.018. This is consistent with the conclusion on one-way ANOVA. The observed significance level for the sex main effect is very small, less than 0.005. The average hours worked for males and females are significant different.

34 34 Two-way ANOVA Removing the interaction effect

35 35 Two-way ANOVA Multiple comparison results When possible, you should restrict the number of groups you compare. The more groups you compare, the less likely you are to detect true differences. There aren’t any comparisons for the gender variable in the table on next page.

36 36

37 37 Two-way ANOVA Next page gives plots of the predicted means for the 10 gender-and-degree combinations under the model without the interaction effect.

38 38 Two-way ANOVA Predicted means from the main effects model

39 39 Two-way ANOVA Next page gives a line chart of daily hours of television viewing for men and women. We see that for every category, except for graduate degree, on average men watch more television than women. From the plots it looks that there are interactions between “sex” and “degree”. But, for statistical test, the interaction effect is not significant.

40 40 Two-way ANOVA Line plot of television hours

41 41 Two-way ANOVA

Download ppt "1 Analysis of Variance The contents in this chapter are from Chapter 15 and Chapter 16 of the textbook. One-Way Analysis of Variance Multiple Comparisons."

Similar presentations

Ads by Google