Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Tests with two+ groups We have examined tests of means for a single group, and for a difference if we have a matched sample (as in husbands and wives)

Similar presentations


Presentation on theme: "1 Tests with two+ groups We have examined tests of means for a single group, and for a difference if we have a matched sample (as in husbands and wives)"— Presentation transcript:

1 1 Tests with two+ groups We have examined tests of means for a single group, and for a difference if we have a matched sample (as in husbands and wives) Now we consider differences of means between two or more groups

2 2 Two sample t test Compare means on a variable for two different groups. Income differences between males and females Average SAT score for blacks and whites Mean time to failure for parts manufactured using two different processes

3 3 New Test - Same Logic Find the probability that the observed difference could be due to chance factors in taking the random sample. If probability is very low, then conclude that difference did not happen by chance (reject null hypothesis) If probability not low, cannot reject null hypothesis (no diff. between groups)

4 4 Sampling Distributions Mean 1 Mean 2 Note in this case each mean is not in the critical region of other sampling dist.

5 5 Sampling Distributions Mean 1 Mean 2 Note each mean is well into the critical region of other sampling distribution.

6 6 Sampling Dist. of Difference Difference of Means Hypothesize Zero Diff. Big Differences

7 7 Procedure Calculate means for each group Calculate difference Calculate standard error of difference Test to see if difference is bigger than “t” standard errors (small samples) z standard errors (large samples) t and z are taken from tables at 95 or 99 percent confidence level.

8 8 Standard error of difference Pooled estimate of standard deviation Divide by sample sizes

9 9 t test Difference of Means Standard error of difference of means If t is greater than table value of t for 95% confidence level, reject null hypothesis

10 10 Three or more groups If there are three or more groups, we cannot take a single difference, so we need a new test for differences among several means. This test is called ANOVA for ANalysis Of VAriance It can also be used if there are only two groups

11 11 Analysis of Variance Note the name of the test says that we are looking at variance or variability. The logic is to compare variability between groups (differences among the means) and variability within the group (variability of scores around the mean) These are call the between variance and the within variance, respectively

12 12 The logic If the between variance is large relative to the within variance, we conclude that there are significant differences among the means. If the between variance is not so large, we accept the null hypothesis

13 13 Examples Large Between Small Between Both examples have same Within

14 14 Variance Calculate sum of squares and then divide by degrees of freedom Three ways to do this

15 15 Total, Within, and Between Total variance is the mean squared deviation of individual scores around the overall (total) mean Within variance is the mean squared deviation of individual scores around each of the group means Between variance is the mean squared deviation of group means around the overall (total) mean

16 16 Total, Within, and Between Total = SST/dfT Within = SSW/dfW Between = SSB/dfB

17 17 F test for ANOVA The F statistic has a distribution somewhat like the chi-square. It made of the ratio of two variances. For our purpose, we will compare the between and within estimates of variance Create a ratio of the two -- called an F ratio. Between variance divided by the within variance

18 18 F-ratio Table in the back of the book has critical values of the F statistic. Like the t distribution, we have to know degrees of freedom Different than the t distribution, there are two different degrees of freedom we need Between (numerator) and within (denominator)

19 19 Decision If F-ratio for our sample is larger than the critical value, we reject the null hypothesis of no differences among the means If F-ratio is not so large, we accept null hypothesis of no differences among the means

20 20 Example (three groups) 1 2 3 4 5 6 7 8 9 Observations Overall mean is 5 60

21 21 Example (within) 1 2 3 4 5 6 7 8 9 Observations 258Group Means 6

22 22 Example (between) 1 2 3 4 5 6 7 8 9 Observations 258Group Means Overall mean is 5 54

23 23 F-ratio Between variance divided by within variance. Between= 54 / 2 = 27 (remember k-1 degrees of freedom, so df = 3-1 Within = 6 / 6 = 1 (remember n-k degrees of freedom, so df = 9-3 F-ratio is 27/1 with 2 and 6 df Critical value (95%) of F is 5.14


Download ppt "1 Tests with two+ groups We have examined tests of means for a single group, and for a difference if we have a matched sample (as in husbands and wives)"

Similar presentations


Ads by Google