W2: Logistic Regression Flashcards
Sometimes the responsee variable Y is not continous but binary, for example we may be interested in whether individuals (3)
Logistic regression
- pass or fail
- suffer from bipolar disorder or not
- go to university or not
Since Y (response) is binary, instead of continuous, we cannot use
multiple linear regression, instead we use logistic regression
Logistic regression equation formula:
What does p stand for in logistic regression equation formula?
probability , p, of the event of interest (response;y)
We can find the estimated proability p for an indivudal by rearranging the logistic regression equation formula:
How to put null hypothesis and alternate hypothesis of logistic regression?
Rather than a t-test in multiple linear regression, we use __ test in logistic regression
Wald test
Assess our model (fit) by considering the following 3 in logistic regression
- R^2 value
- Sensitivity and specificty model value
- Signifiance of covariates
Sensitvity and Specficity Table Labelled
In the sensitivty and specifcity table, we use the regression equation to make predictions then compare to observed values and display this information in a
contigency table
What is sensitivity of the model?
Logistic regression
Probabilty of predicting an event correctly
What is specificty of the model?
Logistic regression
Probability of predicting no event correctly of the model
Nagelkere R^2 can be interpreted
Logistic regression
the same way as R^2 in simple/multiple linear regression
Why is Nagelkere R^2 be treated as caution? - (2)
Logistic regression
There is no single way to calculate R^2 in logistic regression
As a result, the Nagelkere R^2 (and others) are often reffered to as pseudo-R^2
Step 1: Exploratory Analysis Example showing both covariates are useful - (3)
Logistic regression
From the boxplot, those who succeed (0) tend to be younger on average than those who fail (1), with less variability in their ages (boxplots)
From the table, we see more women (0) succeed at the task than fail, whereas men (1) fail than suceed
Both covariates are useful