Gradient LabStart the lesson

Lessons › Chapter 15: Story: judging an AI with people

Episode 5: Real customers decide

In an a/b test, each incoming customer is randomly sent to old Pip or new Pip. Random assignment makes the two groups alike in every way except which Pip they talk to.

Watch it move. This lesson is interactive on Gradient Lab: every step is an animated scene you can replay.

Start the interactive lesson

Step by step

Story

From the lab to real customers

Raters prefer the new Pip. But raters aren’t customers. Will real customers with real problems actually get more help? Maya wants proof before switching everyone over.

Key idea

Split customers at random

In an a/b test, each incoming customer is randomly sent to old Pip or new Pip. Random assignment makes the two groups alike in every way except which Pip they talk to.

Build

Measure real outcomes

Track what matters to the business and the customer: was the problem solved without needing a human agent? Old Pip 61%, new Pip 68%.

Insight

Real effect or luck?

A difference could be random luck, so the team checks it’s bigger than normal noise (the thin ranges). They also watch guardrail metrics, like complaints, to be sure nothing important got worse. Both pass: new Pip rolls out to everyone.

Real life

In real life: two versions of a website

Online shops, news sites and apps run A/B tests constantly: two checkout pages, two headlines, two recommendation models, each shown to a random half of visitors. The version that actually performs better with real people wins.

Quick check: Why assign customers to A or B at random?

Randomization balances everything else, so a difference in outcomes can be credited to the version.

Pseudocode

split real customers at random:
    50% talk to old Pip (A), 50% talk to new Pip (B)
measure what matters: problem solved without a human agent?
A: 61% solved      B: 68% solved
check the difference is bigger than random noise
also check nothing important got worse (complaints, escalations)
roll out B only if it wins

Key terms

a/b test
An experiment where real users are randomly split between two versions and real outcomes are compared.
guardrail metric
A number that must not get worse, such as complaints, even if the main goal improves.

Build it: Human evaluation toolkit (30 min, runs in your browser)

See the project