O'Reilly logo

IBM SPSS Modeler Cookbook by Scott Mutchler, Tom Khabaza, Meta S. Brown, Dean Abbott, Keith McCormick

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using KNN to match similar cases

K-Nearest Neighbors (KNN) is found in the Classification tab of the Modeling palette, but it is actually two different applications in one node. Methodologically they are similar, but different in their application. In addition to classification, the KNN Modeling node can be used to calculate differences and find those cases in a Deployment data set that have the smallest distances. Online dating services use this approach. Men can be scored to find women that they resemble, and women can be scored to find men that they resemble. In the case of a dating service, the answers to survey questions define similarity.

In this recipe, we will focus on patterns of purchase. The goal will be to have online sales reps assigned ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required