logistic regression Flashcards
what is logistic regression
a model that outputs real number in [0,1] thresholded at 0.5 to obtain primary outcomes (class 0 or class 1)
what is the goal of logisitic regression
predict probability example belongs to the ‘1’ class
applications of log reg
used in medical and social sciences
appoarch of log reg
1) used log odds to create a linear model
2) appply sigmoid function to convert log odds to a real number in [0,1] i.e the probability
what does probability mean
A number p ∈ [0,1] that describes likelihood of event occurring
what does odds mean
ratio of the probabilty of the event occurring to the probability of the event not occurring
what does logit (log odds) mean
the logarithms of the odds
what is the equation for log-odds
logit(p) = log (p / 1 - p) =log(p) - log(1 -p)