Presentation is loading. Please wait.

Presentation is loading. Please wait.

Analysis of Variance and Covariance 16-1. Chapter Outline 1)Overview 2)Relationship Among Techniques 3) One-Way Analysis of Variance 4)Statistics Associated.

Similar presentations


Presentation on theme: "Analysis of Variance and Covariance 16-1. Chapter Outline 1)Overview 2)Relationship Among Techniques 3) One-Way Analysis of Variance 4)Statistics Associated."— Presentation transcript:

1 Analysis of Variance and Covariance 16-1

2 Chapter Outline 1)Overview 2)Relationship Among Techniques 3) One-Way Analysis of Variance 4)Statistics Associated with One-Way Analysis of Variance 5)Conducting One-Way Analysis of Variance i.Identification of Dependent & Independent Variables ii.Decomposition of the Total Variation iii.Measurement of Effects iv.Significance Testing v.Interpretation of Results

3 Chapter Outline 6)Illustrative Applications of One-Way Analysis of Variance 7)Assumptions in Analysis of Variance 8)N-Way Analysis of Variance 9)Analysis of Covariance 10)Issues in Interpretation i.Interactions ii.Relative Importance of Factors iii.Multiple Comparisons 11) Multivariate Analysis of Variance

4 Relationship Among Techniques Analysis of variance (ANOVA) is used as a test of means for two or more populations. The null hypothesis, typically, is that all means are equal. Analysis of variance must have a dependent variable that is metric (measured using an interval or ratio scale). There must also be one or more independent variables that are all categorical (nonmetric). Categorical independent variables are also called factors.

5 Relationship Among Techniques A particular combination of factor levels, or categories, is called a treatment. One-way analysis of variance involves only one categorical variable, or a single factor. Here a treatment is the same as a factor level. If two or more factors are involved, the analysis is termed n-way analysis of variance. If the set of independent variables consists of both categorical and metric variables, the technique is called analysis of covariance (ANCOVA). The metric-independent variables are referred to as covariates.

6 Relationship Amongst Test, Analysis of Variance, Analysis of Covariance, & Regression

7 One-Way Analysis of Variance Marketing researchers are often interested in examining the differences in the mean values of the dependent variable for several categories of a single independent variable or factor. For example: Do the various segments differ in terms of their volume of product consumption? Do the brand evaluations of groups exposed to different commercials vary? What is the effect of consumers' familiarity with the store (measured as high, medium, and low) on preference for the store?

8 Statistics Associated with One-Way Analysis of Variance F statistic. The null hypothesis that the category means are equal is tested by an F statistic. The F statistic is based on the ratio of the variance between groups and the variance within groups. The variances are related to sum of squares

9 Statistics Associated with One-Way Analysis of Variance SS between. Also denoted as SS x, this is the variation in Y related to the variation in the means of the categories of X. This is variation in Y accounted for by X. SS within. Also referred to as SS error, this is the variation in Y due to the variation within each of the categories of X. This variation is not accounted for by X. SS y. This is the total variation in Y.

10 Conducting One-Way ANOVA Interpret the Results Identify the Dependent and Independent Variables Decompose the Total Variation Measure the Effects Test the Significance Fig. 16.2

11 The total variation in Y may be decomposed as: SS y = SS x + SS error, where Y i = individual observation j = mean for category j = mean over the whole sample, or grand mean Y ij = i th observation in the j th category Conducting One-Way ANOVA: Decomposing the Total Variation Y Y SS y =( Y i - Y ) 2  i =1 N SS x = n ( Y j - Y ) 2  j =1 c SS error =  i n ( Y ij - Y j ) 2  j c

12 Conducting One-Way ANOVA : Decomposition of the Total Variation Independent VariableX Total CategoriesSample X 1 X 2 X 3 …X c Y 1 Y 1 Y 1 Y 1 Y 1 Y 2 Y 2 Y 2 Y 2 Y 2 : : Y n Y n Y n Y n Y N Y 1 Y 2 Y 3 Y c Y Within Category Variation =SS within Between Category Variation = SS between Total Variatio n =SS y Category Mean Table 16.1

