Presentation is loading. Please wait.

Presentation is loading. Please wait.

Two-Group Discriminant Function Analysis. Overview You wish to predict group membership. There are only two groups. Your predictor variables are continuous.

Similar presentations


Presentation on theme: "Two-Group Discriminant Function Analysis. Overview You wish to predict group membership. There are only two groups. Your predictor variables are continuous."— Presentation transcript:

1 Two-Group Discriminant Function Analysis

2 Overview You wish to predict group membership. There are only two groups. Your predictor variables are continuous. You will create a discriminant function, D, such that the two groups differ as much as possible on D.

3 The Discriminant Function Weights are chosen such that were you to compute D for each case and then use ANOVA to compare the groups on D, the ratio of SS between to SS within would be as large as possible. The value of this ratio is the eigenvalue.

4 Harass90.sav Data are from Castellow, W. A., Wuensch, K. L., & Moore, C. H. (1990). Effects of physical attractiveness of the plaintiff and defendant in sexual harassment judgments. Journal of Social Behavior and Personality, 5, 547 ‑ 562. Download from my SPSS Data page. Bring into SPSS. Look at the data sheet.

5

6 The Variables Verdict is mock juror’s recommendation, guilty (finding in favor of the plaintiff) or not (favor of defendant) d_excit through d_happy are ratings of the defendant on various characteristics. p_excit through p_happy are ratings of the plaintiff on the same characteristics.

7 Do the Analysis Click Analyze, Classify, Discriminant. Put all 22 rating scales (d_excit through p_happy) in the “Independents” box. Put verdict into the “Grouping variable” box.

8 Now click on “verdict(? ?)” and then on “Define Range.”

9 Enter “1” (Guilty) and “2” (Not) Click Continue. Back on the initial page, click “Statistics.”

10 Check all of the Descriptives and Function Coefficients. Click Continue. Back on the initial page, click “Classify.”

11 Select “Compute from group sizes” for the Priors and “Summary Table” for Display. Click Continue. Back on the initial page, click “Save.”

12 Check “Discriminant scores” then click “Continue.” Back on the initial page, click “OK.”

13 Group Means Look at the Group Statistics. –Mean ratings of defendant are more favorable in the Not Guilty group than in the Guilty group. –Mean ratings of the plaintiff are more favorable in the Guilty group than in the Not Guilty group.

14 Univariate ANOVAs Look at the “Tests of Equality of Group Means.” –The groups differ significantly on all but four of the variables.

15 Box’s M Look at “Box’s Test of Equality of Covariance Matrices.” The null is that the variance-covariance matrix for the predictors is, in the populations, the same in both groups. This is assumed when pooling these matrices during the DFA. Box’s M is very powerful.

16 We generally do not worry unless M is significant at.001. We may use elect to use Pillai’s Trace as the test statistic, as it is more robust to violation of this assumption. Classification may be more affected by violation of this assumption than are the tests of significance.

17 Eigenvalue and Canonical Correlation Look at the “Eigenvalues.” –The eigenvalue, 1.187, is for comparing the groups on the discriminant function. –The canonical correlation,.737, is and is equivalent to eta from ANOVA on D or point-biserial r beteen Groups and D.

18 Wilks’ Lambda This is 1   = eta-squared = 1 .457 =.543 Eta-squared = canonical corr squared =.737 2 =.543 The grouping variable accounts for 54% of the variance in D.

19 Test of Significance The smaller , the more doubt cast on the null that the groups do not differ on D. Chi-square is used to test that null. It is significant. F can also be used. There are other multivariate tests (such as Pillai’s trace) available elsewhere.

20 Canonical Discriminant Function Coefficients SPSS gives us both the standardized weights And the unstandardized weights

21 DFC Weights vs Loadings The usual cautions apply to the weights – for example, redundancy among predictors will reduce the values of weights. The loadings in the structure matrix provide a better picture of how the discriminant function relates to the original variables.

