Skip to content

The Data Scientist

AI search visibility: how to separate progress from noise

AI Search Visibility Measurement: Difference-in-Differences Causal Estimation, Wilson Confidence Intervals, and Inter-Rater Calibration

Executive Takeaway: Separating genuine retrieval-augmented generation (RAG) citation gains from stochastic sampling noise requires difference-in-differences (DiD) quasi-experimental controls, cluster-robust binomial confidence intervals, and Cohen's kappa inter-annotator calibration.

A dashboard shows that your business appeared in more AI-generated answers this month. The graph is moving upwards. Your latest content updates must be working.

Possibly. But before increasing the budget, it is worth asking what actually changed.

Did the business appear more often for the same questions? Were those questions asked under comparable conditions? Did the answers recommend the company, or simply mention its name?

AI outputs can vary even when the input stays the same. Frontier LLM provider evaluation guidance recognises this variability and recommends structured testing rather than relying on an impression that something is working.

Digital Hitmen includes AI visibility tracking and monthly reporting within its generative engine optimisation (GEO) services. For this type of reporting, the important distinction is between a business appearing more often and that visibility contributing to useful enquiries. Those outcomes need to be measured separately.

A useful measurement framework starts with clear definitions, consistent testing conditions and evidence that another person can check. The aim is not simply to produce a higher score. It is to understand what changed and what to do next.

Start by deciding what visibility means

Before collecting answers, define what you intend to measure. A brand mention, a website citation and a recommendation should not automatically count as the same result.

The following working definitions provide a starting point: 

SignalWorking definitionWhat it does not establish
Brand mentionThe answer names the correct business or product.That the business was recommended or its website was cited.
Website citationThe answer includes a source link to the business’s website.That the answer recommends the business as a supplier.
RecommendationThe answer explicitly presents the business as a suitable option for the stated need.That the user clicked or became a customer.
Factual accuracyStatements about the business agree with verified information.That the business appears frequently enough to matter.

These are proposed measurement definitions, not universal industry standards. Their value comes from applying them consistently.

Consider a software company cited in an explanation of stock reconciliation. That is different from being recommended to someone choosing inventory software. Both appearances might be valuable, but they answer different business questions.

Choose one primary outcome for each test. A documentation improvement might target citations to specific pages. A supplier-discovery campaign might focus on recommendations for relevant buying questions.

For a simple mention metric:

Brand mention rate = completed checks containing the brand ÷ all completed checks × 100

Define a completed check before reporting. A search that completes without displaying an AI answer should remain in the denominator when measuring visibility across that search experience.

A request that times out is different. Record technical failures separately, apply a consistent retry rule and disclose how many planned checks were completed. Removing unsuccessful observations without explanation can change the apparent result.

Build a question set that reflects real customers

A test can be perfectly repeatable and still answer the wrong question.

Start with the questions customers ask during enquiries, sales conversations, product demonstrations and support interactions. Remove identifying details before turning those conversations into a research dataset.

For an inventory software provider, useful questions might include:

“What should a growing retailer check before replacing its stock management software?”

“Which inventory systems support multiple warehouses?”

“How should a retailer compare inventory software integrations?”

Group questions by purpose, separating learning, comparison and supplier selection. This lets you see whether improvements relate to general awareness or questions closer to a buying decision.

Keep branded and unbranded questions separate. Asking whether a named product supports an integration tests information accuracy. Asking which products support that integration tests discovery. Combining them can make a brand appear more discoverable simply because the test supplied its name.

Once the initial question set is agreed, preserve it for the reporting period. Keep new questions in a separate exploratory set until the next planned revision.

Otherwise, an improved score might reflect a friendlier collection of questions rather than improved visibility.

Finally, describe the sample honestly. A hand-picked set of 40 questions is a benchmark for those questions, not automatically a representative sample of every conversation customers have with AI assistants.

Keep the testing conditions consistent

A useful comparison needs more than identical wording.

Define the platform, product interface, search mode, language and location used for each test. Geography is a genuine configuration variable in some systems. Frontier LLM provider web-search documentation, for example, allows an approximate user location to refine results.