13 Conducting One-Way ANOVA: Measure Effects and Test Significance In one-way analysis of variance, we test the null hypothesis that the category means are equal in the population. H 0 : µ 1 = µ 2 = µ 3 =........... = µ c The null hypothesis may be tested by the F statistic which is proportional to following ratio: This statistic follows the F distribution F ~ SS x SS error

14 Conducting One-Way ANOVA: Interpret the Results If the null hypothesis of equal category means is not rejected, then the independent variable does not have a significant effect on the dependent variable. On the other hand, if the null hypothesis is rejected, then the effect of the independent variable is significant. A comparison of the category mean values will indicate the nature of the effect of the independent variable.

15 Illustrative Applications of One-Way ANOVA We illustrate the concepts discussed in this chapter using the data presented in Table 16.2. The department store chain is attempting to determine the effect of in-store promotion (X) on sales (Y). The null hypothesis is that the category means are equal: H 0 : µ 1 = µ 2 = µ 3.

16 Effect of Promotion and Clientele on Sales Table 16.2

17 One-Way ANOVA: Effect of In-store Promotion on Store Sales Table 16.4 Cell means Level of CountMean Promotion High (1)108.300 Medium (2)106.200 Low (3)103.700 TOTAL306.067 Source of Sum ofdfMean F ratio F prob Variationsquaressquare Between groups106.067253.033 17.944 0.000 (Promotion) Within groups79.800272.956 (Error) TOTAL185.867296.409

18 Assumptions in Analysis of Variance 1. The error term is normally distributed, with a zero mean 2. The error term has a constant variance. 3. The error is not related to any of the categories of X. 4. The error terms are uncorrelated.

19 N-Way Analysis of Variance In marketing research, one is often concerned with the effect of more than one factor simultaneously. For example: How do advertising levels (high, medium, and low) interact with price levels (high, medium, and low) to influence a brand's sale? Do educational levels (less than high school, high school graduate, some college, and college graduate) and age (less than 35, 35-55, more than 55) affect consumption of a brand? What is the effect of consumers' familiarity with a department store (high, medium, and low) and store image (positive, neutral, and negative) on preference for the store?

20 N-Way Analysis of Variance Consider two factors X 1 and X 2 having categories c 1 and c 2. The significance of the overall effect is tested by an F test If the overall effect is significant, the next step is to examine the significance of the interaction effect. This is also tested using an F test The significance of the main effect of each factor may be tested using an F test as well

21 Two-way Analysis of Variance Source ofSum ofMean Sig. of Variationsquares dfsquare F F  Main Effects Promotion106.067 253.033 54.862 0.000 0.557 Coupon 53.333 153.333 55.172 0.000 0.280 Combined159.400 353.133 54.966 0.000 Two-way 3.267 21.633 1.690 0.226 interaction Model162.667 532.533 33.655 0.000 Residual (error) 23.200 240.967 TOTAL185.867 296.409 2 Table 16.5

22 Two-way Analysis of Variance Table 16.5, cont. Cell Means PromotionCoupon Count Mean High Yes 5 9.200 High No 5 7.400 Medium Yes 5 7.600 Medium No 5 4.800 Low Yes 5 5.400 Low No 5 2.000 TOTAL 30 Factor Level Means PromotionCoupon Count Mean High 10 8.300 Medium 10 6.200 Low 10 3.700 Yes 15 7.400 No 15 4.733 Grand Mean 30 6.067

23 Analysis of Covariance When examining the differences in the mean values of the dependent variable, it is often necessary to take into account the influence of uncontrolled independent variables. For example: In determining how different groups exposed to different commercials evaluate a brand, it may be necessary to control for prior knowledge. In determining how different price levels will affect a household's cereal consumption, it may be essential to take household size into account. Suppose that we wanted to determine the effect of in-store promotion and couponing on sales while controlling for the affect of clientele. The results are shown in Table 16.6.

24 Analysis of Covariance Sum ofMeanSig. Source of Variation SquaresdfSquare Fof F Covariance Clientele 0.8381 0.838 0.8620.363 Main effects Promotion 106.067253.03354.5460.000 Coupon 53.333153.33354.8550.000 Combined 159.400353.13354.6490.000 2-Way Interaction Promotion* Coupon 3.2672 1.633 1.6800.208 Model 163.505627.25128.0280.000 Residual (Error) 22.36223 0.972 TOTAL 185.86729 6.409 CovariateRaw Coefficient Clientele -0.078 Table 16.6

