Logistic Regression.

Slides:



Advertisements
Similar presentations
Logistic Regression I Outline Introduction to maximum likelihood estimation (MLE) Introduction to Generalized Linear Models The simplest logistic regression.
Advertisements

Logistic Regression.
Chapter 8 – Logistic Regression
Simple Logistic Regression
Quantitative Skills 4: The Chi-Square Test
Differences Between Population Averages. Testing the Difference Is there a difference between two populations? Null Hypothesis: H 0 or Alternate Hypothesis:
Logistic Regression Part I - Introduction. Logistic Regression Regression where the response variable is dichotomous (not continuous) Examples –effect.
Logistic Regression and Odds Ratios
April 25 Exam April 27 (bring calculator with exp) Cox-Regression
Logistic Regression Multivariate Analysis. What is a log and an exponent? Log is the power to which a base of 10 must be raised to produce a given number.
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 14-1 Chapter 14 Introduction to Multiple Regression Basic Business Statistics 11 th Edition.
Logistic Regression Biostatistics 510 March 15, 2007 Vanessa Perez.
1 SOC 3811 Basic Social Statistics. 2 Reminder  Hand in your assignment 5  Remember to pick up your previous homework  Final exam: May 12 th (Saturday),
Stat 217 – Day 25 Regression. Last Time - ANOVA When?  Comparing 2 or means (one categorical and one quantitative variable) Research question  Null.
An Introduction to Logistic Regression
Logistic Regression Source
Multinomial Logistic Regression Basic Relationships
Generalized Linear Models
Logistic regression for binary response variables.
Logistic Regression In logistic regression the outcome variable is binary, and the purpose of the analysis is to assess the effects of multiple explanatory.
STAT E-150 Statistical Methods
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS & Updated by SPIROS VELIANITIS.
Example of Simple and Multiple Regression
Logistic Regression II Simple 2x2 Table (courtesy Hosmer and Lemeshow) Exposure=1Exposure=0 Disease = 1 Disease = 0.
Testing Group Difference
Wednesday PM  Presentation of AM results  Multiple linear regression Simultaneous Simultaneous Stepwise Stepwise Hierarchical Hierarchical  Logistic.
Hypothesis Testing.
Simple Linear Regression. Correlation Correlation (  ) measures the strength of the linear relationship between two sets of data (X,Y). The value for.
Let’s flip a coin. Making Data-Based Decisions We’re going to flip a coin 10 times. What results do you think we will get?
April 11 Logistic Regression –Modeling interactions –Analysis of case-control studies –Data presentation.
Multinomial Logistic Regression Basic Relationships
April 6 Logistic Regression –Estimating probability based on logistic model –Testing differences among multiple groups –Assumptions for model.
AN INTRODUCTION TO LOGISTIC REGRESSION ENI SUMARMININGSIH, SSI, MM PROGRAM STUDI STATISTIKA JURUSAN MATEMATIKA UNIVERSITAS BRAWIJAYA.
Multiple Regression and Model Building Chapter 15 Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Chap 14-1 Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 14-1 Chapter 14 Introduction to Multiple Regression Basic Business Statistics.
April 4 Logistic Regression –Lee Chapter 9 –Cody and Smith 9:F.
1 1 Slide © 2014 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Exam 1 Review. Data referenced throughout review The Federal Trade Commission annually rates varieties of domestic cigarettes according to their tar,
PY 603 – Advanced Statistics II TR 12:30-1:45pm 232 Gordon Palmer Hall Jamie DeCoster.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 13 Multiple Regression Section 13.3 Using Multiple Regression to Make Inferences.
14- 1 Chapter Fourteen McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved.
SW318 Social Work Statistics Slide 1 Logistic Regression and Odds Ratios Example of Odds Ratio Using Relationship between Death Penalty and Race.
Multiple Regression. Simple Regression in detail Y i = β o + β 1 x i + ε i Where Y => Dependent variable X => Independent variable β o => Model parameter.
Testing Regression Coefficients Prepared by: Bhakti Joshi February 06, 2012.
Multiple Logistic Regression STAT E-150 Statistical Methods.
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc.. Chap 14-1 Chapter 14 Introduction to Multiple Regression Basic Business Statistics 10 th Edition.
LOGISTIC REGRESSION Binary dependent variable (pass-fail) Odds ratio: p/(1-p) eg. 1/9 means 1 time in 10 pass, 9 times fail Log-odds ratio: y = ln[p/(1-p)]
Logistic Regression Analysis Gerrit Rooks
Dates Presentations Wed / Fri Ex. 4, logistic regression, Monday Dec 7 th Final Tues. Dec 8 th, 3:30.
Logistic regression (when you have a binary response variable)
Introduction to Multiple Regression Lecture 11. The Multiple Regression Model Idea: Examine the linear relationship between 1 dependent (Y) & 2 or more.
Jump to first page Inferring Sample Findings to the Population and Testing for Differences.
Hypothesis Testing and Statistical Significance
LOGISTIC REGRESSION. Purpose  Logistical regression is regularly used when there are only two categories of the dependent variable and there is a mixture.
BINARY LOGISTIC REGRESSION
Logistic Regression When and why do we use logistic regression?
Logistic Regression APKC – STATS AFAC (2016).
Logistic Regression.
Least Square Regression
Least Square Regression
John Loucks St. Edward’s University . SLIDES . BY.
Generalized Linear Models
Multiple logistic regression
ביצוע רגרסיה לוגיסטית. פרק ה-2
Categorical Data Analysis Review for Final
Logistic Regression.
Introduction to Regression
Correlation and Simple Linear Regression
Presentation transcript:

