Logistic Regression Practical Case Study

Breast Cancer detection using Logistic Regression
Free tutorial
Rating: 4.7 out of 5 (4,458 ratings)
39,754 students
1hr 4min of on-demand video
English [Auto]

How to build a Logistic Regression model for a Real-World Case Study
Work on Google Colab


  • Basic theory of Logistic Regression


Did you know that approximately 70% of data science problems involve classification and logistic regression is a common solution for binary problems?

Logistic regression has many applications in data science, but in the world of healthcare, it can really drive life-changing action.

In this SuperDataScience case study course, learn how to detect breast cancer by applying a logistic regression model on a real-world dataset and predict whether a tumor is benign (not breast cancer) or malignant (breast cancer) based off its characteristics.

By the end of the course, you will be able to build a logistic regression model to identify correlations between the following 9 independent variables and the class of the tumor (benign or malignant).

  • Clump thickness

  • Uniformity of cell size

  • Uniformity of cell shape

  • Marginal adhesion

  • Single epithelial cell

  • Bare Nuclei

  • Bland chromatin

  • Normal nucleoli

  • Mitoses

Logistic regression can identify important predictors of breast cancer using odds ratios and generate confidence intervals that provide additional information for decision-making. Model performance depends on the ability of the radiologists to accurately identify findings on mammograms.

Join AI expert Hadelin de Ponteves as you code the solution along with him in this 1-hour, 3-part case study:

Part 1: Data Preprocessing

  • Importing the dataset

  • Splitting the dataset into a training set and test set

Part 2: Training and Inference

  • Training the logistic regression model on the training set

  • Predicting the test set results

Part 3: Evaluating the Model

  • Making the confusion matrix

  • Computing the accuracy with k-Fold cross-validation

Testing your skills with practical courses is one of the best and most enjoyable ways to learn data science…and now we’re giving you that chance for FREE.

Plus, you’ll do it all using Google’s Colab free, browser-based notebook environment that runs completely in the cloud. It’s a game-changing interface that will save you time and supercharge your data science toolkit.

Click the ‘Enroll Now’ button to join Hadelin’s class today!

More about logistic regression:

Logistic regression is a method of statistical analysis used to predict a data value based on prior observations of a dataset. A logistic regression model predicts the value of a dependent variable by analyzing the relationship between one or more existing independent variables.

In data science, logistic regression is a Machine Learning algorithm used for classification problems and predictive analysis.

More real-world applications of logistical regression include:

  • Bankruptcy predictions

  • Credit scoring

  • Consumer behavior

  • Customer retention

  • Spam detection

Who this course is for:

  • Anyone interested in Machine Learning, AI or Data Science
  • Anyone who wants to learn how to make accurate predictions


Passionate AI Instructor
Hadelin de Ponteves
  • 4.5 Instructor Rating
  • 351,018 Reviews
  • 2,133,553 Students
  • 43 Courses

Hadelin is an online entrepreneur who has created 30+ top-rated educational e-courses to the world on new technology topics such as Artificial Intelligence, Machine Learning, Deep Learning, Blockchain and Cryptocurrencies. He is passionate about bringing this knowledge to the world and help as much people as possible. So far more than 2 million students have subscribed to his courses.

Helping Data Scientists Succeed
SuperDataScience Team
  • 4.5 Instructor Rating
  • 833,561 Reviews
  • 2,886,563 Students
  • 148 Courses

Hi there,

We are the SuperDataScience team. You will hear from us when new SuperDataScience courses are released, when we publish new podcasts, blogs, share cheat sheets, and more!

We are here to help you stay on the cutting edge of Data Science and Technology. 

See you in class,


SuperDataScience Team!

Helping Data Scientists Succeed
Ligency Team
  • 4.5 Instructor Rating
  • 704,246 Reviews
  • 2,886,433 Students
  • 107 Courses

Hi there,

We are the Ligency PR and Marketing team. You will be hearing from us when new courses are released, when we publish new podcasts, blogs, share cheatsheets and more!

We are here to help you stay on the cutting edge of Data Science and Technology.

See you in class,


The Real People at Ligency

Top companies trust Udemy

Get your team access to Udemy's top 25,000+ courses