📘 Section 11.10 – Logistic Regression

🔍 1. Why Logistic Regression?

🚫 2. Problems with Linear Regression for Binary Response

🔢 3. Logistic Function Derivation

Let π(x) = P(Y = 1 | x), the probability of success. The logistic function ensures predicted probabilities stay within [0, 1]:

π(x) = exp(β₀ + β₁x) / [1 + exp(β₀ + β₁x)]
     = 1 / [1 + exp(−(β₀ + β₁x))]
  

📉 4. Odds and Log-Odds

The odds of success are:

odds = π(x) / [1 − π(x)] = exp(β₀ + β₁x)

Taking the log gives the logit (log-odds):

log(odds) = log[π(x)/(1−π(x))] = β₀ + β₁x

📖 5. Interpretation of Coefficients

📈 6. Graph: Logistic Curve (O-Ring Example)

Fitted model:
P(Y=1) = 1 / [1 + exp(−(10.875 − 0.17132 × Temp))]

📊 7. Estimation via Maximum Likelihood

✅ 8. Summary