ML Concepts – Linear Regression vs Logistic Regression

Classification Regression Analysis Linear vs Logistic Regression More about Logistic Regression Steps in Preparing Model using Logistic Regression About The Author Dr Pranay Jha See..

Classification

Regression Analysis

  1. Linear Regression
    1. Simple Linear Regression
    2. Multiple Linear Regression
  2. Logistic Regression

Linear vs Logistic Regression

More about Logistic Regression

  • Logistic regression is the appropriate regression analysis to conduct when the dependent variable is binary.
  • It is a predictive analysis like all other regression analysis.
  • It is used to describe data and to explain the relationship between one dependent binary variable and one or more nominal, ordinal, interval, or ratio-level independent variables.
  • It used to model the probability of a certain class or event existing such as pass/fail, win/lose, alive/dead, healthy/sick, or normal/malicious.
  • It predicts a dependent data variable by analyzing the relationship between one or more existing independent variables.
  • For example, a logistic regression could be used to predict whether a network traffic is normal or malicious.
  • Create S shaped logistic function. Curve goes to 0 to 1. That means that curve tells the probability that a network traffic is normal or malicious based o its weight.
  • If we weighed a very heavy mouse
  • If weight is more than 50 percent then traffic is malicious, if less than 50% then it is normal.

Steps in Preparing Model using Logistic Regression

  • Importing the libraries
  • Importing the dataset
  • Splitting the dataset into Training Set and Test Set
  • Feature Scaling
  • Training the Logistic Regression model on the Training Set
  • Predicting a new result
  • Predicting the Test set results
  • Making the Confusion Matrix
  • Visualizing the Training set results
  • Visualizing the Test set results

About The Author

Leave a Reply

Your email address will not be published. Required fields are marked *

About the Author

Dr Pranay Jha

Dr. Pranay Jha is a Cloud and AI Consultant with 18+ years of experience in hybrid cloud, virtualization, and enterprise infrastructure transformation. He specializes in VMware technologies, multi-cloud strategy, and Generative AI solutions. He holds a PhD in Computer Applications with research focused on Cloud and AI, has published multiple research papers, and has been a VMware vExpert since 2016 and a VMUG Community Leader.

BlockSpare — News, Magazine and Blog Addons for (Gutenberg) Block Editor