Lecture 37- Logistic Regression Flashcards
When do we use logistic regression?
- To model data that has a binary outcome
- Can be used to examine the effect of x on the probability of a given outcome
In logistic regression if the probability of y=1 is p what is the probability of y=0?
1-p
-The are complimentary events either the outcome of the binary event is a success or it isn’t
What shape is a logistic curve?
S shaped
P greater than O goes positive way (hill last)
P less than 0 goes negative way (hill first)
What is the logistic model given by?
logit (p)= log (p/ (1-p))= b naught + b 1 times x
In the logistic regression model what is p/ (p-1)? What happens when you logs this?
The odds of the event y=1 occurring, so when log this it is the log odds
What is beta naught and beta 1 in a logistic regression model?
- Beta naught is the log odds when x=0, i.e. the y intercept
- Beta 1 is the gradient i.e. the change in the log odds for a unit increase in the predictor variable x
What is maximum likelihood estimation used for?
To estimate regression coefficients
Interpret the table on slide 721? What value would you pull out as important?
Answers on slide
What does increase x by one unit result in? Use this info to go from the log odds to the odds for the newt and shade example on slide 724?
A multiplicative change of e^b1 to the odds
Answers on slides