---
title: An agent succeeds on a task with probability 0.8 per independent trial. Compute pass@5 and pass^5 and say which matters…
url: https://gurkanozkan.ai/learn/questions/recent-b-maths-statistics-01/
markdown: https://gurkanozkan.ai/learn/questions/recent-b-maths-statistics-01.md
kind: question
role: Applied LLM
stage: Technical
difficulty: Medium
json: https://gurkanozkan.ai/api/learn/questions/recent-b-maths-statistics-01.json
robots: noindex
---

# An agent succeeds on a task with probability 0.8 per independent trial. Compute pass@5 and pass^5 and say which matters for a customer-facing agent. Then, from n = 10 samples with c = 7 successes, compute the unbiased pass@3 estimate and compare it with plugging p̂ into 1 − (1 − p̂)^3. Which way is the plug-in estimate biased, and why?

Applied LLM · Technical · Medium

## Answer

*Model answer, written in a candidate's voice*

### In short

- pass@5 = 1 − 0.2^5 = 0.99968; pass^5 = 0.8^5 ≈ 0.328; customer-facing agents need consistency, so pass^k matters, while pass@k suits one-success-enough tools.
- Unbiased pass@3: 1 − C(n−c,k)/C(n,k) = 1 − C(3,3)/C(10,3) = 1 − 1/120 ≈ 0.992.
- Plug-in: p̂ = 0.7 gives 1 − 0.3^3 = 0.973, lower than the unbiased value.
- Plug-in is biased low because f(p)=1−(1−p)^k is concave, so by Jensen E[f(p̂)] ≤ f(p); the combinatorial estimator is exactly unbiased for n ≥ k.
- Real trials are not independent (shared hard tasks), so estimate per-task success rates and aggregate.

### In full

pass@5 is the chance at least one of five independent trials succeeds: 1 − 0.2^5 = 0.99968, whereas pass^5 is the chance all five succeed: 0.8^5 ≈ 0.328. For a customer-facing agent, consistency matters, so pass^k is the relevant metric; pass@k is appropriate when one success among several is enough. With n = 10 and c = 7, the unbiased pass@3 estimate is 1 − C(3,3)/C(10,3) = 1 − 1/120 ≈ 0.992, while plugging p̂ = 0.7 into 1 − (1 − p̂)^3 gives 1 − 0.3^3 = 0.973. The plug-in estimate is biased low: f(p) = 1 − (1 − p)^k is concave, so by Jensen E[f(p̂)] ≤ f(p), whereas the combinatorial estimator is exactly unbiased when n ≥ k. In practice trials are not independent because tasks are shared and correlated, so I would estimate per-task success rates and then aggregate rather than treat all samples as iid.

*Checked against sources by an independent AI reviewer.*

## What a strong answer covers

- pass@5 = 1 − 0.2^5 = 0.99968; pass^5 = 0.8^5 ≈ 0.328; customer-facing agents need consistency, so pass^k is the relevant one, while pass@k suits tools where one success among several is enough.
- Unbiased estimator: 1 − C(n−c, k)/C(n, k) = 1 − C(3,3)/C(10,3) = 1 − 1/120 ≈ 0.992.
- Plug-in: p̂ = 0.7 gives 1 − 0.3^3 = 0.973, lower than the unbiased value.
- Explains the bias: f(p) = 1 − (1 − p)^k is concave, so by Jensen E[f(p̂)] ≤ f(p) and the plug-in estimate is biased low; the combinatorial estimator is exactly unbiased when n ≥ k.
- Notes that real trials are not independent (shared hard tasks), so per-task success rates should be estimated and then aggregated.

## Common mistakes

- Confusing pass^k with pass@k or computing pass^k as 1 − 0.8^5.

## Follow-ups

- How many trials per task would you run, and why might complex reasoning tasks need more?

## Topic guides

- [Agents and tool use](https://gurkanozkan.ai/learn/topics/agents.md)
- [Evaluation: metrics, evals for LLM systems and statistical rigour](https://gurkanozkan.ai/learn/topics/evaluation.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
