Logistic regression

We have seen how linear regression models allows us to predict a numerical outcome. Logistic regression models, however, allow us to predict a categorical outcome by predicting the probability that an outcome is true.

As with linear regression, in logistic regression models, we also have a dependent variable y and a set of independent variables x1, x2, …, xk. In logistic regression however, we want to learn a function that provides the probability that y = 1 (in other words, that the outcome variable is true) given this set of independent variables, as follows:

This function is called the Logistic Response function, and ...

Get Machine Learning with Apache Spark Quick Start Guide 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.