22 The Loadings These are correlations between D and the predictor variables. For our data, high D is associated with the defendant being rated as socially desirable and the plaintiff being rated as socially undesirable.

23 Standardized Weights vs Loadings The predictors with the largest standardized coefficients were D_sincerity, D_warmth, D_kindness, P_sincerity, P_strength, and P_warmth. The predictors with the highest loadings are D_sincerity and P_warmth. The standardized weight for D_warmth is negative but its loading positive, indicating suppression.

24 Group Centroids These are simply the group means on D. For those who found in favor of the defendant, D was high: + 1.491. For those who found in favor of the plaintiff, D was low: .785.

25 Bayes Rule For each case, probability of membership for each group is computed from the priors – p(G i ) – and the likelihoods – p(D|G i ).

26 Classification Each case is classified into the group for which the posterior probability – p(G i |D) – is greater. By default, SPSS uses equal priors – for two groups, that would be.5. We asked that priors be computed from group frequencies, which should result in better classification.

27 Prior Probabilities Look at “Prior Probabilities for Groups.” As you can see, 65.5% of the subjects voted Guilty, 34.5% Not Guilty. Using this information should produce better classification.

28 Fisher’s Classification Function Coefficients For each case, two scores are computed from the weight’s and the subject’s scores on the variables. D 1 is the score for Group 1 D 2 is the score for Group 2 If D 1 > D 2, the case is classified into Group 1. If D 2 > D 1, into Group 2.

29 Classification Results This table shows how well the classification went. Of the 95 subjects who voted Guilty, 85 were correctly classified – 89.5% success. Of the 50 subjects who voted Not Guilty, 43 were correctly classified – 86%. Overall, 88.3% were correctly classified.

30 How Well Would We Have Done Just By Guessing? Random Guessing – for each case, flip a fair coin. Heads you predict Group 1, tails Group 2. P(Correct) =.5(.655) +.5(.345) = 50%

31 Probability Matching In a situation like this, human guessers tend to take base rates into account, guessing for one or the other option in proportion to how frequently those guesses are correct. P(Correct) =.655(.655) +.345(.345) = 55% correct.

32 Probability Maximizing In this situation goldfish guess the more frequent option every time, and outperform humans. P(Correct) = 65.5%

33 Assumptions Multivariate normality Equality of variance-covariance matrices across groups

34 ANOVA on D Click Analyze, Compare Means, One-Way ANOVA. Put Verdict in the “Factor Box,” the Discriminant scores in the “Dependent” list. Click OK.

35 SS Between  SS Within = 169.753  143 = 1.187 = the eigenvalue. SS Between  SS Total = 169.753  312.753 =.543 = eta-squared = SQRT(Can. Corr) = SQRT(.737) =.543 = 1   = 1 .457 =.543.

36 Correlate D With Groups Analyze, Correlate, Bivariate. Click OK. r =.737 = Canonical Corr.

37 SAS Download Harass90.dat and DFA2.sas. Edit the program to point to the data file and run the program. The output is essentially the same as that from SPSS, but arranged differently. “Likelihood Ratio” is Wilks Lambda.

38 For loadings and coefficients, use the “Pooled Within” tables. Classification Results for Calibration Data – here are the posterior probabilities for misclassifications.

39 Multiple Regression to Predict Verdict Look at the Proc Reg statement. This is a simple multiple regression to predict verdict from the ratings variables. The R-square = eta-squared from the DFA SS model  SS error = the eigenvalue from the DFA. SS error  SS total = .

40 The parameter estimates (unstandardized slopes) are perfectly correlated with the DFA coefficients. Multiply any of the multiple regression parameter estimates by 4.19395 and you get the DFA unstandardized coefficient.


Download ppt "Two-Group Discriminant Function Analysis. Overview You wish to predict group membership. There are only two groups. Your predictor variables are continuous."

Similar presentations


Ads by Google