🟪 1-Minute Summary

R² (coefficient of determination) measures the proportion of variance in the target explained by the model. Range: -∞ to 1 (1 = perfect fit, 0 = model is no better than mean, negative = worse than mean). Formula: 1 - (SS_residual / SS_total). Adjusted R² penalizes adding useless features. Use for model comparison, but not as the only metric.


🟦 Core Notes (Must-Know)

What is R²?

[Content to be filled in]

Formula

[Content to be filled in]

Interpretation

[Content to be filled in]

Adjusted R²

[Content to be filled in]

Limitations

[Content to be filled in]


🟨 Interview Triggers (What Interviewers Actually Test)

Common Interview Questions

  1. “What does R² = 0.8 mean?”

    • [Answer: 80% of variance in target is explained by the model]
  2. “Can R² be negative?”

    • [Answer: Yes - model is worse than predicting the mean]
  3. “Why use adjusted R² instead of R²?”

    • [Answer: Penalizes adding features that don’t improve fit]

🟥 Common Mistakes (Traps to Avoid)

Mistake 1: Using R² as the only evaluation metric

[Content to be filled in]

Mistake 2: Thinking higher R² always means better model

[Content to be filled in - could be overfitting]


🟩 Mini Example (Quick Application)

Scenario

[Compare models using R²]

Solution

from sklearn.metrics import r2_score

# Example to be filled in


Navigation: