Posts

What is logistic regression ?

Image
How many patients will suffer from diabetes? Let’s predict people who will suffer with diabetes as per there health records Logistic Regression: Linear regression can be used only when y is continuous and it doesn’t fit for categorical data, so logistic regression comes here. It is used for categorial data, the regression line fits between o and 1 hence it is non-linear regression model. It can be used for both binomial and multinomial data, this model is mainly fit for binomial data . There are two types of logistic regression techniques 1.       Ordinal logistic regression 2.       Multinomial logistic regression. The function glm () is used for building logistic regression model. Some examples for logistic regression are spam detection, marketing and banking etc. Logistic regression will work by calculating like hood of values by using sigmoid function, it gives the probability of target variables. It always lie...

What is linear regression ?

Image
                                                                                                                                                                                                               ...