Lecture 38- Hypothesis test for Logistic Regression Flashcards

1
Q

Draw what a positive logistic curve would look like and then a negative logistic curve….

A

Answers on slide on slide 728

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the null and alternative hypothesis for logistic regression? What acts as evidence against the null?

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What function do you put in r to obtain the p value?

A

2*pnorm(abs(z), lower.tail= FALSE)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does abs mean?

A

Absolute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do we calculate the z (test statistic)?

A

Estimated parameter for slope/ standard error for slope (beta 1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

For logistic regression does x have to be continuous?

A

No, it is common to use it for contingency tables where both x and y are binary variables with 2 outcomes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Complete the example on slide 735 to do a hypothesis test for contingency table/ binary logistic regression…

A

Answers in slides

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the basic idea of logistic regression? What is a hypothesis test useful for?

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly