Logistic Regression
Logistic Regression
1
10-09-2023
• The one shown with those breaks in the function but this is two
engineered way to custom to be a standard approach Fixing the Prior Approach
• Could we do something better and let's think what should we do to
fix this again note that probabilities should be between 0 and 1
• We need to somehow constrain p such that 0≤𝑝≤1
• We know p = f(age), but the linear function didn’t work.
• What must f(.) satisfy to always produce reasonable forecasts?
• f(.) must satisfy two things:
• It must always be positive (since p ≥0)
• It must be less than 1 (since p ≤1)
2
10-09-2023
3
10-09-2023
Reading References
• https://medium.com/greyatom/logistic-regression-union-between-
regression-and-classification-8a71b77562ae
• https://classeval.wordpress.com/introduction/basic-evaluation-measures/
• https://www.dataschool.io/simple-guide-to-confusion-matrix-terminology/
• https://towardsdatascience.com/decoding-the-confusion-matrix-
bb4801decbb
• https://www.hackerearth.com/practice/machine-learning/machine-
learning-algorithms/logistic-regression-analysis-r/tutorial/
• https://www.real-statistics.com/free-download/real-statistics-resource-
pack/ Excel add-in for logistic regression