Keep tests conducted through a consumer application separate from automated API tests unless you have established that their configurations are comparable. Sharing a provider name is not enough to establish that they measure the same experience.

For every observation, save the exact question, timestamp, platform, available model or mode information, full answer and cited URLs. Record the scoring decision alongside the original response so another person can check it.

Use fresh conversations for standalone questions. For a multi-step buying journey, preserve the same preceding messages. Treat a question asked after several detailed follow-ups as a different test from the same sentence asked in isolation.

Repeat checks on a fixed schedule rather than selecting one favourable screenshot. Keep the number and timing of repetitions comparable between reporting periods.

Also annotate known platform updates and changes to your testing setup. Where the underlying model version is not disclosed, record that limitation rather than filling the gap with an assumption.

Test a defined content change against a comparison group

A before-and-after report tells you that something changed. It does not, by itself, tell you why.

Start with a specific hypothesis:

Publishing verified integration details on selected product pages will increase citations to those pages in answers about those integrations.

This identifies the intervention, the relevant questions and the outcome. It is more useful than “improve our GEO score”.

Choose comparable pages or topic groups. Where practical, randomly assign them to receive the update or remain unchanged. Map questions to those groups before making changes, rather than selecting questions that performed well afterwards.

Collect several baseline observations. Then publish the defined update, record its timing and continue testing both groups over a pre-agreed follow-up period.

The purpose of the comparison group is to help distinguish movement associated with the update from movement that also occurred elsewhere.

A worked example

To illustrate how this measurement approach works, suppose each group contains 20 questions, with five completed checks per question in each reporting period. That produces 100 checks per group before and after the update, using one platform and one defined region. 

Page groupBefore the updateAfter the updateChange
Updated pages30 of 100 checks included a relevant citation: 30%45 of 100 checks included a relevant citation: 45%+15 percentage points
Unchanged comparison pages20 of 100 checks included a relevant citation: 20%30 of 100 checks included a relevant citation: 30%+10 percentage points

An answer containing three relevant links still counts as one check containing a citation. This metric measures the proportion of checks with a citation, not the total number of links.

Looking only at the updated pages, citation rate rose from 30% to 45%. That is a 50% relative increase, or 15 percentage points.

However, the unchanged pages also improved.

The comparison-adjusted change is:

(45% − 30%) − (30% − 20%) = 5 percentage points

This calculation follows the logic of difference-in-differences analysis. A causal interpretation depends on important assumptions, including that the groups would have followed comparable trends without the intervention. Researchers describe this as the “parallel trends” assumption.

The result therefore does not prove that the update caused a five-point improvement. It shows why crediting the update with the entire 15-point increase would be premature.

Keep the intervention as contained as possible. A sitewide navigation change, for example, could also affect the supposedly unchanged comparison pages.

For a small website without enough comparable pages, repeated before-and-after monitoring may be more practical. Describe it as observational evidence rather than a controlled experiment.

Report uncertainty, not just percentages

“Visibility increased by five points” sounds precise. Whether it is convincing depends on the observations behind it.

Show the underlying counts, the number of distinct questions, the completion rate and the reporting period. Break results down by topic and platform so a narrow improvement does not disappear inside an overall average.

Five hundred answers to five questions provide different evidence from five hundred answers covering a broad range of customer needs. More repetitions do not necessarily mean broader coverage.

For formal statistical analysis, use uncertainty estimates that account for the test design and repeated observations. Research on difference-in-differences demonstrates how ignoring correlation over time can make results appear more precise than they are.

Before testing, agree what improvement would be large enough to influence a decision. A small movement might justify further observation rather than a wider rollout.

Likewise, an unclear result does not establish that the content change has no value. The appropriate conclusion may be that this test did not provide enough evidence to distinguish an improvement from ordinary variation.

Check the scoring as carefully as the answers

Deciding what an AI-generated response means is a separate measurement task.

Consider an answer that names a provider only to explain why it does not suit the request. A simple name-matching rule would detect the mention, but classifying it as a recommendation would be wrong.

Build a short scoring guide with examples. Define what qualifies as a recommendation, how to handle ambiguous names and what counts as a factual error.

