Lecture 38- Hypothesis test for Logistic Regression Flashcards
Draw what a positive logistic curve would look like and then a negative logistic curve….
Answers on slide on slide 728
What is the null and alternative hypothesis for logistic regression? What acts as evidence against the null?
- Null: beta 1= 0
- Alternative: beta 1 doesn’t equal 0
- Essential when slope is 0 there is no relationship (the explanatory variable x is not predicting y)
- The further away our test statistic is from 0 the greater the evidence is against the null, there is a relationship
What function do you put in r to obtain the p value?
2*pnorm(abs(z), lower.tail= FALSE)
What does abs mean?
Absolute
How do we calculate the z (test statistic)?
Estimated parameter for slope/ standard error for slope (beta 1)
For logistic regression does x have to be continuous?
No, it is common to use it for contingency tables where both x and y are binary variables with 2 outcomes
Complete the example on slide 735 to do a hypothesis test for contingency table/ binary logistic regression…
Answers in slides
What is the basic idea of logistic regression? What is a hypothesis test useful for?
- Logistic regression is the modification of linear regression for binary response variables
- We model how the log odds of a y=1 response changes with a predictor variable x
- Testing via hypothesis test for the slope parameter can be used to access evidence that the probability of y=1 depends on x