Types of Regression

When I ask what are the types of regression for the beginners, the expected answer will be  linear regression and Logistic regression, because these are the two algorithms that all beginners will start with. Now coming to the point we have five types of regression. Linear regression Logistic regression Polynomial regression Ridge Regression Lasso RegressionContinue reading “Types of Regression”

Deriving Logistic regression equation

Lets derive logistic regression equation. oops we know if we use linear regression we will get continuous values, but we need binary results. We are still not done to find the final logistic regression function. Step 1: we apply some algebra knowledge here to find equation. If we move log function to another side itContinue reading “Deriving Logistic regression equation”

Logistic regression assumptions

Binary Output Variable: Logistic regression is intended for binary (two-class) classification problems. It will predict the probability of an instance belonging to the default class, which can be snapped into a 0 or 1 classification.ˆRemove Noise: Logistic regression assumes no error in the output variable (y), consider removing outliers and possibly misclassified instances from your Continue reading “Logistic regression assumptions”

Liner regression assumptions

Linear Assumption. Linear regression assumes that the relationship between your input/independent and output/depended is linear.We can use pearson correlation to check the linearity.if we found there is no linearity between input and output variables We need to transform data to make the relationship linear (e.g. log transform,Box-cox etc..). Data Cleaning. Linear regression assumes that yourContinue reading “Liner regression assumptions”

How to calculate Simple Liner Regression

Lets calculate linear regression for the below dataset. We have age of the person which we will denote as X and sugar level of the person which we will denote as Y Step 1) To know how to calculate mean refer link. Step 2) To know how to calculate standard deviation refer link Step 3)Continue reading “How to calculate Simple Liner Regression”

Logistic regression

Logistic regression will comes under supervised learning to solve classification problems.some real time use cases like if customer is good or bad,predicting defaulters, Email spam detection, Fraud detection etc.. Great I have a question why can’t we use linear regression to solve classification problem? As we seen above the usage of logistic regression we needContinue reading “Logistic regression”