Have a person review a sample of both positive and negative classifications. Reviewing only supposed wins will not reveal how many genuine appearances the system missed.

When using an AI model to classify answers, keep the scoring instructions stable and check agreement with human reviewers. Frontier LLM provider evaluation guidance recommends clear criteria and human calibration, while recognising that automated judges have their own limitations.

Preserve the raw answers and version your scoring rules. When the rules change, either rescore earlier observations consistently or mark the break in the reporting series.

Connect visibility with platform data and business outcomes

A useful report should distinguish three layers of evidence.

What the benchmark observed

The question set describes appearances under the conditions you selected. Use it to investigate missing topics, inaccurate descriptions and differences between platforms.

Treat it as a diagnostic benchmark, not a count of real customers reached. An appearance rate of 40% across your questions does not mean that 40% of potential customers encountered the business.

What the platform recorded

Use reporting from the platform itself where available.

The search engine Generative AI performance report in webmaster search telemetry provides impression data for AI Overviews and AI Mode. The search engine states that its worldwide rollout was completed on 31 August 2026, although a property may lack sufficient impressions to display the report.

These impressions describe links to your website being shown in supported generative AI features. They are different from a sampled brand-mention rate, so keep the measures separate.

Avoid double-counting. The search engine states that the generative AI report includes data already contained in the Web search performance report. It is not an additional audience to add to the overall total.

What happened after a visit or enquiry

Where AI-referred website sessions can be identified, follow them through to meaningful outcomes: qualified enquiries, booked demonstrations, purchases or won opportunities.

Define quality before comparing channels. An enquiry from outside the service area should not carry the same commercial meaning as a suitable prospect requesting a proposal.

An optional enquiry-form or sales question about AI-assisted research can provide another source of evidence. Keep self-reported information distinct from tracked referrals, and avoid counting the same lead twice.

Consider a hypothetical buyer who discovers a supplier through an AI answer, returns through a branded search and later submits a form. The final visit alone would not describe every influence on that purchase.

Compare customers over equivalent follow-up periods, too. Someone who enquired last week has not had the same opportunity to become a customer as someone who enquired three months ago.

The aim is not to manufacture perfect attribution. It is to distinguish observed behaviour, reported influence and verified outcomes.

Turn the findings into a specific next action

A useful report finishes with a decision, not a screenshot.

When relevant pages are missing from sampled answers, investigate whether they are accessible, eligible to appear and genuinely answer the questions being tested. For The search engine, current guidance emphasises established SEO foundations and useful content rather than special AI markup or a separate writing style for machines.

When mentions increase but factual accuracy falls, identify and correct inaccurate source information, then test again.

When visibility improves only for a narrow set of questions, validate the result against a separate set of relevant questions before expanding the claim.

When identifiable visits increase but qualified enquiries do not, review the audience, landing page and offer before assuming that more mentions are the answer.

AI search visibility becomes useful when you can explain what was tested, what changed, how certain the result is and what decision follows.

A higher score may be encouraging. A result that stands up to those questions is worth acting on.

Difference-in-Differences (DiD) Inference, Cluster-Robust Standard Errors, and Cohen’s Kappa Judge Calibration

In quantitative evaluation of retrieval-augmented generation (RAG) and AI search visibility, repeated prompt sampling produces correlated binary outcomes \(Y_{i,t,r} \in \{0, 1\}\) for query \(i \in \{1,\dots,Q\}\) at period \(t \in \{\text{pre}, \text{post}\}\) across \(R\) stochastic temperature runs. Treating \(N = Q \times R\) correlated checks as independent Bernoulli trials underestimates variance by the intra-query design effect \(\text{DEFF} = 1 + (R - 1)\rho_{\text{ICC}}\), where \(\rho_{\text{ICC}}\) is the intracluster correlation coefficient.

To isolate the causal effect of a structured content intervention from platform-wide model updates, econometricians estimate the difference-in-differences (DiD) treatment parameter \(\hat{\delta}_{\text{DiD}}\) alongside cluster-robust standard errors \(\text{SE}_{\text{cluster}}(\hat{\delta}_{\text{DiD}})\), while auditing LLM-as-a-judge rubric stability against human annotators via Cohen’s kappa \(\kappa\):

