All projects

Education · 5,000 student records

The model that was too perfect

A regression came back with R² = 1.000. Instead of celebrating, I went looking for the leak — and found it.

RMultiple regressionHypothesis testingEDA
The question

Do internet access and study hours actually predict academic success — or is that just what everyone assumes?

The twist

My regression returned R² = 1.000. In real data, perfection is a symptom, not a triumph. I dug in and found the leak: the “final percentage” was a derived field — an equal-weighted average (33.3% each) of the three subject scores. The model had been predicting the answer with the answer.

The verdict

Rebuilt on independent predictors, the story flipped. Students without internet passed at 94.8% versus 94.6% with it — a 0.2-point gap that makes connectivity a non-factor in this sample. Study hours showed r = −0.013 against final grades: essentially no relationship. Success here was subject mastery, which argues for mastery-focused teaching over time-based study mandates.

Fig. 2 — two scatters, one lesson
Study hours → grader = −0.013
More hours studied did not mean better grades. The trend is flat.
Subject scores → gradeR² = 1.000 ⚠
Every point on the line. Real data never fits this well — so I investigated.
0.0%
pass rate without internet access
0.0%
pass rate with internet — a 0.2-pt gap
0
student records modeled
0
variables in the correlation pass

Next project

The weekend effect, and the Tuesday problem