Skip to content

Agentic AI can do your students' homework

A warning: Handing in work you did not do breaks the ethical ground rules of any university, and it also defeats the point of being there: you are at university to get better at what you do, and you do not get better by passing the work to something else. What follows is about what is now easy, so that we can set assessments knowing it.

The experiment

I took one of the projects from the Uppsala's first year Masters course on statistical machine learning course. The students are given a data set on bike rentals, asked to investigate it, to use one or more machine learning models to make predictions, and to write a report. I gave three instructions to Claude Opus and no other human input. 1, Solve this and write a report you could hand in. 2, Now imagine you are the examiner of the report you just handed in, read back over it, and see what you can improve. 3, Now correct the errors you found and produce a new submission. Processing took ten to fifteen minutes for each stage.

The report was good. It explored the data before modelling anything — the seasonal pattern over the year, demand across the day, the nonlinear relationships in both — which is a step students often skip. It tried the range of methods the task asked for, found that gradient boosting, random forest and bagging outperformed linear regression, and attributed that to precisely the nonlinearities identified by plotting the data. Then it did something students do less often still: it noted that gradient boosting's edge over random forest was small, tested how much better it actually was, and declined to recommend it on that basis.

The course awards a gold star to the best reports for those showing both a thorough understanding and a genuine extra contribution. The understanding was there, in the explanation of how linear models plateau because they don't capture some of the more complex relationships in the data. The extra contribution took two attempts: the first run offered something fairly dull about the random split being made in hours rather than whole days, but the second reached for Poisson deviance rather than squared error to discriminate between models. Asked to go further, it built a Streamlit app where you choose a day, a time and the weather and it predicts how hard it will be to rent a bike.

Four takeaways

It can do this. Not assist with it — do it, from the exercise and the data we set to code, interpretation and a finished PDF that we would have graded highly.

Our examination has already changed. This course was always primarily examined by a written, pencil-and-paper exam, so the damage was limited, but the hand-in is gone. It is now an oral exam, in which students explain the reasoning and the thinking behind how they solved the task.

The course's value to employers rests on something that is no longer only a human skill. Statistical machine learning course became enormously popular at Uppsala over the last decade — around 500 students a year — largely because being able to model a data set was what employers wanted. Agentic AI can do a good part of that.

So what we teach has to move, and, I speculate here, in two directions at once. Towards the mathematics: understanding how these models work matters more now that implementing them does not. And towards judgement: whether the method an agent has produced is the right one, and how to work with these tools on a realistic problem where the data is messy and the question is unclear. That second direction puts the onus on us to set problems worth solving that way, and it is quite new to how universities teach.

Also see