Logistic Regression

What Type of Regression? Dependent Variable – Y Continuous – e.g. sales, height Dummy Variable or Multiple Regression

What Type of Regression? Dependent Variable – Y Continuous – e.g. sales, height Dummy Variable or Multiple Regression Binary (0 or 1) – Purchased product or didn’t purchase Logistic Regression

Logistic Regression A logistic regression can be viewed as regression where the dependent variable Y is a Dummy variable or a binary variable (0 or 1).

Examples A success may be defined in terms of having a credit card client upgrade from a standard card to a premium card. A success may be defined in terms of launching the Space Shuttle successfully and not having any damage to the secondary motors during the launch and flight.

Odds Ratio Odds Ratio: a logistic regression is based on the idea of an odds ratio, the probability of a success over the probability of a failure. pr = probability

Odds Ratio Odds Ratio: a logistic regression is based on the idea of an odds ratio, the probability of a success over the probability of a failure.

Interpreting Odds Ratios Equally likely to Succeed or Fail

Interpreting Odds Ratios Equally likely to Succeed or Fail Odds Ratio = 3 Three time more likely to Succeed than to Fail

Interpreting Odds Ratios Equally likely to Succeed or Fail Odds Ratio = 1/4 Four time more likely to Fail than to Succeed

Upgrading a Credit Card A manager would like to know what influences the chance that a credit card customer would upgrade their credit card from a standard to a premium card Possible Predictors of Chance Customer Upgrades Annual Credit Card Spending If they posses additional credit cards Introductory offers Gift certificate to a local restaurant Reduced Interest rate for six months

Data 1 = Upgrade 1 = Additional Credit Card 1 = Reduced Interest Rate 0 = Gift Certificate

Model Assumption The Model:

Estimating Using SPSS Select: Analyze/Regression/Binary Logistic

Interpreting SPSS Output Classification Table for UPGRADE The Cut Value is .50 Predicted No Upgrade Upgrade Percent Correct N ó U Observed ôòòòòòòòòòòòôòòòòòòòòòòòô No Upgrade N ó 16 ó 1 ó 94.12% ôòòòòòòòòòòòôòòòòòòòòòòòô Upgrade U ó 2 ó 11 ó 84.62% Overall 90.00% Total: 18 Total: 12 Correct =16/17 Total: 17 =11/13 Total: 13 Predicted, using model vs actual observed

Interpreting SPSS Output Parameter Estimates ---------------------- Variables in the Equation -----------------------   Variable B S.E. Wald df Sig R Exp(B) OTHERCAR 3.2971 1.6417 4.0335 1 .0446 .2226 27.0332 PROMOTIO 3.1350 1.2912 5.8953 1 .0152 .3080 22.9885 SPENDING -.0142 .0515 .0760 1 .7828 .0000 .9859 Constant -2.7946 1.5654 3.1871 1 .0742

Interpreting SPSS Output Hypothesis Testing ---------------------- Variables in the Equation -----------------------   Variable B S.E. Wald df Sig R Exp(B) OTHERCAR 3.2971 1.6417 4.0335 1 .0446 .2226 27.0332 PROMOTIO 3.1350 1.2912 5.8953 1 .0152 .3080 22.9885 SPENDING -.0142 .0515 .0760 1 .7828 .0000 .9859 Constant -2.7946 1.5654 3.1871 1 .0742 Wald = like t-statistic or z-statistic (Large Reject Null) Sig. = like p-value (Small Reject Null) Sig. for Spending Large Remove Spending

Interpreting SPSS Output Hypothesis Testing ---------------------- Variables in the Equation -----------------------   Variable B S.E. Wald df Sig R Exp(B) OTHERCAR 3.0184 1.2642 5.7003 1 .0170 .3002 20.4582 PROMOTIO 3.0508 1.2466 5.9895 1 .0144 .3117 21.1323 Constant -3.0994 1.1491 7.2750 1 .0070 Wald = like t-statistic or z-statistic (Large Reject Null) Sig. = like p-value (Small Reject Null) Sig. less than 0.05 Do not Remove any more variables

Model Choice Full Model:

Model Choice Full Model: Next and Final Model:

Predicting Probability of Success Customer Profile: Spent $0 last year:

Predicting Probability of Success Customer Profile: Spent $0 last year: Has no additional credit cards:

Predicting Probability of Success Customer Profile: Spent $0 last year: Has no additional credit cards: Received gift certificate promotion:

Predicting Probability of Success Customer Profile: Spent $0 last year: Has no additional credit cards: Received gift certificate promotion:

Predicting Probability of Success Customer Profile: Spent $0 last year:

Predicting Probability of Success Customer Profile: Spent $0 last year: Has additional credit cards:

Predicting Probability of Success Customer Profile: Spent $0 last year: Has additional credit cards: Received reduce interest promotion:

Predicting Probability of Success Customer Profile: Spent $0 last year: Has additional credit cards: Received gift certificate promotion:

Space Shuttle Analysis How does temperature influence the probability of damage occurring to the Space Shuttle’s engines?

Data 1 = Damage

SPSS Analysis Sig. for Temperature < 0.05 --------------------- Variables in the Equation -----------------------   Variable B S.E. Wald df Sig R Exp(B) TEPMERATURE -.2360 .1074 4.8320 1 .0279 -.3126 .7898 Constant 15.2954 7.3281 4.3565 1 .0369 Sig. for Temperature < 0.05 Temperature Influences Damage

Predicting Probability of Success Launch Profile: Temperature 36:

Predicting Probability of Success Launch Profile: Temperature 36: