O'Reilly logo

Mastering Python for Data Science by Samir Madhavan

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

Chapter 7. Estimating the Likelihood of Events

Logistic regression is a type of regression analysis that helps in estimating the likelihood of an event to occur based on some given parameters. It is used as a classification technique with a binary outcome. The probabilities describing the possible outcomes of a single trial are modeled, as a function of the explanatory (predictor) variables, using a logistic function.

You have been already introduced to Logisitc regression in Chapter 5, Uncovering Machine Learning. In this chapter, you'll learn to:

  • Build a logistic regression model with statsmodels
  • Build a logistic regression model with SciKit
  • Evaluate and test the model

Logistic regression

We'll use the Titanic dataset, which was utilized in Chapter ...

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