A grade analytics toolkit
The problem
Analyse a class's marks stored as a students × subjects array: totals, averages, rankings, standardised scores and a grade histogram, all without Python loops over the data.
Requirements
- Load the marks into a 2-D array and validate the shape and range
- Per-student and per-subject totals, means and standard deviations with axis reductions
- Rankings with argsort and standardised scores with broadcasting
- A histogram of grades and the percentiles used for grade boundaries
Technologies
- Python 3
- NumPy
- Reductions and broadcasting
- argsort and percentiles
Step by step
- Create or load the marks array and check its shape and dtype.
- Compute the reductions along each axis and print a summary table.
- Rank students and standardise each subject.
- Set grade boundaries from percentiles and print a text histogram.
Expected result
A short script that turns a marks array into a complete class report.
How it is evaluated
- No Python loop goes over individual marks
- Every axis choice is correct and explained
- Results match hand calculations on a small class
- The report is readable
Ways to improve it
- Handle missing marks with nan-aware functions
- Weight subjects by credits with a dot product
- Compare two classes