A robot feels alive only in the minds of people, so we measure the people: with scales, votes, reply gaps near 200 ms, behaviour, A/B tests and a check that raters agree.
Learn how to turn “does this robot feel alive?” into a number you can trust, compare across versions and track as you build.
Slide the reply delay, then press Run a new study a few times. Each study asks a panel of people to rate the same robot. Watch how the panel’s average and its error bar move. Then we build, piece by piece, every tool that makes such a number honest.
You need an average (add the numbers, divide by how many) and a little Python for the code. We build the rest from zero.
Built from primary sources: Bartneck et al. (Godspeed), Carpinella et al. (RoSAS), Stivers et al. (turn-taking), Zheng et al. (LLM judges) and the textbooks on statistics and experiments, all linked in the Field Guide. Every idea is taught here in our own words and devices.
Illustrative: the panel is simulated. The robot’s true mean rating peaks near a 250 ms reply and falls on both sides, and each person differs from it by a random amount (spread 0.9 points). The interval is a 95% t interval for the mean of the ratings drawn. The shape is a toy; the 208 ms mean gap between human speakers is measured (Stivers et al. 2009, Chapter 3).
Chapter 0
See why a feeling is only a measurement once you fix who rates it, with what, and how often
A friend builds a small robot for a desk. It turns its head when you speak. It answers in a soft voice. After a week, she says: “It feels alive now.” You ask what changed. She is not sure. She thinks the answer got quicker, and she changed the eyes too.
Now she wants to know if the next version is better. She cannot ask the robot. She has to ask people. Here the trouble begins. Three people watch the same clip and give three different answers. Tomorrow the same three people may answer differently again.
This lesson is about that trouble. A robot is alive only in the sense that people perceive it as alive. So the thing to measure lives in human heads. We call that thing aliveness: the felt sense that something has its own attention, intent and timing. The job is to turn the feeling into numbers without fooling ourselves.
Think of a kitchen scale. It turns “heavy” into 412 grams. Everyone who uses it the same way gets the same number. A measurement is that kind of recipe: a fixed instrument, a fixed procedure, and a way to say how much the result can wobble.
For aliveness there is no scale to buy. We build the recipe from parts. The parts are in this lesson. A questionnaire asks people to rate named qualities (Chapter 1). A preference study asks which of two robots feels more alive (Chapter 2). A timing metric measures the silence between turns (Chapter 3). A behavioural measure counts what people do (Chapter 4). An A/B test compares two versions on real users (Chapter 5).
Two checks sit on top of every part. One asks if the raters agree with each other (Chapter 6). The other asks if a cheap automatic score can stand in for people (Chapter 7). Chapter 8 puts the parts together into a plan.
Here is the first hard fact. Suppose the robot is exactly as alive as it is. Ask twelve people to rate it from 1 to 5, and you get an average, say 3.9. Ask another twelve, and you get 3.6. Nothing about the robot changed. Only the people changed.
That wobble is called sampling noise: the average of a small group differs from the average of everyone, by chance. It is the reason the hero at the top shows an error bar. Statisticians call the range a confidence interval. A 95% interval is built so that, if you repeated the study many times, about 95 of 100 intervals would hold the true average.
The size of the wobble follows one rule. It shrinks with the square root of the group size. Four times the people halves the wobble. That rule comes back in Chapter 5, where it sets how many users a test needs.
Try it below. The robot is fixed at a 250 ms reply, so its true mean never changes. Each dot is one whole study with its own panel. Slide the panel size and watch the dots tighten.
Each dot is the average rating from one panel. The dashed line is the robot’s true mean. Slide the panel size from 3 to 100 people.
Illustrative: simulated panels of the toy robot from the hero, with a true mean of 4.2 and a person-to-person spread of 0.9 points (ratings are rounded to whole numbers and capped at 5, so the average of the ratings sits a little lower). The spread of the dots is computed live.
At 6 people the dots range over more than a full point. A robot that is truly the same can look better or worse by a whole step on the scale. At 100 people they sit close together. This is why a single small study cannot tell two close versions apart.
Every study in this lesson ends in the same kind of object: a table. The rows are the things you observed, and the columns say what was observed. For a rating study the rows are people and the columns are clips or items. A panel of 12 people rating one clip gives a table of shape [12, 1]. A panel of 20 people answering the 6 animacy items gives a table of shape [20, 6].
A number is made from that table in two steps. First you reduce each row to one score, for example the mean of one person’s six animacy ticks. Then you reduce the column of scores to a mean and an interval. Keep this order in mind. If you average first over people and then over items, you lose the person-to-person spread, and the spread is exactly what the interval needs.
The same shape returns in later chapters. Votes become a table of (left, right, winner). Timing becomes a table of offsets. A test becomes one row per user. Reliability and proxies compare two columns of the same rows. Once you see the table, you can ask the right question of it: how many rows, how much do they differ, and what did we do to them before averaging?
Before you trust a number about aliveness, ask four things. Who rated it: how many people, and are they like your users? With what: which scale, with which exact words? Under what conditions: a video clip, a lab, or a living room? How sure: what is the interval, and do raters agree? A number without answers to these four is a mood, not a measurement.
Chapter 1
Score a robot on named scales and learn what each number does and does not mean
You finish a demo. A visitor stood in front of the robot for five minutes. You hand her a sheet. On it is a line with the word Fake at one end and the word Natural at the other, and five boxes between them. She ticks the fourth box. That tick is one data point. By itself it says almost nothing.
The idea of a questionnaire is simple. One question is noisy, so ask many questions about the same quality and average the answers. The average is steadier than any single tick. A group of questions that all measure one quality is called a scale, and the average over it is a subscale score.
The most used tool in human-robot interaction is the Godspeed questionnaire series, built by Christoph Bartneck and colleagues and published in 2009. It has five scales: anthropomorphism (how human it looks and acts), animacy (how alive it seems), likeability, perceived intelligence and perceived safety. They hold 5, 6, 5, 5 and 3 items, 24 in total.
Each item is a semantic differential: a pair of opposite adjectives with five boxes between them. The author’s page lists examples: Fake to Natural, Dead to Alive, Dislike to Like, Incompetent to Competent, Anxious to Relaxed. The person ticks the box that matches the robot. The five boxes become the numbers 1 to 5.
Animacy is the closest match to our word aliveness. Its six items run from Dead to Alive, Stagnant to Lively, Mechanical to Organic, Artificial to Lifelike, Inert to Interactive and Apathetic to Responsive. Notice what these pairs hold. They mix looks (organic), motion (lively) and reaction (responsive). That is why the scale works for a robot that moves and speaks.
Scoring is plain arithmetic, and still it goes wrong. Take Robot A and its six animacy items, averaged over a panel: 3.9, 4.1, 3.2, 3.5, 4.4 and 4.5. The sum is 23.6. Divide by 6. The animacy subscore is 3.93 out of 5. Do the same for each scale and you have five numbers.
The first trap is reverse coding. Some items are printed so that the “good” word sits on the left. A raw 2 on such an item means 4 on the common scale. The rule is: new score = 6 minus raw score, for a 5-point item. If you forget, that item pulls the average the wrong way. The Perceived Safety scale carries one such item, Quiescent to Surprised. Try it in the device below.
Bars show subscale averages for Robot A (solid) and Robot B (faded). Pick an instrument. On Godspeed, flip the switch to forget the reverse coding and watch Perceived Safety.
Illustrative: item averages for two made-up robots, A (quick, steady replies) and B (long pauses), from an imagined panel of 20. The scale names, item counts and example word pairs are from Bartneck et al. 2009 and the author’s Godspeed page. RoSAS has 18 items, six per scale, from Carpinella et al. 2017; its response scale is shown as 1 to 9 here, so check the paper before you reuse it.
With the flip on, Robot A wins Perceived Safety, 4.20 to 4.07. With it off, Robot B wins, 3.73 to 3.20. The ranking reversed because of one forgotten line of code. This is a common bug in analysis scripts, and nothing in the output warns you.
In 2017 Colleen Carpinella and colleagues built the Robotic Social Attributes Scale (RoSAS). They started from Godspeed items and from the psychology of how people judge other people. They ran factor analysis, a method that finds which items move together. It gave three groups of six items: warmth, competence and discomfort. That makes 18 items in all.
Secondary sources list the words as follows. Warmth: happy, feeling, social, organic, compassionate, emotional. Competence: capable, responsive, interactive, reliable, competent, knowledgeable. Discomfort: scary, strange, awkward, dangerous, awful, aggressive. Check the paper before you copy them; the HRI Scale Database notes that the full item sheet is not freely posted.
The discomfort scale is the useful new idea. A robot can be very lifelike and still give people the creeps. Roboticists call this dip the uncanny valley. Masahiro Mori named it in 1970. A questionnaire that only asks “how alive?” cannot see it. RoSAS can, because discomfort has its own score, and for that score lower is better.
Follow one study from paper to number. Twenty people each fill in the six animacy items for Robot A. That is a table of shape [20 people, 6 items], with ticks from 1 to 5. Step one: reverse-code any flipped item. Step two: for each person, average the six ticks. You now hold 20 numbers, one per person. Step three: take the mean of the 20, and divide their spread by √20 to get the standard error.
Say the 20 per-person scores average 3.93 and differ from each other by 0.6 points (their standard deviation). The standard error is 0.6 / √20 = 0.134. A 95% interval is about 3.93 ± 0.28, or 3.65 to 4.21. Robot B’s animacy of 2.60 (20 people, same spread) sits far outside that range, so the gap is not noise. If B had scored 3.7, the intervals would overlap, and you would need a better test than eyeballing two bars.
Three quiet biases hide inside such sheets. Acquiescence is the habit of ticking the agreeable side. The halo effect is the habit of letting one strong impression colour every item, so a lovely voice raises the intelligence rating too. The ceiling effect is when a very good robot gets 5 on everything, so the scale cannot separate it from a better one. The cures are the same as before: mixed item directions, a control robot in the same session, and a scale with room above your best version.
Wording matters, too. If you translate the scale, the published checks no longer hold, because “lively” may not mean the same thing in another language. Translate with care, test the new version with a small pilot, and say so in your report.
Two checks apply to every scale. Reliability asks: do the items of one scale move together? The usual number is Cronbach’s alpha, which runs from 0 to 1. A value near 0.7 or above is the common floor. Validity asks: does the scale measure what its name says? Does a high animacy score really come from a robot that behaves as if alive?
You rarely redo this work, because the authors did it. But you must keep the wording and the order of items as published. If you change a word, the published checks no longer apply.
One more caution. A questionnaire asks people to describe a feeling after the fact. People are polite, they are tired, and they try to guess what you want to hear. That is why the next chapters add other kinds of evidence.
Chapter 2
Ask people which of two robots feels more alive and turn the votes into a ranking
You have four versions of the robot’s voice. You ask a visitor to score each one from 1 to 5 for “how alive it sounds”. She gives 4, 4, 4 and 5. Another visitor gives 2, 3, 3 and 3. They disagree on the numbers. But look at the order. Both put the last version on top.
That is the whole idea of a pairwise preference study. People are bad at using an absolute scale, because one person’s 4 is another person’s 3. People are good at saying which of two things they prefer. So show two clips, ask “which one feels more alive?”, and record one vote. The personal scale cancels out.
A pile of votes is not a ranking yet. Version 2 beat Version 1 in 14 of 20 votes. Version 3 beat Version 2 in 12 of 20. How strong is each one? We need one number per version that explains all the votes together.
The Bradley-Terry model, from a 1952 paper by Ralph Bradley and Milton Terry, gives each version a hidden strength, written θ. It says the chance that version i wins against version j depends only on the gap between their strengths.
Work one pair by hand. Version 2 won 14 of 20, so its win share is 0.70. Solve the equation for the gap: gap = ln(0.70 / 0.30) = 0.847. Strengths are hard to feel, so people move them onto the Elo scale that chess uses. There, a gap of 400 points means the stronger side wins 10 times out of 11, and the scale factor is 400 / ln 10 = 173.7. So the gap is 0.847 × 173.7 = 147 Elo points. A 100-point gap gives a win share of 64%.
With many versions, each pair has its own vote count. We pick the strengths that make the observed votes most likely. This is maximum likelihood. A simple loop does it: give each version a start strength, compute how many wins each should have, nudge the strength up if it won more than expected, and repeat until nothing moves. Chatbot Arena (Zheng et al.) fits a Bradley-Terry model to the crowd votes between language models and reports the result on the Elo scale. Our robot study is the small version of the same machine.
The data flow is short. In: a list of records, each saying (version shown left, version shown right, which one won). Out: one rating per version, plus an interval around each. The device below runs that exact loop in your browser, with a resampling step to draw the intervals.
Four versions of the robot. Dots mark the true strengths, hidden in a real study. Bars with whiskers show what the votes recover. Slide the number of votes, then press Collect new votes.
Illustrative: the four true strengths (0, 60, 120 and 250 Elo points) are made up, and votes are drawn from the Bradley-Terry model, six pairs in rotation. Ratings are fitted by the minorization-maximization loop with half a win added to each side of every pair, then centred. Whiskers are the 5th to 95th percentile of 40 resamples of the votes.
At 12 votes the whiskers cross, and the ranking of the top three is a guess. At several hundred votes the ordering settles and the whiskers shrink. The effect is the square-root rule again: four times the votes, half the width.
Votes are never perfectly consistent, and that is why we need a model. Say Version 1 beats Version 2 in 14 of 20 votes, Version 2 beats Version 3 in 12 of 20, and Version 1 beats Version 3 in 16 of 20. Each pair gives its own gap: ln(0.70 / 0.30) = 0.85, ln(0.60 / 0.40) = 0.41 and ln(0.80 / 0.20) = 1.39.
If the model were exact, the first two gaps would add up to the third: 0.85 + 0.41 = 1.26. The third pair says 1.39. The two disagree by 0.13, which is chance in a sample of 20 votes. Maximum likelihood finds the one set of three strengths that is least wrong across all three pairs. It lands between the direct and the indirect route, and it uses the votes of every pair to inform every strength. That sharing is why a Bradley-Terry fit with many versions needs fewer votes than testing each pair alone.
Real people also say “I cannot tell”. Offer that option. Count a tie as half a win for each side, which is how the Arena practice treats draws. If ties are very common, that is itself a result: the two versions are close, and you should look at timing or behaviour instead.
Finally, a rating from a pairwise study has no meaning by itself. Only gaps do. To compare two studies, put the same anchor version in both, and report ratings relative to it.
The first failure is position bias. People lean towards the clip they heard first, or the one on the left. The symptom is a win rate above 50% for the left slot. The measure: show each pair in both orders and compare. The fix: randomise which version is left, and report the left-slot win rate as a health check. Zheng and colleagues found the same family of bias in LLM judges, together with a taste for longer answers.
The second failure is the question itself. “Which is better?” invites each person to apply a different standard. “Which one feels more alive?” fixes the standard. Say the word once, in the same way, to every person.
The third failure is cost. All pairs of n versions is n(n−1)/2 pairs: 28 for 8 versions, 190 for 20. Spend votes on the close pairs, not the obvious ones. Adaptive schemes do this, but the plain round robin is the one to start with.
Chapter 3
Measure the silence between two speakers and compare it with the rhythm of human talk
You say, “What time is it?” and stop. The robot waits. One second. Two. You start to say it again, and just then it answers. Both of you talk at once. The words were right. The timing was not, and the robot now feels like a bad phone line, not like a person.
Timing is the most measurable part of aliveness. You need no questionnaire for it. You need two microphones and a clock. But first you need to know what a good number looks like.
Define the response offset of one exchange: the time the second speaker starts, minus the time the first speaker stops. A positive number is a gap, a silence between turns. A negative number is an overlap, where the second speaker begins early.
Tanya Stivers and colleagues measured this in 2009 for ten languages, from major world languages to small community languages. They looked at answers to yes-or-no questions. All ten languages avoid overlap and keep gaps short. The overall mean offset was +208 ms, the median +100 ms, and the most common value (the mode) 0 ms. The slowest language in the sample was Danish with a mean of +469 ms. The fastest was Japanese, at +7 ms. Language means stayed within about 250 ms of the overall mean.
Read that again. The silence between people is a fifth of a second. A quarter of a second is about the time to say one English syllable. A robot that waits one full second is not slow in the way a web page is slow. It is outside the range any human community uses.
Why is a machine slow? Because a classic voice assistant is a chain. First it must decide you have finished: this is endpointing, waiting for enough silence. Then speech recognition turns the audio into text. A language model reads the text and starts its answer; the delay until its first word is the time to first token. A speech synthesiser turns that word into sound. Then the audio travels back over the network. Each stage adds to the gap.
A streaming design overlaps the stages: it recognises while you talk, starts the model on partial text, and speaks the first words while the rest is still being written. A speech-to-speech model skips the text step and hears and speaks directly. Our lessons on voice turn taking and streaming speech build these designs. Here we only need the accounting.
There is a trade hidden in the first stage. A short endpointing wait makes the robot quick, but it may jump in at your mid-sentence pause. A long wait is polite and slow. Try it below.
Each row is one stage of the reply, starting where the last one ended. Dashed lines mark human gaps: 7 ms (Japanese), 208 ms (the ten-language mean) and 469 ms (Danish). Pick a design, then slide the endpointing wait.
Illustrative: the stage times are plausible round numbers, not measurements of any product (cascade: hear 150, think 450, speak 250, network 100; streaming: 0, 250, 150, 80; speech to speech: model 200, network 80). The cut-off risk is a toy curve, 50% times e−wait/200 ms. The human gaps are measured: Stivers et al. 2009.
With the cascade and the default 500 ms wait, the reply lands 1,450 ms after you stop. That is seven times the human mean. Streaming at the same wait lands at 980 ms; cut the wait to 300 ms and it lands at 780 ms. Speech to speech with a 100 ms wait lands at 380 ms, inside the human range, but the toy cut-off risk then reaches 30%. Notice that at the 500 ms default the wait is the biggest single bar in the cascade and the streaming design. Better models cannot fix a wait that is set too long.
To measure timing, record two channels: the person’s microphone and the robot’s speaker output. Run a voice activity detector (VAD), a small model that marks when sound is speech, on each channel. You get a list of speech intervals per channel. Pair each person interval with the next robot interval. The offset is robot start minus person end.
Work five exchanges: +180, +240, −60, +900 and +310 ms. The mean is 314 ms. The median is 240 ms. The 90th percentile, found by sorting (−60, 180, 240, 310, 900) and interpolating at position 3.6, is 664 ms. Report all three. The mean hides the one reply at 900 ms, and that one is the reply the user remembers.
First, clock sync. The person’s microphone and the robot’s speaker output are often logged by different devices. If one clock runs 80 ms ahead of the other, every offset is off by 80 ms, and your robot looks faster or slower than it is. The measure: play a sharp click through the robot’s speaker and record it on the person’s microphone, then compare the two timestamps. The fix: correct all offsets by that measured lag, and re-check it each time you change the hardware.
Second, endpointing is a decision, not a fact. The simplest detector declares the turn finished after a fixed stretch of silence. A better one also uses the words so far, so that “I want to book a…” does not count as finished. A person pausing to think is not done. Your evaluation should log what the robot decided and what the person did next, so you can count the cases where the robot spoke and the person kept talking. That count is the cut-off rate, and it belongs next to the median gap.
The mirror case is barge-in: the person speaks while the robot is talking. A lively robot should notice and stop. You can measure the time from the first moment the person speaks to the moment the robot’s audio falls silent. A long stop time feels like being ignored.
The failure mode has a symptom, a measure and a fix. Symptom: people say the robot is “mostly fine but sometimes dead”. Measure: the 90th and 99th percentile of the offset, and the share of replies above 700 ms. Fix: trace the slow cases to a stage (a cold model, a slow network, a long endpoint wait) and cut that stage, not the average.
Two more limits. Telephone engineers use about 150 ms of one-way delay as a comfort bound (ITU-T G.114), and that delay adds to everything above if the robot is in a cloud. And a gap is not always bad: a longer pause before a hard question sounds thoughtful. Timing must match the context, which is why we also need ratings and behaviour.
Chapter 4
Count what people do around the robot instead of what they say about it
A visitor tells you the robot was “really engaging”, and gives it 5 out of 5. You watch the video. She stood two steps back with her arms crossed. She looked at her phone twice. She left after forty seconds. The words and the body disagree.
People are polite. They guess what you hope to hear. They also cannot fully report their own feelings. So a good evaluation watches what people do. A behavioural measure is a count or a duration taken from actions, with no question asked.
Most behavioural measures fall into a few families. Attention: the share of time the person looks at the robot (gaze share). Distance: how close they stand, which anthropologist Edward Hall called proxemics; people step closer to things they accept. Dwell time: how long they stay. Conversation: turns per minute, how often they speak without being asked, how often they interrupt or overlap. Affect: smiles and laughter. Return: whether they come back tomorrow, by choice.
Each of these is a number you can compute from a recording. None needs the person to think about the robot at all. That makes them hard to fake and easy to repeat.
Think of the recording as lanes, like tracks in a music editor. One lane marks when the person speaks. One marks when the robot speaks. One marks when the person looks at the robot. Each lane is a list of intervals: (start second, end second). A detector fills each lane. A VAD fills the speech lanes. A gaze tracker or a human annotator fills the gaze lane.
A metric is then a short formula over the lanes. Gaze share = seconds of gaze inside the window, divided by the length of the window. Turns per minute = person turns that start in the window, times 60, divided by the window length. Longest silence = the largest stretch in the window with both speech lanes empty.
A worked case. In a 120 s session, gaze intervals add up to 78 s. Gaze share = 78 / 120 = 65%. The person started 14 turns. Turns per minute = 14 × 60 / 120 = 7.0. These two numbers are now comparable between robot versions, if the window is the same.
Three lanes from a 120 s session. Pick a robot, then choose the window the metrics are computed over. Dimmed time is outside the window.
Illustrative: both sessions are simulated and seeded. Robot A replies about 0.3 s after the person; Robot B about 1.4 s. In the toy, gaze at B starts high from curiosity and fades, the way a novelty effect does. Nothing here is a measured effect size.
Switch Robot B between the first 30 seconds and the whole session. In the first 30 seconds its gaze share looks as good as A’s or better. Over the whole session it falls behind. This is the novelty effect: anything new gets looks. If you test for one minute, you measure newness, not aliveness.
Take a measure that needs a sensor other than a microphone. A depth camera in the room tracks the person’s position at 10 frames per second. For each frame you compute the distance to the robot. A 120 s session gives 1,200 distances, in metres. The metric is the median distance, which resists the odd frame where the tracker jumps. Say the median is 1.2 m for Robot A and 2.0 m for Robot B. That is a clear, repeatable difference, found with no question at all.
It still needs reading with care. A person may stand back because the robot is large, because the room is small, or because a speaker is loud. The number measures where people stood. Why they stood there needs another source: an interview, a rating, or a second condition that changes one thing at a time.
Two good habits apply to every behavioural metric. Define it as a formula over named lanes before you collect any data. And have a person check the detector on a short slice, say two minutes of video, to see how often the tracker or the gaze model is wrong. A metric built on a detector that is wrong one frame in five is only as good as that detector.
The first problem is confounding. A loud or flashing robot earns looks because it is loud, not because it feels alive. Gaze says “attention”, and attention can mean delight, confusion or alarm. The measure: pair gaze with a second signal, such as smiles, or ask a question after the session. The fix: never read one behavioural number alone.
The second problem is the window. As the device shows, the same session gives different numbers over different windows. Choose the window before you look at the data, and write it down. Test over several days when you can; return rate then becomes a strong signal, because it is a free choice.
The third problem is the setting. A lab with a consent form is not a kitchen. People behave more politely when watched. A Wizard of Oz study can help in the early phase: a hidden human controls the robot’s speech and moves, so you can test a behaviour before you build it. You then compare the same behavioural metrics against the finished robot, to see how much of the effect your software actually recovers.
The last problem is the detector. If the VAD or gaze model errs, the metric inherits its errors. Check the detector on a hand-labelled slice, and report its agreement with the human labels (Chapter 6 shows how).
Chapter 5
Run two versions with real users and decide how many users the test needs
You have a new version of the robot’s voice. The team loves it. You ship it to every robot in homes. A week later the return rate is up. Was it the new voice? Or was it the weather, or a holiday, or a press article? You cannot tell, because you changed everything for everyone at once.
The cure is old and plain: split the users by chance. Half get the old version (control), half get the new one (treatment). Both halves live through the same week, so anything else that changed hits both. The only systematic difference is the version. This is an A/B test, also called an online controlled experiment. Ron Kohavi and colleagues wrote the standard book on running them.
Before you start, choose one main number. It must come from behaviour, and it must be something you could actually move. For a home robot, a good candidate is the next-day return rate: the share of users who talk to the robot again the day after their first session. Say it is 30% today. That is our illustrative baseline.
You also choose guardrail metrics, numbers that must not get worse: complaints, crashes, the rate of safety events. A change that raises return rate by scaring people into checking the robot is not a win.
Each user either returns or does not. Out of n users, the observed rate wobbles by chance, just as ratings did in Chapter 0. The wobble of one rate is the standard error: √(p(1−p)/n). For the difference between two arms of n users, it is √(2p(1−p)/n).
Say the true lift is 5 points. With 400 users per arm, the standard error of the difference is √(2 × 0.30 × 0.70 / 400) = √0.00105 = 3.2 points. A 5-point lift is only 1.5 standard errors tall. Chance alone can produce that often. We declare a result significant when the lift is more than 1.96 standard errors from zero, a rule that makes a false alarm happen 5% of the time when there is no real lift.
The chance that a test finds a real lift is its statistical power. The usual target is 80%. To get it, you need enough users. The formula follows from the two cut-offs, 1.96 for the 5% false-alarm rule and 0.84 for 80% power.
Work it with p = 0.30 and d = 0.05. The constant 2 × 2.82 is 15.68. Then p(1−p) = 0.21 and d2 = 0.0025. So n = 15.68 × 0.21 / 0.0025 = 1,317 users per arm. For a 10-point lift, n is 329. For a 2-point lift, it is over 8,000. Small lifts are expensive.
Each bar counts tests whose measured lift fell in that range. Green: a significant win. Red: a significant loss. Purple: not significant. Set the true lift and the users per arm.
Illustrative: the baseline return rate of 30% is a made-up number. Each test draws its measured lift from a normal curve with the right standard error, a good approximation at these sizes. A test is significant when the lift is more than 1.96 standard errors from zero. The sample-size formula is the standard one for two proportions.
Set the lift to 5 and users to 400. Only about a third of the tests find the lift, and most of the rest come back with no verdict. Slide users up to 1,300 and close to 80% succeed. Set the lift to 0 and about 5 in 100 tests still cry “win”. That is the cost of a 5% false-alarm rule.
When the test ends, do not stop at “significant”. Say the control arm had 1,400 users and 31.5% returned, and the treatment arm had 1,400 users and 36.1% returned. The measured lift is 4.6 points. The standard error of the difference is √(0.315 × 0.685 / 1400 + 0.361 × 0.639 / 1400) = 0.0179. The test statistic is 4.6 / 1.79 = 2.6, beyond 1.96, so the result is significant. The 95% interval for the true lift is 4.6 ± 1.96 × 1.79, which is 1.1 to 8.1 points.
That interval is the honest result. The true lift is probably between 1 and 8 points. It might be small. A decision maker needs this range, because a 1-point gain may not pay for the cost of the change, and an 8-point gain surely does. Report the interval, not just the p-value.
For a robot in homes, roll out in steps. Start with 1% of users to catch crashes. Move to 10% to read the guardrails. Only then run the full split that decides the main question. This ramp costs a few days and protects the people who use the robot.
Peeking is the first trap. You check the result each morning and stop when it turns significant. Each look is another chance for a false alarm, so the real false-alarm rate climbs far above 5%. Fix: choose n in advance and read the result once, or use methods built for repeated looks.
A broken split is the second. If you meant 50/50 and got 52/48 in a large test, something is wrong in the assignment code, and the result cannot be trusted. Check the counts first. This check has a name, sample ratio mismatch.
Interference is the third. Two robots in one home share one family. If one speaks differently, the family may treat both differently. Randomise at the level where users share an effect, here the household, not the session.
The last is the metric. Return rate is a behavioural stand-in for “feels alive”. It may also rise from a notification nag. Pair it with the ratings and timing from the earlier chapters, and with the guardrails above. Our lessons on experiment design and evaluation statistics go further.
Chapter 6
Check that two people judging the same clip give the same answer more often than luck
Two people watch 100 clips of the robot. For each clip they say “alive” or “not alive”. They agree on 90 clips. That sounds excellent. Then you notice that both said “alive” for almost every clip. Two people who always say “alive” would agree 90% of the time on this set without looking at a single frame.
This chapter is about the check that stops you being fooled by that. Everything in the earlier chapters used people as instruments. An instrument has to give the same reading twice. Inter-rater reliability measures whether different people, using the same rubric, give the same answer.
Start with two raters and two labels. Count the clips in four cells: both said alive (a), only the first said alive (b), only the second said alive (c), neither said alive (d). The share of clips where they agree is the observed agreement, po = (a + d) / total.
Now ask what luck alone would give. If the first rater says “alive” 90% of the time and the second does too, and they answer independently, they agree on “alive” with chance 0.9 × 0.9 = 0.81, and on “not alive” with chance 0.1 × 0.1 = 0.01. Chance agreement pe is 0.82. Jacob Cohen’s 1960 fix is to count only the agreement above luck.
Run the opening case. With 85 clips both alive, 5 and 5 split, and 5 both not alive: po = 0.90 and pe = 0.82. So κ = (0.90 − 0.82) / (1 − 0.82) = 0.08 / 0.18 = 0.44. That is only moderate, in the bands Landis and Koch suggested in 1977. Now take a balanced set with 45, 5, 5 and 45. Observed agreement is still 0.90, but luck is only 0.50, so κ = 0.40 / 0.50 = 0.80, substantial. Same 90%, very different trust.
Rater 1 is the row, Rater 2 is the column. Change the counts with the plus and minus buttons, or choose a preset. Watch observed agreement, luck and kappa.
Kappa is computed live from the four counts. The band names are the Landis and Koch (1977) suggestions, a rule of thumb and not a law. The counts and presets are illustrative.
Load the skewed preset. Observed agreement is 90%, luck is 82%, and kappa falls to 0.44. This is the prevalence trap: when one label dominates, high agreement is cheap. Then try the coin flips. Agreement is 50% and kappa is 0, as it should be.
Kappa from 100 clips is an estimate, and it wobbles like every other number. A common approximation for its standard error is √(po(1−po) / (n(1−pe)2)). For the skewed set, that is √(0.09 / (100 × 0.0324)) = 0.17. The 95% interval for kappa is then 0.44 ± 0.33, from 0.11 to 0.77. The raters might agree barely above luck, or quite well. A hundred clips cannot tell.
For the balanced set, the same formula gives √(0.09 / (100 × 0.25)) = 0.06, so kappa is 0.80 ± 0.12. Balanced sets give narrower intervals, since there is more room above luck to measure. The practical rule: label a few hundred clips twice, include clips from every part of the scale, and report the interval beside kappa.
Double-labelling costs money, so you rarely do it for every clip. The usual plan is to have two people label a random slice, check agreement, fix the rubric, and then let one person label the rest. Re-check on a fresh slice every few weeks, because raters drift.
Real studies have many raters, and some skip clips. Krippendorff’s alpha handles any number of raters, missing answers and several kinds of scale (yes-or-no, ordered ratings, numbers). The commonly quoted guide asks for alpha of 0.800 or more before you rely on the data, and treats 0.667 to 0.800 as good enough only for tentative conclusions. For ordered ratings such as Godspeed items, use a weighted version, so a 4-versus-5 disagreement counts less than a 1-versus-5. Our grader reliability lesson walks the same ground for automatic judges.
The symptom is a low kappa or alpha. The measure is where the disagreements sit: build the table of which clips split the raters, and read ten of them. The cause is almost always one of three. The rubric is vague (“alive” can mean lively, natural or responsive). The clips are truly borderline. Or one rater drifted.
The fixes follow. Rewrite the rubric with anchor examples for each label. Split a fuzzy label into two sharper ones, such as “responds to me” and “moves naturally”. Run a short training round with a few clips and discuss every split. For the final labels, let a third person settle each tie, or keep the clips raters disagreed on as their own test set.
A low score is information, not just a nuisance. If trained people cannot agree on a clip, an automatic score cannot be right about it either. That limit matters in the next chapter.
Chapter 7
Fit a cheap automatic score to human ratings and test it on clips it has never seen
Your team makes a change every day. Each change needs a verdict by morning. Rating 500 clips with people takes a week and costs real money. So the team asks: can a program give a rough rating overnight, one that tracks what people would have said?
That program is a proxy: a cheap measurement standing in for an expensive one. The expensive one is the human rating. The proxy is only worth having if it agrees with people on clips nobody has rated yet. This chapter shows how to build one and how to check it honestly.
Take a set of clips that people have already rated. For each clip, compute a feature vector: a short list of numbers the machine can measure, such as the median reply gap, how much the pitch of the robot’s voice moves, how fast it reacts to the person’s gaze, or a score from a language model that reads the transcript. Stack them into a table of shape [n clips, d features]. Next to it sits a column of shape [n clips]: the mean human rating of each clip.
A model learns a function from the table to the column. In its simplest form that is a straight line. Then you ask how well it does on clips it never saw. Those unseen clips are the held-out set, and the score on it is the only score that counts.
Give a model enough freedom and it will pass through every training point. A curve with as many bends as there are points can do this. It then predicts the training clips perfectly and new clips badly, because it learned the noise in the human ratings, not the trend. This is overfitting.
Human ratings are noisy. Chapter 0 showed that a small panel moves the average. So a proxy that matches the training ratings exactly must be matching noise. The device lets you watch the split open. Slide the flexibility up.
Each dot is one clip: the proxy’s cheap score on the bottom, the human mean rating up the side. Solid dots are the 14 training clips. Hollow dots are 30 held-out clips. Slide the flexibility of the curve.
Illustrative: the clips are simulated. The human rating follows a smooth S-shaped trend in the cheap score plus noise (spread 0.4), clipped to the range 1 to 5. The curve is a polynomial fitted by least squares on the training dots only. Correlation r is Pearson’s, computed live.
At degree 1, the line fits the trend, and training and held-out scores are close. As the degree rises, the training correlation creeps up while the held-out one stalls and then drops, sometimes sharply. When the gap between the two numbers opens, you have fitted noise. Choose the simplest curve whose held-out score stops improving.
Suppose 44 clips were each rated by 10 people on the animacy scale. Take the mean rating of each clip as the target y, with shape [44]. For each clip you compute three features: the median reply gap in seconds, the standard deviation of the robot’s pitch in semitones, and the share of the person’s turns that the robot answered within 500 ms. The feature table X has shape [44, 3]. You split by person: 14 clips for fitting, 30 for testing, with no person in both.
Fit a linear model on the 14. Then predict the 30 and compute r. You can also score the proxy by pairwise accuracy: for every pair of test clips, does the proxy order them the way the human mean does? A coin flip gets 50%. For ranking versions, this is often more useful than r. A proxy with pairwise accuracy of 80% picks the better clip in four of every five pairs.
You can also train the proxy on votes instead of ratings. Fit a Bradley-Terry model to the preference data (Chapter 2) and let the features predict the strength. Reward models for language models follow this recipe. It sidesteps the problem that people use a rating scale differently.
There is a ceiling. If the human ratings themselves have reliability less than 1 (Chapter 6), then no proxy can correlate with them more than the square root of that reliability. This is an old result from classical test theory, called the attenuation bound. If the human mean rating has reliability 0.81, the best possible correlation is about 0.90. A proxy at 0.85 against that target is close to perfect. Report the ceiling beside the proxy.
Two more rules keep you honest. Split by session or by person, not by clip. If clips from one visitor sit in both train and test, the proxy may learn that visitor’s habits. And check ranking, not only correlation. What you need most is for the proxy to order two robot versions the way people would.
Many teams now use a language model as a rater. Zheng and colleagues tested this on MT-bench and Chatbot Arena and found that a strong judge reached over 80% agreement with human preferences, about the same level at which humans agree with each other. They also named its biases: it favours the answer shown first (position bias), the longer answer (verbosity bias) and answers from its own family (self-enhancement bias).
For a robot, apply the same care. A text judge sees a transcript and a timing log. It does not hear the voice. So it can rate what the robot said and when, not how it sounded. Check it against people with the same kappa from Chapter 6, randomise the order of pairs, and keep a human-rated slice as a standing test.
Once the team starts to optimise the proxy, it stops being a good proxy. People find the cheap trick that raises the score without raising real aliveness, such as adding a filler sound that the proxy likes. This is the old warning that a measure used as a target stops being a good measure. The symptom: the proxy climbs while human ratings stay flat. The measure: every month, have people rate a fresh sample and recompute the correlation. The fix: refit on the new ratings, and add a feature or a guardrail that closes the trick.
Chapter 8
Match each question about the robot to the method that can answer it
Your team has seven tools now. A new teammate asks a plain question: “How do I know if Friday’s build is better?” You cannot hand her all seven tools and wish her luck. Each tool answers some questions well and others badly. The skill is to match the question to the tool.
A scale (Godspeed or RoSAS) describes how people perceive the robot on named traits, and it is the only tool here that can see discomfort directly. It is slow, because it needs people, and it is easy to bias. A pairwise study ranks versions sharply with few people, but it says nothing about why one wins, and a rating has no meaning outside its study. Timing logs are free and exact, but they know nothing about whether a gap felt right in context. Behavioural measures are hard to fake, but they need interpretation. An A/B test shows real use with real users, but it is the slowest and needs many people. A proxy is fast and cheap, but it is only as good as the ratings it learned from.
No single tool sees the whole robot. That is why the strongest evaluations use several and look for agreement among them. When timing, ratings and behaviour all point the same way, you can trust the direction. When they disagree, you have found something worth a week of study.
A good plan is a funnel. At the top, many changes meet cheap tests: a proxy score and a timing check on every build, overnight. Fewer changes pass to the middle: a pairwise study with a small panel, each week. Fewer still reach the bottom: a questionnaire with a behavioural session at each milestone, and an A/B test before release. At each step, people check that the cheap tool above still tracks them.
The funnel works only if the proxy stays honest, so the plan includes a standing calibration loop. A fixed set of clips, rated by people with known reliability (Chapter 6), stays frozen. Every proxy is scored against it. Every month, a fresh slice is rated and added.
Plans fail quietly when choices are made after the numbers arrive. Before the study, write down: the one question; the primary metric and its window; the number of people, from the power formula in Chapter 5; the rule for dropping bad sessions; and the interval you will report. If you change the metric after seeing the data, say so and treat the result as a lead to test, not a finding.
Two guardrails belong in every plan. First, people and privacy. Recordings of faces and voices in homes are personal data, so get consent, store little, and delete on request. Second, honesty about the machine. A robot that feels very alive can lead people to trust it too much. Add a question that checks whether people know what it is and what it can do, and treat a drop there as a failure, whatever the aliveness score says.
Keep a short log with every study: the date, the build, the question, the tool, the number of people, and the result with its interval. Six months later, this log is how you learn which tools predicted what happened with real users, and which ones only looked good.
Here is how the funnel could look in a single week, with round numbers. On Monday 30 changes land. Every night the timing check and the proxy run on all 30, at almost no cost, and 24 are dropped as clearly no better. On Wednesday the remaining 6 meet a pairwise study: 12 people, 15 votes each, so 180 votes in all. Two versions come out ahead. On Friday the best one goes into a questionnaire and a recorded session with 20 people. Only the one that passes all three goes into an A/B test in the following month.
The cost grows by roughly a factor of ten at each step, while the number of candidates falls by a similar factor. The proxy is trusted only because, each month, a fresh slice is rated by people and the correlation is recomputed. Without that loop, the top of the funnel drifts and the team optimises the wrong thing.
Use the matrix below to try it. Choose a question and see which tools fit it best, and which one cannot answer it at all.
Rows are questions, columns are tools. A solid block means a strong fit, a faint block a weak one. Pick a question to highlight its row.
Illustrative: the fit scores (0 to 3) and the speed labels are this lesson’s own judgement from the strengths and limits described in Chapters 1 to 7, not measured values. Your situation may rank them differently.
Try the build question. Only the proxy and the timing log can answer overnight, and the slower tools never see the answer in time. Now try the creep-out question. The scale leads, because it is the only tool with a score for discomfort; behaviour, such as standing distance, can back it up. No single column is dark across all five rows. That is the point.
Chapter 9
Keep the numbers, the checklist, the code and the sources on one page
A robot is alive only to the people who meet it, so we measure people with several tools and check each one. Scales (Godspeed, RoSAS) score named traits. Pairwise votes fit to a Bradley-Terry model rank versions. Timing is the response offset between turns, reported as a median and tail percentiles against a human mean of 208 ms. Behaviour comes from lanes of events over a fixed window. A/B tests need enough users, chosen in advance by the power formula. Kappa and alpha show whether raters agree beyond luck. Proxies are fitted to ratings and trusted only on held-out clips.
| What | Number | Why it matters |
|---|---|---|
| Godspeed scales and items | 5 scales; 5, 6, 5, 5, 3 items = 24; ratings 1 to 5 | Report each scale; reverse-code flipped items (Bartneck et al. 2009) |
| RoSAS scales and items | 3 scales (warmth, competence, discomfort) × 6 items = 18 | Discomfort has its own score (Carpinella et al. 2017) |
| Human response offset | mean +208 ms, median +100 ms, mode 0 ms; Japanese +7, Danish +469 | The target range for a reply gap (Stivers et al. 2009) |
| Elo gap to win share | 100 points = 64%; 400 points = 10 in 11 | Read a rating gap as a vote share |
| Standard error of a mean | shrinks as 1 / √n | Four times the people halves the error bar |
| Users per arm for 80% power | 1,317 at p = 0.30, lift 5 points; 329 at 10; over 8,000 at 2 | Small lifts are expensive (illustrative base rate) |
| Kappa on a skewed set | 90% agreement = kappa 0.44; balanced 90% = 0.80 | Agreement must beat luck |
| Krippendorff alpha cut-offs | 0.800 reliable; 0.667 tentative | When rater labels are fit to use |
| LLM judge vs humans | over 80% agreement with human preferences | Same level as human-to-human; mind position, verbosity and self bias (Zheng et al. 2023) |
Four short functions cover the arithmetic of Chapters 3, 6, 2 and 5. Each was run on the lesson’s own worked examples: the five offsets give a median of 240 ms and a 90th percentile of 664 ms; the two tables give kappa 0.44 and 0.80; the sample size is 1,317.
python
import numpy as np
def reply_offsets_ms(person, robot):
"""person, robot: sorted (start_s, end_s) speech intervals from a VAD on each channel."""
out = []
for p_start, p_end in person:
later = [r for r in robot if r[0] >= p_start]
if later:
out.append((later[0][0] - p_end) * 1000) # negative means the robot talked over you
return np.array(out)
def cohen_kappa(a, b, c, d):
"""a both yes, b only rater 1 yes, c only rater 2 yes, d both no."""
n = a + b + c + d
po = (a + d) / n
r1, r2 = (a + b) / n, (a + c) / n
pe = r1 * r2 + (1 - r1) * (1 - r2)
return (po - pe) / (1 - pe)
def bradley_terry(votes, k, iters=100):
"""votes: list of (i, j, i_won). Returns Elo-scale ratings, centred."""
wins = np.full(k, 0.5 * (k - 1))
n = 1.0 - np.eye(k) # half a win per side of every pair
for i, j, i_won in votes:
wins[i if i_won else j] += 1
n[i, j] += 1
n[j, i] += 1
p = np.ones(k)
for _ in range(iters):
p = wins / (n / (p[:, None] + p[None, :])).sum(axis=1)
p /= np.exp(np.log(p).mean())
elo = 400 * np.log10(p)
return elo - elo.mean()
def users_per_arm(p, lift, z_alpha=1.96, z_power=0.84):
return 2 * (z_alpha + z_power) ** 2 * p * (1 - p) / lift ** 2
This lesson draws on three fields. Human-robot interaction supplies the scales and the study designs. Conversation analysis supplies the timing numbers. Statistics and machine learning supply the preference models, the reliability measures, the experiments and the held-out test. Nothing here is specific to one robot.
Now press Teach and explain one evaluation from memory: pick a question about the robot, choose the tool, say how many people it needs, and name how you would check that the raters agree. Then go back to the study at the top, set the panel to 60 people, and explain why the error bar shrinks but the robot does not change.