Module 2 · Designing and running the study · Lesson 4
Designing the experiment
Turn the retrieval question into a design table with factors, levels and what is held fixed, choose baselines and a control that rule out the rival explanations, name the confounds LLM experiments add, and pick a trial count from a variance estimate rather than a habit.
By the end of this lesson you can
- Write a design table (factors, levels, held fixed, randomised, measured) for the retrieval experiment
- Choose baselines and controls, including a random-retrieval control, and say which rival explanation each one rules out
- Name the confounds specific to LLM experiments (prompt format, model drift, context length, a stale index) and show how the design controls each
- Estimate run-to-run variance from repeated trials and choose a trial count with the power rule from Machine Learning Foundations for LLM Work
- Build a harness that records the model id, prompt hashes, condition, trial index, raw output and schema validity for every call, with a manifest
