2CLASSIFICATION MODELS

Image

The last chapter briefly introduced classification applications, in which we predict dummy or categorical variables. These differ from the numeric applications we’ve analyzed, such as predicting the number of bike riders, which is a numeric entity. For instance, in a marketing application, we might wish to predict whether a customer will purchase a certain product. In that case, we’d represent the “Y” outcome with a dummy variable, using 1 for buying the item and 0 for not buying it. There are two classes here: Buy and Not Buy.

We discussed an example of categorical Y in the “Some Terminology” box in Section 1.1. In that ...

Get The Art of Machine Learning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.