Skip to main content

Statistical Sampling in SEO Audits

· 9 min read
Indexation audit for large websites

The instinct when you are told a site has indexation waste is to check everything. Four hundred thousand URLs, one verdict each, no arguing. That instinct is expensive, slow and usually unnecessary, because sites with indexation waste do not have four hundred thousand independent problems. They have a dozen patterns, each repeating the same mistake thousands of times.

Sampling is not cutting corners. Sampling is how you get an honest answer about a pattern without paying for 48,000 inspections you will never read. It matters most when the number ends up in front of a client who will act on it. This post explains, without a statistics background, what a confidence interval is, how the sample size is chosen, why the method PruneSEO uses is a Wilson lower bound rather than a plain proportion, and how to report a number so nobody can misread it.

Why a sample can speak for a pattern​

A pattern is a group of URLs that share the same shape: the same template, the same query parameter, the same date segment. Within a pattern, the pages are near-identical in structure and, crucially, near-identical in the ways that determine indexation.

If 48,000 URLs share a template, and the first 120 you inspect are mostly not indexed, that is not a coincidence you have to rule out. It is the template behaving the way templates behave. The variation you are measuring is real, but it is variation around a pattern, not chaos.

The alternative framing is worth stating plainly: an exhaustive check of 48,000 URLs tells you the exact fraction that are indexed, but it does not tell you anything you can act on beyond the fact that most of them are not. You already knew that from the shape of the pattern. What you did not know, and what the sample establishes, is how strong the effect is and how confident you are in it.

The number that matters is not the proportion. It is the lower bound of the proportion: the worst case you can still defend.

The targets, and what they mean​

PruneSEO's sampling targets are deliberately conservative, and it is worth knowing why each one is set where it is.

SettingValuePlain meaning
Confidence level95%If you repeated this whole exercise many times, roughly 95% of the results would land inside the interval
Margin of errorPlus or minus 10 percentage pointsThe true proportion is likely to be within 10 points of your sample figure
Minimum sample20Below this, we do not call it a measurement
Maximum sample400Above this, extra inspections buy almost nothing
Full auditPatterns of 250 URLs or fewerSmall enough that taking every URL is cheaper and more honest

Read the confidence level carefully, because it is the number most often misread. It is not a statement about your particular sample. It is a long-run property of the method: if you ran this audit a thousand times, about 950 of the intervals would contain the true value. It does not mean "I am 95% sure this pattern is 94% indexed". It means the method is calibrated so that 95 out of 100 such intervals would be right.

The margin of error is a statement about width. Plus or minus ten points is a wide interval. It is wide on purpose, because the cost of a false claim here is a campaign that deletes pages which were earning traffic.

At 95% confidence, the sample size needed depends entirely on the width you want:

Margin of errorSample size needed
Plus or minus 5 points385
Plus or minus 10 points97
Plus or minus 15 points43

This is the core of the economics. Going from plus or minus ten to plus or minus five needs four times the inspections, and most campaigns do not change their decision between those two answers. Plus or minus ten is the sweet spot, and 97 URLs is a very manageable afternoon against a 2,000-a-day allowance.

The minimum of 20 and maximum of 400 exist for opposite reasons. Twenty is the floor below which a handful of results would swing the percentage wildly. Four hundred is the ceiling past which the interval stops narrowing usefully for the decisions you are making.

Why not just report the percentage​

Here is the part that catches most audits out.

Suppose you inspect 50 URLs from a pattern and 45 of them come back not indexed. The naive report is "90% not indexed". That number is arithmetically correct and practically misleading, because it is stated as though it were exact when it is a sample from a pattern that may contain tens of thousands of URLs.

The honest question is: what is the lowest plausible true rate, given what I saw? If the honest lower bound is 0.787, then the true non-indexation rate could be as low as 78.7%. Reporting "90%" overstates the certainty at the bottom end, and that is exactly the end that decides whether you prune.

PruneSEO uses the Wilson lower bound for this, which is the standard interval calculation for a proportion and is better behaved than the textbook alternative at small samples and at proportions near zero or one. Both ends of it are well behaved near the extremes, which is precisely where indexation patterns sit.

The practical rule: a 45-of-50 sample supports a lower bound of 0.787, and therefore cannot honestly be quoted as 90%. Not "roughly 90%", not "about 90%". The lower bound is what you are allowed to say, and it is 78.7%. If the campaign matters enough to act on 90%, the sample needs to be bigger, and the audit will tell you so.

Extrapolate, refine, or insufficient​

Every sample gets one of three labels, and they are not interchangeable.

LabelMeaningWhat to do
ExtrapolateSample is large and consistent, the interval is tightAct on it
RefineSample is thin, or results are splitInspect more URLs
InsufficientSample below the minimum, or results contradict each otherDo not act; measure properly first

These labels are the difference between an audit and a guess. A pattern marked "Refine" is an open question, not a finding. A pattern marked "Insufficient" has told you nothing except that you do not yet know.

Why a mixed sample must be split, not averaged​

Suppose you inspect 50 URLs and get 40 indexed, 10 not indexed. Averaging gives 80% indexed. That number is not wrong arithmetically, and it is completely useless operationally, because the sample is not homogeneous.

Those 50 URLs almost certainly belong to more than one pattern, or to two distinct states within one pattern (for example, old posts indexed and new posts not). Averaging them hides the thing you most needed to see. The right move is to recognise the sample as heterogeneous, split it by whatever variable separates it (template, date range, depth, section), and measure each part on its own.

PruneSEO never collapses a heterogeneous sample into one verdict, for this reason. Two patterns that each sit at 50% are a different problem, and a different fix, than one pattern that sits at 50%.

How to report an interval so it cannot be misread​

The statistics are the easy part. The reporting is where the value is won or lost. A few rules, applied every time.

Always attach the sample size to the percentage. "94% of 150 URLs" is a claim. "94%" alone is a decoration. Any figure without its denominator is not a measurement.

Always attach the interval, in words. "At least 88% not indexed" is defensible. "About 94%" is not, because "about" hides the width.

Never put an exact count next to an estimated range. A measured count of 2,004 and a projected 120,000 belong on different lines, in different columns, with different labels. The moment they sit in the same cell, someone will read the projected number as measured.

Never let a blank render as a zero. A URL you did not inspect is "Not measured". Empty is not zero, and a missing measurement shown as 0% turns an open question into a false reassurance.

State the confidence level once, prominently, and let the reader assume the rest. If every sentence says "95% confidence" the report becomes unreadable, but the interval is meaningless without it.

A well-formed result looks something like this:

Pattern: /search?q=*
Inventory: 86,551 URLs
Sampled: 150 URLs
Verdict: Not indexed
Point estimate: 94% not indexed
95% lower bound: 88% not indexed (Wilson)
Confidence label: Extrapolate

Nothing there can be misread. The denominator is visible, the range is stated, the floor is explicit, and the number a reader would quote in a meeting is the one the audit actually supports.

What this buys you​

Sampling against a 2,000-a-day Search Console allowance, sized at 95% confidence and plus or minus ten points, means a meaningful pattern verdict costs on the order of 100 inspections. That is roughly five per cent of a day's quota. You can measure a dozen patterns in an afternoon and still have most of the allowance left for the ones you were unsure about.

That is the whole argument. Not "we could not inspect everything, so we sampled", but "sampling to this specification produces an interval that supports the decision, at a fraction of the cost, and every figure in the report carries its own denominator".

If the arithmetic is what you want to check, the Quota post covers where the 2,000 comes from. If you are ready to apply it, the triage and pattern analysis guide walks through how the patterns get built.