Complete AI Training
Sign inGet my AI kit

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

AI agent for physicists

Monte Carlo Validation Agent

Reach documented agreement between simulation and control data, or report the remaining gap.

Monte Carlo Validation Agent: what goes in, what the agent does and what you get

What it does

A simulation is only as good as its agreement with data, yet many are used for corrections and predictions after one quick look at a plot. This agent takes a simulation output and a control sample from data in a region where the physics is well known. It compares key distributions, such as energy, angle, multiplicity and efficiency, using the lab's metric, such as chi-squared or ratio plots with uncertainties. It flags those that disagree beyond tolerance, then tries changes to the settings, for example the physics list, tune or detector geometry parameters, and reruns. It rechecks until agreement is within tolerance or the remaining gap is documented. It never replaces production settings. The physicist approves. Edge case: a disagreement that is covered by the systematic uncertainty is reported but not chased.

How it works

Follow the arrows from top to bottom. The orange dashed arrow is the loop: when a check fails, the agent goes back and tries again.

Start and resultWhat it doesA check on its own workWaits for your OKGoes back and retries
Yes, continueYes, continueApprovedNoNo 1 STARTS WHEN Simulation ready 2 USES A TOOL Load simulation and control data 3 DOES Make the comparison plots and compute the metric foreach distribution 4 CHECKS THE RESULT Is every distribution within tolerance? If not: choose a setting change likely to help and rerunthe simulation. Back to step 3. 5 USES A TOOL Rerun with one changed setting 6 DOES Recompute the metric and compare with the previousversion 7 CHECKS THE RESULT Did the change improve agreement without worseninganother distribution? If not: revert the change and try the next setting. Backto step 5. 8 DOES Write the validation report with tried changes 9 YOU APPROVE Physicist approves settings and the remaining gap 10 RESULT Validated settings and report
Read the steps as a list
  1. Simulation ready
  2. Load simulation and control data
  3. Make the comparison plots and compute the metric for each distribution
  4. Is every distribution within tolerance?If not: choose a setting change likely to help and rerun the simulation. Back to step 3.
  5. Rerun with one changed setting
  6. Recompute the metric and compare with the previous version
  7. Did the change improve agreement without worsening another distribution?If not: revert the change and try the next setting. Back to step 5.
  8. Write the validation report with tried changes
  9. Physicist approves settings and the remaining gapThe agent waits here for your OK.
  10. Validated settings and report

How it decides

It judges agreement by the chosen metric against the tolerance. It tries one setting change at a time, so it can tell which change caused an improvement.

  • Change one setting at a time
  • Accept a distribution when the ratio to data is within tolerance across its range
  • Revert any change that worsens another distribution
  • Skip chasing differences within systematic uncertainty

Make it yours

Every agent is a starting point. You choose these settings for your own situation.

  • Distributions to compare
  • Agreement metric and tolerance
  • Settings the agent may change
  • Run budget (default 8 reruns)
  • Control sample

What keeps you in control

It always asks you first

  • Adopting new settings
  • The stated remaining disagreement

Hard limits

  • Never overwrite the production settings
  • Keep every tested configuration on file

It stops when

  • Done: agreement within tolerance or the gap is documented and approved
  • Stop: run budget used up

Set it up

We guide you through the set-up, step by step

Members get the full set-up guide for this agent. No technical skills needed: you copy, paste and upload.

10 minto set it up in your AI
5 AIsChatGPT, Claude, Copilot, Gemini, Grok
  • One set of instructions to paste into your AI, with the clicks for ChatGPT, Claude, Microsoft 365 Copilot, Gemini and Grok
  • The agent then walks you through connecting your own data, one source at a time
  • A downloadable copy with the flow chart, the rules and the full guide
Get access to this agent

An example run

What happensA detector simulation overestimated muon momentum above 40 GeV by 12%, with chi-squared per bin of 2.8. The agent changed the multiple scattering model, which cut the gap to 7% but worsened the angle distribution, so it reverted. A geometry tweak brought momentum to 4% and chi-squared to 1.2 with the angle intact. The physicist approved it.

More agents for physicists