25 Issues in Interpretation Important issues involved in the interpretation of ANOVA results include interactions, relative importance of factors, and multiple comparisons. Interactions The different interactions that can arise when conducting ANOVA on two or more factors are shown in Figure 16.3. Relative Importance of Factors It is important to determine the relative importance of each factor in explaining the variation in the dependent variable.

26 A Classification of Interaction Effects Noncrossover (Case 3) Crossover (Case 4) Possible Interaction Effects No Interaction (Case 1) Interaction Ordinal (Case 2) Disordinal Fig. 16.3

27 Patterns of Interaction Fig. 16.4 Y XXX 111213 Case 1: No Interaction X 22 X 21 XXX 111213 X 22 X 21 Y Case 2: Ordinal Interaction Y XXX 111213 X 22 X 21 Case 3: Disordinal Interaction: Noncrossover Y XXX 111213 X 22 X 21 Case 4: Disordinal Interaction: Crossover

28 Multivariate Analysis of Variance Multivariate analysis of variance (MANOVA) is similar to analysis of variance (ANOVA), except that instead of one metric dependent variable, we have two or more. In MANOVA, the null hypothesis is that the vectors of means on multiple dependent variables are equal across groups. Multivariate analysis of variance is appropriate when there are two or more dependent variables that are correlated.

29 Regression Analysis © 2007 Prentice Hall17-29

30 © 2007 Prentice Hall17-30 Chapter Outline 1) Correlations 2) Bivariate Regression 3) Statistics Associated with Bivariate Regression 4) Conducting Bivariate Regression Analysis i. Scatter Diagram ii. Bivariate Regression Model iii. Estimation of Parameters iv. Standardized Regression Coefficient v. Significance Testing

31 © 2007 Prentice Hall17-31 Chapter Outline vi. Strength and Significance of Association vii. Assumptions 5) Multiple Regression 6)Statistics Associated with Multiple Regression 7)Conducting Multiple Regression i.Partial Regression Coefficients ii.Strength of Association iii.Significance Testing 8)Multicollinearity 9)Relative Importance of Predictors

32 © 2007 Prentice Hall17-32 Product Moment Correlation The product moment correlation, r, summarizes the strength of association between two metric (interval or ratio scaled) variables, say X and Y. It is an index used to determine whether a linear or straight-line relationship exists between X and Y. r varies between -1.0 and +1.0. The correlation coefficient between two variables will be the same regardless of their underlying units of measurement.

33 © 2007 Prentice Hall17-33 Explaining Attitude Toward the City of Residence Table 17.1

34 © 2007 Prentice Hall17-34 Product Moment Correlation When it is computed for a population rather than a sample, the product moment correlation is denoted by, the Greek letter rho. The coefficient r is an estimator of. The statistical significance of the relationship between two variables measured by using r can be conveniently tested. The hypotheses are:      H 0 :  =0 H 1 :  0

35 © 2007 Prentice Hall17-35 Significance of correlation The test statistic has a t dist. The r bet. ‘Attitude towards city’ and ‘Duration’ is 0.9361 The value of t-stat is 8.414. From the t table (Table 4 in the Stat Appdx), the critical value of t for a two-tailed test and = 0.05 is 2.228.   Hence, the null hypothesis of no relationship between X and Y is rejected

36 © 2007 Prentice Hall17-36 Regression Analysis Regression analysis examines associative relationships between a metric dependent variable and one or more independent variables in the following ways: Determine whether the independent variables explain a significant variation in the dependent variable: whether a relationship exists. Determine how much of the variation in the dependent variable can be explained by the independent variables: strength of the relationship. Predict the values of the dependent variable.

37 © 2007 Prentice Hall17-37 Statistics Associated with Bivariate Regression Analysis Regression model. Y i = + X i + e i whereY = dep var, X = indep var, = intercept of the line, = slope of the line, and e i is the error term for the i th observation. Coefficient of determination: r 2. Measures strength of association. Varies bet. 0 and 1 and signifies proportion of the variation in Y accounted for by the variation in X. Estimated or predicted value of Y i is i = a + bx where i is the predicted value of Y i and a and b are estimators of and   0  1   0  1   0   1

