Statistics Quest

Student exam scores

Final mathematics exam scores for 400 grade-11 students in a fictional school district, Al Waha Learning District, with weekly study hours, attendance, the previous year's score, school type and whether the student received after-school tutoring. Tutoring was offered mainly to students who had struggled, so the raw comparison of tutored vs untutored students is misleading — a good dataset for correlation vs causation, confounding and multiple regression with a bounded outcome.

Rows
400
Columns
7
One row is
one student
Version
v1

Data dictionary

ColumnTypeUnitSummaryDescription
student_id
Student
idAnonymous student code.
school_type
School type
category3 levels: Public, Private, InternationalType of school.
prior_score
Prior score
integerpointsmean 69.38, median 69, SD 12.62, range 29–100Previous year's final mathematics score (0–100).
study_hours_week
Study hours
numberhours/weekmean 4.814, median 4.3, SD 2.611, range 0.5–17.2Self-reported average independent study hours per week.
attendance_pct
Attendance
number%mean 91.57, median 92.95, SD 6.073, range 60.8–99.8Percentage of classes attended this year.
tutoring
Tutoring
boolean2 levelsTrue if the student attended the after-school tutoring programme.
exam_score
Exam score
integerpointsmean 70.86, median 71, SD 11.14, range 39–100Final exam score (0–100).

What it is good for

  • Compute and interpret correlations between study habits and scores.
  • Show that a raw comparison understates (or even reverses) the tutoring effect because tutored students started lower.
  • Fit a multiple regression controlling for prior score and interpret the tutoring coefficient.
  • Discuss bounded outcomes (ceiling at 100) and the limits of observational data.

Methods: correlation, scatter plot matrix, two-sample t-test, multiple regression, confounding, ANCOVA.

Data quality notes

  • Tutoring is confounded with prior score: tutored students had much lower prior scores.
  • Exam scores are bounded at 0 and 100; a few students hit the ceiling.
  • Study hours are self-reported.
  • No missing values.

Provenance and licence

Prior score ~ Normal(68, 13) bounded to 20–100 (school-type shifts). Study hours are gamma, rising slightly with prior score; attendance is beta-distributed (median ≈92%). Tutoring is assigned with probability logistic(−0.9 − 0.09·(prior − 68)), so weaker students are much more likely to be tutored. Exam = 22 + 0.6·prior + 1.0·hours + 0.25·(attendance − 90) + 4·tutoring + school effect + Normal(0, 7), rounded and clamped to 0–100 (a few scores hit the 100 ceiling).

Synthetic data · CC0-1.0 (synthetic data generated by Statistics Quest) · generated deterministically (seed 20241022). It does not describe real people or organisations; any resemblance is coincidental.

Preview

Dataset

Student exam scores

400 rows · one row = one student · synthetic data

StudentSchool typePrior score (points)Study hours (hours/week)Attendance (%)TutoringExam score (points)
ST001Private765.289false66
ST002Public754.194.4false73
ST003Private83286.1true86
ST004Public818.688.2false81
ST005Public704.985.2false74
ST006Public801.793.5false83
ST007Public923.791.9false75
ST008Private625.285.8false68
ST009Private681.686.6false59
ST010Private877.293.3false100
ST011Private632.493.1false72
ST012Public743.887.8false74

Used in