Code RoomR-squared masks forecast bias
MediumPrep Room Coding #4224

R-squared masks forecast bias

Vibe & agenticAlgorithms & data structuresMid–Senior~15 min

An AI evaluated this demand-forecasting regression and reported a great R-squared. The forecasts are systematically off in production. Critique the metric choice.

Implement
forecast_error_report(actuals: list[float], preds: list[float]) → list[float]
Examples
in[[100,200,300,400],[110,190,330,370]]out[20,0.08,0]
in[[50,50],[60,70]]out[15,0.3,15]
What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it (tests, edge cases, reading critically), and how you’d re-prompt or decompose to get it right.

0:00 of about 15 min

Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.

Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.