38 © 2007 Prentice Hall17-38 Statistics Associated with Bivariate Regression Analysis Regression coefficient. The estimated parameter b is usually referred to as the non- standardized regression coefficient. Standard error of estimate. This statistic is the standard deviation of the actual Y values from the predicted values. Standard error. The standard deviation of b, SE b is called the standard error. Y

39 © 2007 Prentice Hall17-39 Statistics Associated with Bivariate Regression Analysis Sum of squared errors. The distances of all the points from the regression line are squared and added together to arrive at the sum of squared errors, which is a measure of total error,. t statistic. A t statistic can be used to test the null hypothesis that no linear relationship exists between X and Y  e j  2

40 © 2007 Prentice Hall17-40 Idea Behind Estimating Regression Eqn A scatter diagram, or scattergram, is a plot of the values of two variables The most commonly used technique for fitting a straight line to a scattergram is the least-squares procedure. In fitting the line, the least-squares procedure minimizes the sum of squared errors,.  e j  2

41 © 2007 Prentice Hall17-41 Conducting Bivariate Regression Analysis Plot the Scatter Diagram Formulate the General Model Estimate the Parameters Estimate Regression Coefficients Test for Significance Determine the Strength and Significance of Association

42 © 2007 Prentice Hall17-42 Plot of Attitude with Duration Fig. 17.3 4.52.25 6.75 11.25 9 13.5 9 3 6 15.7518 Duration of Residence Attitude

43 © 2007 Prentice Hall17-43 Which Straight Line Is Best? Fig. 17.4 9 6 3 2.25 4.5 6.75 9 11.25 13.5 15.75 18 Line 1 Line2 3 4

44 © 2007 Prentice Hall17-44 Decomposing the Total Variation Fig. 17.6 X2X1X3 X5 X4 Y X Total Variation SS y Residual Variation (SS Res ) Explained Variation (SS Reg ) Y

45 © 2007 Prentice Hall17-45 Decomposing the Total Variation The total variation, SS y, may be decomposed into the variation accounted for by the regression line, SS reg, and the error or residual variation, SS error or SS res, as follows: SS y = SS reg + SS res where

46 © 2007 Prentice Hall17-46 Strength and Significance of Association Answers the question: ”What percentage of total variation in Y is explained by X?” R 2 = S S r e g S S y The strength of association is:

47 © 2007 Prentice Hall17-47 Test for Significance The statistical significance of the linear relationship between X and Y may be tested by examining the hypotheses: A t statistic can be used, where t=b/SE b SE b denotes the standard deviation of b and is called the standard error.  H 0 :  1 =0 H 1 :  1  0

48 © 2007 Prentice Hall17-48 Illustration of Bivariate Regression The regression of attitude on duration of residence, using the data shown in Table 17.1, yielded the results shown in Table 17.2. a= 1.0793, b= 0.5897. The estimated equation is: Attitude ( ) = 1.0793 + 0.5897 (Duration of residence) The standard error, or standard deviation of b is 0.07008, and t = 0.5897/0.0700 =8.414. The p-value corresponding to the calculated t is 0.000. Since this is smaller than =0.05, the null hypothesis is rejected.   Y

49 © 2007 Prentice Hall17-49 Bivariate Regression Table 17.2 Multiple R0.93608 R 2 0.87624 Adjusted R 2 0.86387 Standard Error1.22329 ANALYSIS OF VARIANCE dfSum of SquaresMean Square Regression1105.95222105.95222 Residual10 14.96444 1.49644 F = 70.80266Significance of F = 0.0000 VARIABLES IN THE EQUATION Variableb SE b Beta (ß) T Significance of T Duration0.58972 0.07008 0.936088.414 0.0000 (Constant)1.07932 0.743351.452 0.1772

50 © 2007 Prentice Hall17-50 Strength and Significance of Association The predicted values ( ) can be calculated using Attitude ( ) = 1.0793 + 0.5897 (Duration of residence) For the first observation in Table 17.1, this value is: = 1.0793 + 0.5897 x 10 = 6.9763. For each observation, we can obtain this value Using these, SS reg =105.9524, SS res =14.9644 R 2 =105.95/(105.95+14.96)=0.8762, Y Y Y

