πŸŽ‰ 75% of content is free forever β€” Unlock Premium from $10/mo β†’
CW
Search courses…
πŸ’Ό Servicesℹ️ Aboutβœ‰οΈ ContactView Pricing Plansfrom $10

Logistic Regression

StatisticsClassification🟒 Free Lesson

Advertisement

Logistic Regression


Overview

Logistic regression models the probability that a binary outcome given features . Unlike linear regression, it uses the sigmoid function to map the linear predictor to a probability between 0 and 1. The model is linear in the log-odds space: . Coefficients exponentiate to odds ratios (), providing intuitive effect size estimates. A classification threshold (typically 0.5) converts probabilities to binary predictions. The model is fitted via maximum likelihood estimation (MLE), not OLS.


Key Concepts

Classification Metrics

MetricFormulaUse Case
AccuracyBalanced classes
PrecisionCost of false positive high
RecallCost of false negative high
F1 ScoreBalance precision and recall
AUC-ROCArea under ROC curveThreshold-independent evaluation

Odds Ratio Interpretation

OR ValueInterpretation
OR = 1No association
OR > 1Positive association (increases odds)
OR < 1Negative association (decreases odds)
OR = 2Doubles the odds
OR = 0.5Halves the odds

Quick Example


Key Takeaways


Deep Dive

For detailed explanations, worked examples, and Python implementations, explore the dedicated statistics lessons:

Logistic Regression

Odds Ratios

  • Odds Ratios β€” Interpreting coefficients as odds ratios, confidence intervals, and practical examples

Related Topics

Need Expert Mathematics Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement