Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Evaluating and Scoring Agents

Free · sign in to start and track progress

1 · Foundations of evaluation

  • 1Why evals, and their vocabulary
  • 2Error analysis from traces
  • 3Code-based graders

2 · Scoring that you can trust

  • 4LLM-as-judge
  • 5Calibrating judges
  • 6Rubrics per task
  • 7Statistics, trials and CI gates

    Exercise answers

    • Answer: Measure flakiness and compare two prompt versions
    • Answer: Wire a two-tier eval gate into CI
CapstoneA full eval suite for your drafting agentReference implementation

Module 2 · Scoring that you can trust · Lesson 7

Statistics, trials and CI gates

Separate signal from noise in agent evals with repeated trials, pass@k and pass^k, confidence intervals and paired comparisons, then gate merges in CI and keep watching in production.

90 min 1 video 3 exercises 8-question quiz Answers
Setup for the exercises:Durable agents with eveGet an OpenRouter keyLocal models with OllamaRun evals in GitHub Actions

By the end of this lesson you can

  • Explain where variance in agent eval scores comes from, and run repeated trials with eve's --repeat and Claude Code headless
  • Compute pass@k and pass^k from trial counts, including the unbiased estimators, and choose the right one for a given agent
  • Put a confidence interval on a pass rate, cluster it by task when tasks have several trials, and estimate how many tasks you need
  • Compare two agent versions with a paired analysis and say whether the difference is real
  • Design a two-tier CI gate and a production monitoring loop with traces and a human review queue

On this page

  • Where the noise comes from
  • Repeated trials
  • pass@k and pass^k
  • Estimating them from trials
  • Suite averages hide the spread
  • Confidence intervals on a pass rate
  • How many tasks?
  • Cluster by task when you repeat trials
  • Comparing two versions: pair them
  • From eve's JSON to a paired comparison
  • CI gates
  • Production: monitoring and review queues
  • Misconceptions and limits
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Where the noise comes from
  2. 02Repeated trials
  3. 03pass@k and pass^k
  4. 04Confidence intervals on a pass rate
  5. 05Comparing two versions: pair them
  6. 06CI gates
  7. 07Production: monitoring and review queues
  8. 08Misconceptions and limits
  9. 09Summary

Sources & further reading

  • Adding Error Bars to Evals: A Statistical Approach to Language Model EvaluationsPaper · Evan Miller · 2024The paper behind the Anthropic post, with the formulas: eval questions as draws from a super-population, clustered errors, paired comparisons and sample-size planning.
  • τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World DomainsPaper · Shunyu Yao, Noah Shinn, Pedram Razavi, Karthik Narasimhan · 2024Introduces pass^k for agent reliability and gives the unbiased estimators of pass^k and pass@k from n trials with c successes. Its headline: pass^8 below 25% in retail.
  • Evaluating Large Language Models Trained on CodePaper · Mark Chen et al. · OpenAI · 2021The Codex paper, where the unbiased pass@k estimator was introduced (section 2.1).
  • A statistical approach to model evaluationsLab research · Anthropic · 2024Five recommendations: report standard errors, cluster them, reduce within-question variance by resampling, analyse paired differences, and use power analysis. The backbone of this lesson.
  • Demystifying evals for AI agentsLab research · Mikaela Grace, Jeremy Hadfield, Rodrigo Olivares, Jiri De Jonghe · Anthropic · 2026pass@k versus pass^k with the 0.75³ ≈ 0.42 example, capability versus regression suites, and production monitoring in the Swiss-cheese model.
  • eve docs: Running evalsDocs · Vercel--repeat semantics (every attempt counts toward the exit code), --strict, --junit, --json, artifacts and CI guidance.
  • eve docs: Agent RunsDocs · VercelInspecting eve sessions and traces on Vercel (beta), and the trace sampling rules you need first.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 9 more sections
  • 3 hands-on exercises
  • A 8-question quiz
  • Progress, quiz scores and bookmarks