Predictive modelling · GLMs · AI agents
Auto Research: An Agent That Searches for a GLM
- Problem
- Choosing a GLM’s structure (which factors, what shape for age, which interactions) is where most of a pricing or experience analysis goes, and an automated search can overfit, or reach for a factor it must not use.
- Built
- Karpathy’s autoresearch loop pointed at actuarial GLMs. An agent edits one file, a fixed harness it cannot touch fits and scores the model, and a change is kept only if the score falls. Four problems (mortality, motor frequency and severity, competitor price) have structure planted in the data, and every fit runs in the browser.
About the drawing
The agent’s loop, and its control: on the mortality problem a mechanical search with no model scores level with the live agent.