Challenge - 5 Problems
Residual Analysis Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Understanding Residuals in Regression
What does a residual represent in a regression model?
Attempts:
2 left
❓ Predict Output
intermediate2:00remaining
Calculate Residuals from Predictions
Given the true values and predicted values below, what is the list of residuals?
ML Python
true_values = [10, 15, 20, 25] predicted_values = [8, 14, 22, 24] residuals = [true - pred for true, pred in zip(true_values, predicted_values)] print(residuals)
Attempts:
2 left
❓ Metrics
advanced2:00remaining
Choosing the Correct Residual Metric
Which metric best summarizes the average magnitude of residuals without canceling positive and negative errors?
Attempts:
2 left
🔧 Debug
advanced2:00remaining
Identify the Error in Residual Calculation Code
What error will this code produce when calculating residuals?
ML Python
true_vals = [5, 7, 9] pred_vals = [4, 6] residuals = [t - p for t, p in zip(true_vals, pred_vals)] print(residuals)
Attempts:
2 left
❓ Model Choice
expert3:00remaining
Model Selection Based on Residual Patterns
You observe a pattern in residuals that increases with predicted values, indicating heteroscedasticity. Which model adjustment is best to address this?
Attempts:
2 left