14.03.2014 Views

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 20 Performing Discriminant Analysis 493<br />

Introduction<br />

Introduction<br />

Discriminant Analysis is an alternative to logistic regression. In logistic regression, the classification variable<br />

is r<strong>and</strong>om <strong>and</strong> predicted by the continuous variables, whereas in discriminant analysis the classifications are<br />

fixed, <strong>and</strong> the Y variables are realizations of r<strong>and</strong>om variables. However, in both cases, the categorical value<br />

is predicted by the continuous.<br />

There are several varieties of discriminant analysis. JMP implements linear <strong>and</strong> quadratic discriminant<br />

analysis, along with a method that blends both types. In linear discriminant analysis, it is assumed that the Y<br />

variables are normally distributed with the same variances <strong>and</strong> covariances, but that there are different<br />

means for each group defined by X. In quadratic discriminant analysis, the covariances can be different<br />

across groups. Both methods measure the distance from each point in the data set to each group's<br />

multivariate mean (often called a centroid) <strong>and</strong> classify the point to the closest group. The distance measure<br />

used is the Mahalanobis distance, which takes into account the variances <strong>and</strong> covariances between the<br />

variables.<br />

Discriminating Groups<br />

Fisher's Iris data set is the classic example of discriminant analysis. Four measurements are taken from a<br />

sample consisting of three different species. The goal is to identify the species accurately using the values of<br />

the four measurements. Open Iris.jmp, <strong>and</strong> select Analyze > <strong>Multivariate</strong> <strong>Methods</strong> > Discriminant to<br />

launch the Discriminant Analysis platform. The launch dialog in Figure 20.1 appears.<br />

Figure 20.1 Discriminant Launch Dialog<br />

If you want to find which variables discriminate well, click the checkbox for Stepwise Variable Selection.<br />

Otherwise, the platform uses all the variables you specify. In this example, specify the four continuous<br />

variables as Y, Covariates <strong>and</strong> Species as X, Categories.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!