Robot Learning · Research Practice and Capstone · M11-L1 · Intermediate
Compare Two Policies Statistically
Experiment log · Scout at Meridian General Hospital
Experiment log, Meridian General Hospital, robotics office. Two training recipes for Scout are on the table: policy A is tuned in the nominal simulator, policy B is trained on randomised floors. The night-shift lead wants one sentence: "run B" or "keep A" or "we cannot say". Each recipe was trained with several seeds and every trained controller was scored on a test floor, so each policy is a short list of success rates, one per seed.
Some comparisons are easy, some are noise, one has a big gap in the means but seed scores that are all over the place, and one has a tiny gap that is consistent but would never change what the ward does. You build the three tools that turn the lists into a defensible answer: a mean with an honest interval, a permutation test, and a verdict that needs both a small p-value and a gap worth acting on. This is a toy study on the simulated Scout: no real robot data is used.
Your task
Lab complete: post-mortem
You have passed every stage. Now connect it back to the theory and move on:
Output
What Python can I use?
Plain Python with math and heapq. Your code runs in a background worker: an endless loop is stopped after a few seconds and the page stays usable. It runs in your browser and is never sent anywhere.