Logistic Regression. Linear Regression Purchases vs. Income.

Slides:



Advertisements
Similar presentations
Chapter 2 Describing Contingency Tables Reported by Liu Qi.
Advertisements

Sociology 680 Multivariate Analysis Logistic Regression.
Linear Regression.
Brief introduction on Logistic Regression
- Word counts - Speech error counts - Metaphor counts - Active construction counts Moving further Categorical count data.
Logistic Regression Psy 524 Ainsworth.
Logistic Regression I Outline Introduction to maximum likelihood estimation (MLE) Introduction to Generalized Linear Models The simplest logistic regression.
Logistic Regression.
Week 3. Logistic Regression Overview and applications Additional issues Select Inputs Optimize complexity Transforming Inputs.
1 BINARY CHOICE MODELS: LOGIT ANALYSIS The linear probability model may make the nonsense predictions that an event will occur with probability greater.
Logistic Regression STA302 F 2014 See last slide for copyright information 1.
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.
Chapter 8 Logistic Regression 1. Introduction Logistic regression extends the ideas of linear regression to the situation where the dependent variable,
Introduction to Logistic Regression. Simple linear regression Table 1 Age and systolic blood pressure (SBP) among 33 adult women.
Notes on Logistic Regression STAT 4330/8330. Introduction Previously, you learned about odds ratios (OR’s). We now transition and begin discussion of.
An Introduction to Logistic Regression
Generalized Linear Models
Marshall University School of Medicine Department of Biochemistry and Microbiology BMS 617 Lecture 12: Multiple and Logistic Regression Marshall University.
Unit 4b: Fitting the Logistic Model to Data © Andrew Ho, Harvard Graduate School of EducationUnit 4b – Slide 1
Logistic Regression II Simple 2x2 Table (courtesy Hosmer and Lemeshow) Exposure=1Exposure=0 Disease = 1 Disease = 0.
Logistic Regression STA2101/442 F 2014 See last slide for copyright information.
Multiple Linear Regression. Purpose To analyze the relationship between a single dependent variable and several independent variables.
Logistic Regression Database Marketing Instructor: N. Kumar.
Logistic regression A quick intro. Why Logistic Regression? Big idea: dependent variable is a dichotomy (though can use for more than 2 categories i.e.
AN INTRODUCTION TO LOGISTIC REGRESSION ENI SUMARMININGSIH, SSI, MM PROGRAM STUDI STATISTIKA JURUSAN MATEMATIKA UNIVERSITAS BRAWIJAYA.
1 היחידה לייעוץ סטטיסטי אוניברסיטת חיפה פרופ’ בנימין רייזר פרופ’ דוד פרג’י גב’ אפרת ישכיל.
LOGISTIC REGRESSION A statistical procedure to relate the probability of an event to explanatory variables Used in epidemiology to describe and evaluate.
Logistic Regression. Conceptual Framework - LR Dependent variable: two categories with underlying propensity (yes/no) (absent/present) Independent variables:
When and why to use Logistic Regression?  The response variable has to be binary or ordinal.  Predictors can be continuous, discrete, or combinations.
Linear vs. Logistic Regression Log has a slightly better ability to represent the data Dichotomous Prefer Don’t Prefer Linear vs. Logistic Regression.
Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
April 4 Logistic Regression –Lee Chapter 9 –Cody and Smith 9:F.
Assessing Binary Outcomes: Logistic Regression Peter T. Donnan Professor of Epidemiology and Biostatistics Statistics for Health Research.
Multiple Logistic Regression STAT E-150 Statistical Methods.
© Department of Statistics 2012 STATS 330 Lecture 22: Slide 1 Stats 330: Lecture 22.
Logistic Regression. Linear regression – numerical response Logistic regression – binary categorical response eg. has the disease, or unaffected by the.
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 Saed Sayad 1www.ismartsoft.com.
CSE 5331/7331 F'07© Prentice Hall1 CSE 5331/7331 Fall 2007 Regression Margaret H. Dunham Department of Computer Science and Engineering Southern Methodist.
Introduction to Multiple Regression Lecture 11. The Multiple Regression Model Idea: Examine the linear relationship between 1 dependent (Y) & 2 or more.
Logistic Regression Hal Whitehead BIOL4062/5062.
Roger B. Hammer Assistant Professor Department of Sociology Oregon State University Conducting Social Research Logistic Regression Categorical Data Analysis.
Logistic Regression and Odds Ratios Psych DeShon.
Nonparametric Statistics
Birthweight (gms) BPDNProp Total BPD (Bronchopulmonary Dysplasia) by birth weight Proportion.
Logistic Regression For a binary response variable: 1=Yes, 0=No This slide show is a free open source document. See the last slide for copyright information.
1 BINARY CHOICE MODELS: LOGIT ANALYSIS The linear probability model may make the nonsense predictions that an event will occur with probability greater.
LOGISTIC REGRESSION. Purpose  Logistical regression is regularly used when there are only two categories of the dependent variable and there is a mixture.
Logistic Regression: Regression with a Binary Dependent Variable.
Chapter 13 LOGISTIC REGRESSION. Set of independent variables Categorical outcome measure, generally dichotomous.
Nonparametric Statistics
BINARY LOGISTIC REGRESSION
Logistic Regression When and why do we use logistic regression?
Logistic Regression APKC – STATS AFAC (2016).
Advanced Quantitative Techniques
Logistic Regression.
Notes on Logistic Regression
Basic Estimation Techniques
LOGISTIC REGRESSION 1.
Introduction to logistic regression a.k.a. Varbrul
Basic Estimation Techniques
Nonparametric Statistics
Section 10.2: Fitting a Linear Model to Data
Introduction to Logistic Regression
Modeling with Dichotomous Dependent Variables
Chapter 6 Logistic Regression: Regression with a Binary Dependent Variable Copyright © 2010 Pearson Education, Inc., publishing as Prentice-Hall.
Logistic Regression.
Presentation transcript:

Logistic Regression

Linear Regression

Purchases vs. Income

R Graphical Parameters

Purchase Dataset Conceptually, if a person has greater income, the probability that he or she will purchase is greater than if the person has less income.

Categorical with a Linear Model

Residual vs.Fitted

Categorical Dependent Variable Binary Data Don’t Prefer Log is better at representing the data

Logistic Regression

The original classification table is put in here to get the Ns as well as to get the original percent among the respondents The original percent is turned into a probability The Average Odds is then multiplied by the Exp of the Beta. Which is then turned back into a percentage The original percentage is subtracted from the predicted percent to determine the change ~1:1 Ratio for getting a No or Yes Logit Model Includes Log; So Need to Convert to Odds 2.52 vs Odds = P / (1-P) Odds – (Odds*P) = P Odds = P + Odds*P Odds = P(1 + Odds) P = Odds / (1 + Odds) Delta from the Average Odds 100%-72% = 28% 72% / 28% = 2.6 The Regression Beta is then converted to Odds. Mathematics

Logistic Regression

Measure of Goodness R^2 ranges from 0 to 1.0, and can be considered as a percentage of variability. An R 2 of 1.0—or 100%—means that 100% of the variance in the dependent variable can be explained by variability in the independent variable or variables. We use the log likelihood as our criterion for the “best” coefficients. The closer to 0.0 a log likelihood: the better the fit the closer you’ve come to maximizing the estimate of the likelihood.

Probability of No Purchase: Person who did not purchase has a 0 on the Purchased variable Predicted probability of 2% that he will purchase Probability of Purchase: Person who did purchase has a 1 on the Purchased variable Predicted probability of 94% that this person will purchase The probabilities are of two different events: No Purchase and Purchase In the first case, it’s 98% that he doesn’t purchase, and he doesn’t.