[Skip Global Navigation]

Training

Training Home

SPSS Trainer Tip: Clementine® 11.0

Instructor profile


Name: Jim Mott

About Jim: Jim has 22 years of experience with SPSS Inc. From 1984 to 1998, he served as technical writer, technical support specialist, and internal trainer. Jim has been a senior education consultant since 1998. He received a BA from Knox College and an MA and PhD from the University of Illinois at Chicago. In his spare time, Jim enjoys playing classical piano, attending the opera, playing golf, and hiking and camping.

Normalizing fields in Clementine

Within Clementine, several of the modeling techniques are based on traditional statistical theory, which functions best when the data are normal as opposed to skewed. These techniques include regression, logistic regression, and discriminant analysis. Even the accuracy of Neural Net models can be adversely affected when the predictor fields are severely skewed. Unfortunately, the assumption of normality is not usually true for real-world data.

However, you can easily modify a field's values so that the overall distribution is more normal. The Transform Node, located in the output palette, provides the capability to perform a visual assessment of the best transformation to use for a field. After selecting the preferred transformation, you can generate Derive or Filler nodes that perform the transformations. Then you can attach these nodes to the stream and use them for modeling.

This example describes how you apply the Transform node to a field, Local, which represents the number of minutes a telephone company customer spends on local calling in a month. This field is heavily skewed because very few customers spend a substantial amount of time on the phone making local calls.


Figure 1: Histogram of Local, a heavily skewed field. Click image to enlarge.

To apply the Transform node:

1. Add a Transform node from the output palette to your stream
2. Edit the Transform node
3. Select the field(s) you wish to examine—in this case, “Local”
4. Click the Options tab

By default, “All Formulas” is selected. As shown in Figure 2, you can choose from five different methods to modify a field. These methods have long been used in standard statistics.


Figure 2: The Options tab includes five formulas to modify a field. Click image to enlarge.

Whenever a field has any values set at 0, you need to enter an offset value for the inverse and the two logs because they are undefined for values of 0. So, enter the value "1" as the offset:

5. Click “Select formulas”
6. Select all five check boxes
7. Enter “1” as the offset for “Inverse,” “LogN,” and “Log10”
8. Click “Execute

After applying the selected distributions, the transform output displays histograms for the original distribution and for the selected distributions. You'll notice that both the LogN and Log10 distributions appear to be fairly normal.

Figure 3: The Transform output for the Local field. Click image to enlarge.

To examine the LogN distribution in detail, double-click on the LogN histogram.

Clementine adds a normal curve based on the mean and the standard distribution of the transformed field:


Figure 4: A histogram of the natural log of the Local field. Click image to enlarge.

If you use this field when building the model, the predictions will be based on the transformed values, not the original ones. This can make the interpretation of the coefficients a little tricky. However, if predictive accuracy is your ultimate goal, then it may be a good strategy to use the transformations.

We offer SPSS courses at locations around the world.
Find a course in the location nearest to you.