\[\hat{\delta}_{\text{DiD}} = (\bar{Y}_{T,\text{post}} - \bar{Y}_{T,\text{pre}}) - (\bar{Y}_{C,\text{post}} - \bar{Y}_{C,\text{pre}}), \qquad \text{Var}_{\text{cluster}}(\bar{Y}) = \frac{p(1-p)}{Q \cdot R} \bigl(1 + (R - 1)\rho_{\text{ICC}}\bigr), \qquad \kappa = \frac{p_o - p_e}{1 - p_e}\]

Here \(p_o\) is observed human-versus-judge agreement and \(p_e\) is chance agreement. Reporting cluster-adjusted confidence intervals and judge calibration prevents false-positive budget reallocations:

Statistical Audit Layer Estimator / Test Statistic Minimum Validity Gate Failure Mode Prevented
Sampling Precision Cluster-inflated SE (\(\text{DEFF} = 1 + (R-1)\rho_{\text{ICC}}\)) \(Q \ge 30\) distinct queries; \(R \ge 5\) runs Pseudoreplication from repeating 5 prompts
Causal Attribution Difference-in-Differences (\(\hat{\delta}_{\text{DiD}} \pm 1.96\,\text{SE}_{\text{cl}}\)) Parallel pre-trends (\(p > 0.10\)) Confusing retriever index updates with page edits
Rubric Classification Human-vs-LLM judge Cohen’s \(\kappa\) \(\kappa \ge 0.80\) on stratified audit sample Counting negative mentions as recommendations

The following Python and NumPy script computes the cluster-robust difference-in-differences (DiD) estimate for the worked $100$-check example (\(Q=20\) queries, \(R=5\) repetitions) alongside Cohen’s kappa inter-annotator reliability:

import numpy as np

def evaluate_ai_visibility_did_and_kappa(
    q_per_group: int = 20,
    runs_per_query: int = 5,
    p_treat_pre: float = 0.30,
    p_treat_post: float = 0.45,
    p_ctrl_pre: float = 0.20,
    p_ctrl_post: float = 0.30,
    icc_rho: float = 0.42,
    confusion_matrix: tuple[tuple[int, int], tuple[int, int]] = ((44, 4), (3, 49)),
) -> dict[str, float]:
    """
    Compute cluster-adjusted Difference-in-Differences (DiD) z-statistic and
    Cohen's kappa inter-rater agreement for AI search visibility experiments.
    """
    did_effect = (p_treat_post - p_treat_pre) - (p_ctrl_post - p_ctrl_pre)
    n_checks = q_per_group * runs_per_query
    deff = 1.0 + (runs_per_query - 1) * icc_rho

    var_sum = sum(
        (p * (1.0 - p) / n_checks) * deff
        for p in (p_treat_pre, p_treat_post, p_ctrl_pre, p_ctrl_post)
    )
    se_cluster = float(np.sqrt(var_sum))
    z_stat = did_effect / max(se_cluster, 1e-8)

    cm = np.asarray(confusion_matrix, dtype=float)
    total = float(cm.sum())
    p_obs = float(np.trace(cm) / total)
    p_exp = float(np.sum(cm.sum(axis=0) * cm.sum(axis=1)) / (total ** 2))
    cohen_kappa = (p_obs - p_exp) / max(1.0 - p_exp, 1e-8)

    return {
        "did_point_estimate_pp": round(did_effect * 100.0, 2),
        "design_effect_deff": round(deff, 3),
        "cluster_robust_se_pp": round(se_cluster * 100.0, 2),
        "did_z_statistic": round(float(z_stat), 3),
        "cohen_kappa_agreement": round(float(cohen_kappa), 4),
    }

print(evaluate_ai_visibility_did_and_kappa())

Grounding AI visibility reporting in quasi-experimental Difference-in-Differences design, cluster-robust inference, and calibrated evaluation rubrics connects generative search measurement to causal inference in data science, production LLM evaluation, and modern marketing analytics.

Executive Course • The Tesseract Academy

AI and Data Science for Decision Makers

Equip leadership and operations teams to evaluate, scope, and govern production AI initiatives.