1 / 18

Logistic Regression

Logistic Regression. Saed Sayad. Definition. Logistic Regression is a type of regression model where the dependent variable (target) has just two values, such as: 0, 1 Y, N F, T. Sample Dataset. Linear Regression ( Continuous Dependent Variable ). Balance. Months in Business.

duane
Download Presentation

Logistic Regression

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Logistic Regression Saed Sayad www.ismartsoft.com

  2. Definition Logistic Regression is a type of regression model where the dependent variable (target) has just two values, such as: 0, 1 Y, N F, T www.ismartsoft.com

  3. Sample Dataset www.ismartsoft.com

  4. Linear Regression(Continuous Dependent Variable) Balance Months in Business www.ismartsoft.com

  5. Linear Regression(Binary Dependent Variable) Default Months in Business www.ismartsoft.com

  6. Linear Regression Model – Binary Target • If the actual Y is a binary variable then the predicted Y can be less than zero or greater than 1 • If the actual Y is a binary variable then error is not normally distributed. www.ismartsoft.com

  7. Linear Regression Model Y 1 0 X www.ismartsoft.com

  8. Frequency Table www.ismartsoft.com

  9. Frequency Plot Default Probability Months in Business - Bins www.ismartsoft.com

  10. Logistic Function www.ismartsoft.com

  11. Logistic Regression • The logistic distribution constrains the estimated probabilities to lie between 0 and 1. • Maximum Likelihood Estimation is a statistical method for estimating the coefficients of a model. www.ismartsoft.com

  12. Logistic Model Logistic Regression Model Linear Model Y 1 0 X www.ismartsoft.com

  13. Maximum Likelihood Estimation (MLE) • MLE maximizes the log likelihood (LL) which reflects how likely it is that the dependent variable will be predicted from the independent variables. • MLE is an iterative algorithm which starts with initial arbitrary numbers of what the coefficients should be. • After this initial function is estimated, the process is repeated until LL does not change significantly. www.ismartsoft.com

  14. Log Likelihood (LL) • Likelihood is the probability that the dependent variable may be predicted from the independent variables. • LL is calculated through iteration, using maximum likelihood estimation (MLE). • Log likelihood is the basis for tests of a logistic model. www.ismartsoft.com

  15. Log Likelihood Test (-2LL) • The log likelihood test is a test of the significance of the difference between the likelihood ratio for the baseline model minus the likelihood ratio for a reduced model. • This difference is called "model chi-square“. • Also called Likelihood Ratio test. www.ismartsoft.com

  16. Wald Test • A Wald test is used to test the statistical significance of each coefficient (b) in the model. • A Wald test calculates a Z statistic, which is: • This Z value is then squared, yielding a Wald statistic with a chi-square distribution. www.ismartsoft.com

  17. Summary • Logistic Regression is a classification method. • It returns the probability that the binary dependent variable may be predicted from the independent variables. • Maximum Likelihood Estimation is a statistical method for estimating the coefficients of the model. • The Likelihood Ratio test is used to test the statistical significance between the full model and the simpler model. • The Wald test is used to test the statistical significance of each coefficient in the model. www.ismartsoft.com

  18. Questions? www.ismartsoft.com

More Related