# Wilson score interval

> The Wilson score interval is a 95% confidence range for a proportion, published by Edwin B. Wilson in 1927. Unlike the textbook normal interval, it never runs below 0% or above 100% and behaves well with small samples: 3 of 5 AI answers naming you gives a range of about 23% to 88%.

Source: https://surfacedd.com/glossary/wilson-score-interval · Updated 2026-11-19

## Definition

The Wilson score interval is a way to put a range around a rate measured from a small number of yes/no trials. You observe `k` successes in `n` trials, and the interval tells you which true rates are consistent with that result at a chosen confidence level, usually 95%. Edwin B. Wilson published it in the *Journal of the American Statistical Association* in 1927, and the US National Institute of Standards and Technology's statistics handbook now presents it as the method to use for proportions ([NIST/SEMATECH e-Handbook, §7.2.4.1](https://www.itl.nist.gov/div898/handbook/prc/section2/prc241.htm)).

It matters for AI search because AI answers are not deterministic. Ask ChatGPT the same question five times and you may be named in three answers and missing from two. "60%" is the observed rate. The Wilson interval says how much that 60% could move if you asked again.

## The formula

With observed rate `p̂ = k / n` and `z` the normal quantile for your confidence level (1.96 for 95%):

```text
            p̂ + z²/(2n)  ±  z · √( p̂(1 − p̂)/n + z²/(4n²) )
range  =  ───────────────────────────────────────────────────
                          1 + z²/n
```

Two things make it better than the interval most people learned first, `p̂ ± z·√(p̂(1 − p̂)/n)` (often called the Wald or normal-approximation interval):

1. **It stays inside 0–100%.** NIST notes that the common normal expression can produce a lower limit below zero, and calls it the inferior approach.
2. **It doesn't collapse at the edges.** When every sample names you (5 of 5) or none does (0 of 5), the normal interval has zero width, which claims perfect certainty from five data points. Wilson still gives a wide, honest range.

## In practice: 3 of 5 samples, worked by hand

Say you run one prompt, "What is the best CRM for a five-person sales team?", five times on one engine and your brand is named in 3 answers. So `k = 3`, `n = 5`, `p̂ = 0.6`, `z = 1.96`, `z² = 3.8416`.

| Step | Calculation | Value |
|---|---|---|
| Centre term | 0.6 + 3.8416 ÷ (2 × 5) | 0.9842 |
| Variance part | 0.6 × 0.4 ÷ 5 | 0.0480 |
| Correction part | 3.8416 ÷ (4 × 25) | 0.0384 |
| Square root of the sum | √0.0864 | 0.2940 |
| Half-width | 1.96 × 0.2940 | 0.5762 |
| Denominator | 1 + 3.8416 ÷ 5 | 1.7683 |
| Lower limit | (0.9842 − 0.5762) ÷ 1.7683 | **0.231** |
| Upper limit | (0.9842 + 0.5762) ÷ 1.7683 | **0.882** |

So "3 of 5" means a true naming rate somewhere between about **23% and 88%**. That is the honest reading of five samples: you are probably named more often than not on this prompt, but you can't tell a weak 30% from a strong 85% yet.

The same arithmetic for other results shows why the method matters:

| Observed | Rate | Wilson 95% range | Normal (Wald) range |
|---|---|---|---|
| 0 of 5 | 0% | 0% – 43% | 0% – 0% |
| 3 of 5 | 60% | 23% – 88% | 17% – 103% |
| 4 of 5 | 80% | 38% – 96% | 45% – 115% |
| 5 of 5 | 100% | 57% – 100% | 100% – 100% |
| 15 of 25 | 60% | 41% – 77% | 41% – 79% |
| 60 of 100 | 60% | 50% – 69% | 50% – 70% |

Read down the table and two lessons appear. With 5 samples the normal interval gives impossible answers (above 100%) or false certainty (0–0%). With 100 samples the two methods agree to within a point, so Wilson costs nothing when data is plentiful and protects you when it isn't. The ranges also shrink only with the square root of the sample size: going from 5 to 25 samples roughly halves the width, not divides it by five.

## Why it matters for AI visibility

Most AI visibility numbers come from small samples per prompt, because every answer costs money. That makes three common mistakes easy:

- **Reading a 1-sample change as a trend.** A prompt that went from "named" to "not named" between two weekly runs has moved from 1 of 1 to 0 of 1. Both results sit comfortably inside each other's ranges.
- **Ranking prompts by raw rate.** A prompt at 5 of 5 (57–100%) is not clearly better than one at 4 of 5 (38–96%).
- **Celebrating after one fix.** If your rate on a prompt went from 2 of 5 to 4 of 5, the ranges still overlap heavily. Wait for more runs before crediting the change.

The practical rule: take more samples on the prompts you care most about, and treat any per-prompt number from fewer than about five samples as directional. For the headline rate across many prompts, the [AI visibility score](/glossary/ai-visibility-score) needs a different method, covered below.

## How it shows up in Surfacedd

Surfacedd shows a Wilson 95% range on any prompt-level rate measured from at least 3 samples (metric M9, "stability"), displayed as "3 of 5 samples" next to its range. Below 3 samples it shows the count only, because a range from one or two samples is too wide to help. 

Aggregate numbers such as overall visibility use a different method: a cluster bootstrap over prompts (1,000 resamples for tiles, 200 for tables), because answers to the same prompt are correlated and Wilson assumes independent trials. A change between runs is marked significant only when the bootstrap range of the paired difference excludes zero; otherwise the app says "No clear change". The full rules are in the [ranges and samples docs](/docs/concepts/ranges-and-samples) and on the [methodology page](/methodology). 

![Prompt drawer showing one prompt named in 20 of 40 answers overall, with per-engine counts such as ChatGPT 4 of 5 and Claude 2 of 5](https://surfacedd.com/shots/app/drawer-prompt-light.png "Sample workspace, fictional brand")
In the sample workspace above, the prompt is named in 20 of 40 answers across eight engines, a Wilson range of about 35–65% if the answers were independent. Per engine, ChatGPT's 4 of 5 (38–96%) and Claude's 2 of 5 are not yet a reliable difference, which is why the app doesn't rank engines on five samples alone. If you want the measurement process end to end, see [how to measure AI visibility](/guides/how-to-measure-ai-visibility).

## Related terms

- [AI visibility score](/glossary/ai-visibility-score): the headline rate these ranges sit around.
- [Citation share](/glossary/citation-share): another proportion, reported with its counts.
- [Prompt volume](/glossary/prompt-volume): why sampling, not volume data, is what you control.
- [AI share of voice](/guides/ai-share-of-voice): a comparative rate that needs the same caution.

## Sources

- [Wilson, E. B. (1927), "Probable Inference, the Law of Succession, and Statistical Inference", Journal of the American Statistical Association 22(158): 209–212](https://doi.org/10.1080/01621459.1927.10502953), checked 2026-11-19
- [NIST/SEMATECH e-Handbook of Statistical Methods, §7.2.4.1 Confidence intervals for proportions](https://www.itl.nist.gov/div898/handbook/prc/section2/prc241.htm), checked 2026-11-19
