---
title: "Bootstrap Confidence Intervals for LLM Evaluation"
description: "When LLM outputs are non-deterministic, the cluster bootstrap gives near-nominal 95% coverage with the narrowest intervals."
url: "https://swe.quest/articles/bootstrap-confidence-intervals-for-llm-evaluation-2cf64494cfe1e239"
canonical: "https://engineering.indeedblog.com/blog/2026/07/bootstrap-confidence-intervals-for-llm-evaluation/"
source: "Indeed Engineering"
published: "2026-07-08"
difficulty: "hard"
kind: "Research"
reading_minutes: 31
tags: ["evals","llms","machine-learning"]
---

# Bootstrap Confidence Intervals for LLM Evaluation

A post on [Indeed Engineering](https://swe.quest/sources/indeed.md), published 2026-07-08, 31 min read, Research. Original: [https://engineering.indeedblog.com/blog/2026/07/bootstrap-confidence-intervals-for-llm-evaluation/](https://engineering.indeedblog.com/blog/2026/07/bootstrap-confidence-intervals-for-llm-evaluation/)

## Summary

When LLM outputs are non-deterministic, the cluster bootstrap gives near-nominal 95% coverage with the narrowest intervals. It runs each of N inputs k times and resamples whole inputs with all their runs. A simulation of a 4-class classifier at 70% accuracy compares five strategies. Single-draw cluster and hierarchical bootstraps are overly conservative, and mode-aggregation estimates majority-vote accuracy instead of single-call accuracy, so its coverage collapses to zero for k \> 2. A variance decomposition via intraclass correlation guides the N-versus-k tradeoff, with k = 3 or 5 recommended when affordable.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)

## Prerequisites

- bootstrap resampling
- confidence intervals
- LLM evaluation basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- law of total variance

## Keywords

cluster bootstrap, hierarchical bootstrap, BCa interval, intraclass correlation, Cohen's kappa

## Related posts

- [Calibrating LLM-Based Population Estimates with Human Validation](https://swe.quest/articles/calibrating-llm-based-population-estimates-with-human-validation-c6245711febeaa73.md): Indeed Engineering · 2026-08-12 · Medium · 8 min read · Evaluation, LLMs, Machine learning
  The share of records an LLM classifies as positive is only an apparent prevalence.
- [BenchMIRT: What are LLM benchmarks actually measuring?](https://swe.quest/articles/benchmirt-what-are-llm-benchmarks-actually-measuring-2ca3c435676c9d75.md): Hugging Face · 2026-09-01 · Hard · 7 min read · Evaluation, LLMs, AI safety
  BenchMIRT applies multidimensional Item Response Theory to LLM benchmark results at the level of individual prompts, estimating each question's difficulty and discrimination along latent capability dimensions.
- [Theoretical Limits of Language Model Alignment](https://swe.quest/articles/theoretical-limits-of-language-model-alignment-e28a89a4657d0f90.md): Apple Machine Learning Research · 2026-11-12 · Hard · 1 min read · AI safety, Model training, LLMs
  The maximum expected reward gain achievable under a fixed KL-divergence budget in KL-regularized language model alignment has a closed form governed by a Jeffreys divergence term, not the √KL used in prior analyses.
- [Can foundation models label data like humans?](https://swe.quest/articles/can-foundation-models-label-data-like-humans-963e130c732d79cb.md): Hugging Face · 2023-06-12 · Hard · 17 min read · Evaluation, LLMs, Model training
  Human preference labels from Scale AI and GPT-4 pairwise ratings on a 327-prompt blind test set produce the same Elo ordering of four open instruction-tuned models (Vicuna-13B, Koala-13B, OpenAssistant-12B, Dolly-12B), but the margins between models differ.
- [Introducing the Open Chain of Thought Leaderboard](https://swe.quest/articles/introducing-the-open-chain-of-thought-leaderboard-6b7ce484cba7687f.md): Hugging Face · 2024-04-23 · Medium · 10 min read · Evaluation, LLMs
  The Open CoT Leaderboard ranks LLMs by the accuracy gain from chain-of-thought prompting (accuracy with CoT minus loglikelihood accuracy without it) rather than by absolute accuracy, which makes it more robust to training-data contamination.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