51 © 2007 Prentice Hall17-51 Strength and Significance of Association Another, equivalent test for examining the significance of the linear relationship between X and Y (significance of b) is the test for the significance of the coefficient of determination. The hypotheses in this case are: H 0 : R 2 pop = 0 H 1 : R 2 pop > 0

52 © 2007 Prentice Hall17-52 Strength and Significance of Association The appropriate test statistic is the F statistic which has an F distribution. The p-value corresponding to the F statistic is: 0.0000 Therefore, the relationship is significant at the α=0.05 level, corroborating the results of the t test.

53 © 2007 Prentice Hall17-53 Assumptions The error term is normally distributed. The mean of the error term is 0. The variance of the error term is constant. This variance does not depend on the values assumed by X. The error terms are uncorrelated. In other words, the observations have been drawn independently.

54 © 2007 Prentice Hall17-54 Multiple Regression The general form of the multiple regression model is as follows: which is estimated by the following equation: = a + b 1 X 1 + b 2 X 2 + b 3 X 3 +... + b k X k As before, the coefficient a represents the intercept, but the b's are now the partial regression coefficients. Y  Y=  0 +  1 X 1 +  2 X 2 +  3 X 3 +...+  k X k +ee

55 © 2007 Prentice Hall17-55 Stats Associated with Multiple Reg Coefficient of multiple determination. The strength of association is measured by R 2. Adjusted R 2. R 2, coefficient of multiple determination, is adjusted for the number of independent variables and the sample size. F test. The F test is used to test the null hypothesis that the coefficient of multiple determination in the population, R 2 pop, is zero. The test statistic has an F distribution

56 © 2007 Prentice Hall17-56 The Multiple Regression Equation For data in Table 17.1, suppose we want to explain ‘Attitude Towards City’ by ‘Duration’ and ‘Importance of Weather’ From Table 17.3, the estimated regression equation is: ( ) = 0.33732 + 0.48108 X 1 + 0.28865 X 2 or Attitude = 0.33732 + 0.48108 (Duration) + 0.28865 (Importance) Y

57 © 2007 Prentice Hall17-57 Multiple Regression Table 17.3 Multiple R0.97210 R 2 0.94498 Adjusted R 2 0.93276 Standard Error0.85974 ANALYSIS OF VARIANCE dfSum of SquaresMean Square Regression2114.2642557.13213 Residual9 6.65241 0.73916 F = 77.29364 Significance of F = 0.0000 VARIABLES IN THE EQUATION Variableb SE b Beta (ß) T Significance of T IMPORTANCE0.28865 0.08608 0.313823.353 0.0085 DURATION0.48108 0.05895 0.763638.160 0.0000 (Constant)0.33732 0.567360.595 0.5668

58 © 2007 Prentice Hall17-58 Strength of Association The strength of association is measured by R 2, which is similar to bivariate case R 2 is adjusted for the number of independent variables and the sample size. It is called Adjusted R2

59 © 2007 Prentice Hall17-59 Conducting Multiple Regression Analysis: Significance Testing H 0 : R 2 pop = 0, This is equivalent to the following null hypothesis:  H 0 :  1 =  2 =  3 =...=  k =0 The overall test (for all β i ’s collectively) can be conducted by using an F statistic which has an F distribution. Testing for the significance of the individual β i ’s can be done in a manner similar to that in the bivariate case by using t tests 

60 © 2007 Prentice Hall17-60 Multicollinearity Multicollinearity arises when intercorrelations among the predictors are very high. Multicollinearity can result in several problems, including: – The partial regression coefficients may not be estimated precisely. The standard errors are likely to be high. – It becomes difficult to assess the relative importance of the independent variables in explaining the variation in the dependent variable.

61 © 2007 Prentice Hall17-61 Relative Importance of Predictors Statistical significance. If the partial regression coefficient of a variable is not significant, that variable is judged to be unimportant. Measures based on standardized coefficients or beta weights. The most commonly used measures are the absolute values of the beta weights, |B i |, or the squared values, B i 2.


Download ppt "Analysis of Variance and Covariance 16-1. Chapter Outline 1)Overview 2)Relationship Among Techniques 3) One-Way Analysis of Variance 4)Statistics Associated."

Similar presentations


Ads by Google