Skip to content

CCAR-P · Domain 4: Evaluation, Testing, and Optimization · 17% of the exam

Task 4.4: Experimental Design for Configuration Comparison

Designing a comparison of two prompt or model configurations that gives a readable result within a sample and cost budget, including how many runs per case separate a real difference from run-to-run noise.

Study it

Sample questions

Try each one before opening the answer. Every option is explained, with the Anthropic documentation page that proves it.

Question 1 · choose 1

A mature coding agent already passes most of its suite. The team compares its current prompt with a candidate that is expected to help only on a narrow class of hard refactoring tasks, so any difference will be small. The proposal is to rerun the 30 tasks the suite started with a year ago and ship whichever prompt scores higher. How should the comparison be designed to give an interpretable result?

  1. AKeep the 30 original tasks, since the agent's earlier changes showed clear differences on that set
  2. BCompare the prompts on live traffic with an A/B test over a single afternoon, using thumbs-up ratings as the score
  3. CBuild a larger, harder task set that includes the refactoring class, since small effects need more tasks
  4. DGrade the new refactoring tasks by whether the agent calls its tools in the expected order, so differences stand out
Show the answer and why
  • AKeep the 30 original tasks, since the agent's earlier changes showed clear differences on that set

    Incorrect

    More mature agents may need larger, more difficult evals to detect smaller effects than earlier changes had.

  • BCompare the prompts on live traffic with an A/B test over a single afternoon, using thumbs-up ratings as the score

    Incorrect

    A/B tests take days or weeks to reach significance, and user feedback is sparse and self-selected.

  • CBuild a larger, harder task set that includes the refactoring class, since small effects need more tasks

    Correct

    More mature agents may need larger, more difficult evals to detect smaller effects.

  • DGrade the new refactoring tasks by whether the agent calls its tools in the expected order, so differences stand out

    Incorrect

    Grading a fixed sequence of steps is brittle; agents find valid approaches the designers didn't anticipate.

Anthropic's eval guidance notes that more mature agents may need larger, more difficult evals to detect smaller effects. Grade what the agent produced rather than the path it took, and remember that A/B tests need traffic and days or weeks to reach significance.

Question 2 · choose 1

A team compares two prompt configurations by running both on the same 400 test cases. Their scores differ by two points, and the budget allows no extra runs. Which analysis does Anthropic's statistical approach to model evaluations recommend for an interpretable comparison?

  1. AA two-sample t-test that uses only each configuration's own standard error of the mean
  2. BPaired differences per test case, with the mean difference and its standard error
  3. CThe two observed averages side by side, since both configurations answered exactly the same cases
  4. DA naive standard error for each configuration, treating cases about one document as independent
Show the answer and why
  • AA two-sample t-test that uses only each configuration's own standard error of the mean

    Incorrect

    A two-sample test ignores the shared case list; pairing removes the variance in case difficulty.

  • BPaired differences per test case, with the mean difference and its standard error

    Correct

    With a shared case list, a paired-differences test is a free variance reduction; report the pairwise statistics.

  • CThe two observed averages side by side, since both configurations answered exactly the same cases

    Incorrect

    The research treats the observed average as a sample and asks for standard errors and pairwise differences.

  • DA naive standard error for each configuration, treating cases about one document as independent

    Incorrect

    Related cases call for clustered standard errors; naive ones underestimate the error.

Anthropic's statistical approach to model evaluations treats an eval score as a sample from a larger question universe and asks for standard errors. When two models or configurations answer the same question list, a paired-differences test removes the variance in question difficulty and focuses on the variance in responses, a free variance reduction; a two-sample test on each score's standard error ignores that structure. It recommends reporting mean differences, standard errors, confidence intervals and correlations, and clustering standard errors when questions are related.

Practice domain 4 →Practice all domains →