Almost every discussion in the Nubia case revolves around numbers: churn that goes from 4% to 5.5%, 7.4% versus 4.0%, a "30% reduction", a "92% precision". Numbers give a sense of objectivity that they often do not deserve: the same data can look alarming or irrelevant depending on how it is presented, a difference can be noise and a correlation can have nothing to do with causation. Statistical thinking is not about mastering formulas, but about asking the right questions of any figure: is this variation normal? relative to what denominator? how many cases lie behind it? what else could explain this relationship? what exactly does this metric measure? In this lesson you will work through those questions with Nubia's data, see a few simple Python snippets for checking them and learn why a randomised experiment gives a better answer than any observational comparison. By the end, we will understand, with numbers, what lies behind PredictaAI's "92%".
- Variability and noise: is 5.5% out of the ordinary?
Every real process varies even when nothing changes. If around 128 out of 3,200 customers leave each month for the usual reasons, some months it will be 115 and others 140, purely by chance. We call that variation with no special cause noise; a change with a cause is a signal. Diego's first reaction ("1.5 points is noise") was a claim about exactly this, made without looking.
There are two complementary ways of checking it:
- Comparing with the historical record: over the last 24 months, total churn fluctuated between 3.6% and 4.6%. October (5.5%) sits almost a point above the maximum. This is a simple, empirical check.
- Estimating how much noise to expect by chance given the number of accounts. For a proportion there is a standard approximation: the standard deviation due to chance is roughly the square root of p × (1 − p) / n, where p is the usual rate and n is the number of accounts.
This Python snippet calculates that estimate for each Nubia segment:
import math
# segment: (accounts, usual churn, October churn)
segments = {
"Total": (3200, 0.040, 0.055),
"SMB": (2000, 0.048, 0.070),
"Mid-sized": (900, 0.032, 0.036),
"Enterprise": (300, 0.010, 0.013),
}
for name, (n, p, october) in segments.items():
noise = math.sqrt(p * (1 - p) / n) # standard deviation due to chance
distance = (october - p) / noise # how many "noise units"
print(f"{name:<11} noise ±{noise*100:.2f} pt "
f"October at {distance:.1f} noise units")Line-by-line explanation:
import mathloads mathematical functions; we will use the square root (math.sqrt).segments = {...}is a dictionary: each key is a segment and its value is a tuple of three numbers: accounts, usual churn (September's, as a reference) and October churn, written as proportions (0.04 = 4%).for name, (n, p, october) in segments.items():loops through the segments and "unpacks" the tuple into three variables.noise = math.sqrt(p * (1 - p) / n)applies the approximation: how much the rate can be expected to vary through chance alone.distance = (october - p) / noiseexpresses the observed difference in multiples of that noise.print(...)displays the result;*100converts to percentage points and:.2frounds to two decimal places.
Result:
Total noise ±0.35 pt October at 4.3 noise units SMB noise ±0.48 pt October at 4.6 noise units Mid-sized noise ±0.59 pt October at 0.7 noise units Enterprise noise ±0.57 pt October at 0.5 noise units
How to interpret it, without going into the theory:
- Differences of 1 or 2 noise units are common by chance; more than 3 are very rare if nothing has changed.
- The total and the SMBs are more than 4 units away: it is very unlikely to be noise. This matches the historical record. H4 is still unlikely, now with a second check.
- Mid-sized and Enterprise are below 1: their rise is entirely compatible with chance. There is no need to look for an explanation.
An honest limitation: this approximation assumes that each account decides independently and that the usual rate is stable. Real data also has seasonality and other sources of variation; that is why the historical range (3.6-4.6%) is somewhat wider than the calculated noise. Using both checks is more robust than using one.
- Rates, absolute numbers and denominators
An absolute number without a denominator can mislead in both directions:
| Claim | Problem | The right question |
|---|---|---|
| "Reviews went from 60 to 214" | Did the number of times we ask for a review change? How many active users are there? | Reviews per 1,000 active users and per request? |
| "Tickets: from 800 to 1,140" | Useful, but we don't know whether the number of active users changed | Tickets per 1,000 active users? |
| "Security alerts have increased" | If there are more logins (because of the timeout), there will be more alerts even if the risk per login is the same | Alerts per 1,000 logins? |
| "176 customers left in October" | Striking, but with no reference point | Out of how many? How many left in other months? |
The alerts case is particularly instructive: with the 2-hour session, app users log in many more times. More attempts produce more alerts even if the proportion of suspicious logins does not change. The right denominator (logins) would have pointed Sofía in the right direction from the start.
Choosing the denominator is also a decision: churn is calculated over "active accounts at the start of the month". If it were calculated over users, or over revenue, the figures would be different (an Enterprise cancellation weighs far more in revenue than an SMB one).
- Percentages versus percentage points
When a rate goes from 4% to 5.5%:
- It has risen by 1.5 percentage points (the difference between the two rates).
- It has risen by 37.5% in relative terms (1.5 / 4 = 0.375).
Both statements are true, but they create very different impressions. This is a case of the framing effect (04-02): "churn has risen by 37.5%" sounds like a crisis; "it has risen by 1.5 points" sounds like something minor.
Applied to PredictaAI's promise:
"Reduce churn by 30%" - Relative to the current 5.5%: 5.5 x 0.70 = 3.85% (-1.65 points; around 53 fewer cancellations a month) - Relative to the usual churn (4%): 2.8% (-1.2 points), well below the historical minimum (3.6%) - In points: impossible (you can't drop 30 points from 5.5) - Its success story (8% -> 5.6%): -30% relative, -2.4 points
Explanation: the same sentence can be read in very different ways. And note one detail: if Nubia fixes the causes of October's rise and returns to its usual level (~4%), it will have achieved a 27% relative reduction on 5.5%... without PredictaAI. That is why it is crucial to know from which baseline an improvement is measured.
- Means and medians
The mean adds up all the values and divides by how many there are; the median is the middle value when they are put in order. When there are extreme values (a skewed distribution), the two can be very different.
A Nubia example: time to first support response in October.
TIME TO FIRST RESPONSE (October, 1,140 tickets)
Mean: 9.1 hours
Median: 2.0 hours
Reason: around 60 billing tickets sat unanswered for days in a
wrongly assigned queue; they push the mean up a great deal.Explanation: "customers wait 9 hours on average" is a poor description of the typical experience (half the tickets are answered in under 2 hours), but the mean does reveal that there is a group with very long waits. Neither figure "lies": each one answers a different question. To describe what is typical, use the median; to detect long tails, look at the distribution (percentiles such as p90 or p95, widely used in latency monitoring).
- Sample size and small segments
We saw in 02-05 that a small or unrepresentative sample does not allow us to generalise. Section 1 adds a way of quantifying this: the smaller n is, the greater the noise.
- Enterprise has 300 accounts and a churn of 1%: that is around 3 cancellations a month. Going to 1.3% means going from 3 to 4 cancellations. A single account moves the rate by 0.33 points.
- On the cancellation form (04-03), "price" went from 11 to 9. With numbers this small, that difference means nothing.
- The rule of thumb: before interpreting a rate, look at how many cases lie behind it. If there are fewer than a few dozen, treat differences with great caution.
A related effect: small segments appear both at the top and at the bottom of any ranking, because their noise is greater. If a report highlights "the region with the highest churn" or "the plan with the most complaints", check whether it is simply the smallest.
- Regression to the mean
When a measure that depends partly on chance takes an extreme value, the next measurement is most likely to be closer to normal, even if nothing is done. This is called regression to the mean, and it was described by Francis Galton in the 19th century.
At Nubia, the premortem in 03-05 had already anticipated the risk: if part of the 5.5% were fluctuation, November would fall somewhat whatever the team did, and any measure taken in October would seem to have worked.
THE REGRESSION-TO-THE-MEAN MIRAGE October: extreme value (5.5%) Action: a measure is taken (revert, sign up, adjust...) November: the value falls (e.g., to 5.0%) Temptation: "The measure worked." Question: how much would it have fallen without the measure? Defence: a comparison group that does not receive the measure
In Nubia's case, section 1 indicates that most of the increase is not noise, so regression to the mean would explain at most a small part of a future fall. But the reasoning is the same as the one that applies to vendors' success stories: if a customer signs up for a solution at its worst moment, it can be expected to improve somewhat afterwards, with or without it. PredictaAI's "8% to 5.6%" could contain an element of regression to the mean, and without a comparison group there is no way of knowing.
- Simpson's paradox
Simpson's paradox occurs when a trend that appears in each of the groups is reversed (or disappears) when the groups are combined. It happens when the groups have very different sizes or compositions.
In the appendix to its proposal, PredictaAI includes this slide: "Customers who use PredictaAI have a churn of 3.6%, compared with 7.4% for those who don't". Diego asks for the breakdown by segment and PredictaAI sends it:
import pandas as pd
data = pd.DataFrame({
"group": ["With PredictaAI", "With PredictaAI", "Without PredictaAI", "Without PredictaAI"],
"segment": ["Large", "SMBs", "Large", "SMBs"],
"accounts": [900, 100, 100, 900],
"cancellations": [27, 9, 2, 72],
})
data["churn_%"] = 100 * data["cancellations"] / data["accounts"]
print(data)
total = data.groupby("group")[["accounts", "cancellations"]].sum()
total["churn_%"] = 100 * total["cancellations"] / total["accounts"]
print(total)Line-by-line explanation:
import pandas as pdloads pandas, a library for working with tables (if you don't have it, you can reproduce the calculations by hand or in a spreadsheet).pd.DataFrame({...})creates a table with four columns; each list is a column and each position is a row.data["churn_%"] = ...adds a column with the churn for each row: cancellations divided by accounts, multiplied by 100.data.groupby("group")[["accounts", "cancellations"]].sum()groups the rows by "group" and adds up the accounts and cancellations for each one, combining the segments.- The last operation calculates the aggregate churn for each group.
Result:
What the numbers show: in each segment, customers with PredictaAI have higher churn than those who don't use it; yet in the aggregate they appear to have half as much. The reason is composition: 90% of the customers "with PredictaAI" are large companies (which rarely leave), and 90% of those "without PredictaAI" are SMBs (which leave a lot). The slide compares types of customer, not the effect of the tool.
Practical lessons:
- Always break the data down by the relevant segments before comparing groups. At Nubia, the aggregate (5.5%) hid the fact that the entire increase was among SMBs.
- Not even the breakdown proves that PredictaAI makes churn worse: perhaps it is the customers with the most problems who sign up for it. Breaking the data down removes one confounding variable, not all of them.
- Correlation and causation
Two variables are correlated if they tend to vary together. That does not mean one causes the other. There are three alternative explanations that are always worth checking:
| Alternative explanation | What happens | Example at Nubia |
|---|---|---|
| Confounding variable | A third factor causes both | App users are mostly SMBs, which already had higher churn; part of the app/web difference is down to "being an SMB" |
| Reverse causation | B causes A, not A causes B | A customer who has already decided to leave opens the app to download their reports before cancelling: "leaving" causes "using the app", not the other way round |
| Self-selection | The groups are formed by people's own choice and differ from the outset | People who choose to use the app (rather than the web only) may be more mobile, smaller, more impatient or more sensitive to friction |
On top of this, there is always the possibility of chance (section 1) and of a coincidence in timing with another change: on 2 October the app and the server's session policy changed at the same time (04-01).
Let's review the central evidence of the case through this lens:
"App users' churn: 4.3% -> 7.4%;
web only: 3.8% -> 4.0%"
What it DOES support: something affecting app users changed in
October (the before/after comparison within
each group reduces the self-selection problem,
because each group is compared with itself).
What it does NOT saying WHAT about the app causes it (navigation,
allow: session, card flow) or how much each factor
contributes.
Defences already group defined by SEPTEMBER usage (avoids the
used: reverse causation of people opening the app in
order to leave); breakdown by segment;
cancellation split.Explanation: the "before and after" comparison within each group is more robust than comparing the two groups in October, because stable differences between app and web users cancel out. But it is still observational: if something other than the redesign had changed in October for mobile users only, we would not see it.
- Why a randomised experiment gives a better answer
A randomised experiment assigns the intervention by lottery. That way, on average, the groups are the same in every respect (segment, activity, patience, type of phone, even in what we have not measured), and the only systematic difference is the intervention. If they differ afterwards, the most likely cause is the intervention.
flowchart TB
U["Mobile users"] --> S{"Random draw"}
S --> A["Group A: extended timeout"]
S --> B["Group B: 2-hour timeout (unchanged)"]
A --> M["Compare tickets, verifications, alerts and cancellations"]
B --> M
M --> C["Difference attributable to the timeout (plus a margin for chance)"]
How to read the diagram: the random draw is the key element. If users chose their own group, or if the team chose "the most active ones", self-selection and confounding would come back.
This is exactly the design of the timeout PDCA (03-04), which is now easy to apply because, as the platform team confirmed, the timeout is configured on the server and can be changed for a group of users. The experiment is still running and its results will not be known for a few more days. The team notes down two warnings:
- It answers a specific question: the effect of the timeout, not that of the navigation or the card flow.
- Two weeks is a short time to measure cancellations: there are few of them and they take time to happen; tickets and verifications will give signals earlier (we saw this in exercise 3 of 04-03).
- Misleading charts
A chart can be technically correct and still convey a false impression. The most common tricks:
| Trick | What it does | How to detect it |
|---|---|---|
| Truncated axis | The vertical axis does not start at zero and exaggerates the differences | Look at where the axis starts and calculate the real difference |
| Different scales | Two charts or two axes with different scales that are compared visually | Check that the scales are comparable |
| Period selection (cherry-picking) | Only the stretch that supports the message is shown | Ask for the full series and the historical record |
| Cumulative totals | A cumulative line always goes up and hides the trend | Ask for the values per period |
| No denominator | Absolute numbers that grow with size are plotted | Ask for the rate |
Nubia's dashboard shows churn with the vertical axis starting at 3.5%:
TRUNCATED AXIS (starts at 3.5%; each # = 0.1 points) May 3.9 #### Jun 4.2 ####### Jul 3.8 ### Aug 4.1 ###### Sep 4.0 ##### Oct 5.5 #################### AXIS FROM ZERO (each # = 0.25 points) May 3.9 ################ Jun 4.2 ################# Jul 3.8 ############### Aug 4.1 ################ Sep 4.0 ################ Oct 5.5 ######################
Explanation: with the truncated axis, October's bar is four times longer than September's, even though the value is only 37.5% higher; from zero, it looks like what it is: a clear rise, but of 1.5 points. Neither chart "lies": the truncated one is useful for seeing small variations, but whoever reads it must know that the height is not proportional to the value.
And the slide the CEO wants to take to the meeting shows only September and October ("4.0% → 5.5%"). This is period selection: without the 24-month history, there is no way of knowing whether 5.5% is exceptional. Ironically, in this case the history reinforces that it is; showing it makes the argument stronger, not weaker.
- What "92% precision" means
PredictaAI clarified (04-03) that the 92% is the accuracy on another customer's validation data, even though its sales material called it "precision". In everyday English, "precision" is used loosely to mean "how often it gets it right", but in machine learning it is the name of a specific metric, different from accuracy, and mixing them up is common:
| Metric | Also known as | What it answers |
|---|---|---|
| Accuracy | Overall hit rate | Out of all the predictions, how many were right? |
| Precision | Positive predictive value | Of the customers flagged "at risk", how many actually left? |
| Recall | Sensitivity, true positive rate | Of the customers who left, how many had the model flagged? |
The problem with accuracy appears with imbalanced classes: when one outcome is much more frequent than the other. At Nubia, 5.5% of accounts left in October (176 of 3,200). A "model" that always says "nobody leaves" is right 94.5% of the time. Its accuracy is higher than PredictaAI's 92%, and it is completely useless. The benchmark for comparison is the base rate.
Let's look at a hypothetical model with exactly 92% accuracy applied to Nubia:
total, churned = 3200, 176
tp = 110 # true positives: flagged as at risk and left
fp = 190 # false positives: flagged as at risk, but stayed
fn = churned - tp # left without being flagged
tn = total - tp - fp - fn # not flagged and stayed
accuracy = (tp + tn) / total
precision = tp / (tp + fp)
recall = tp / (tp + fn)
always_nobody = (total - churned) / total
print(f"Accuracy {accuracy:.1%} | Precision {precision:.1%} | "
f"Recall {recall:.1%} | 'Nobody leaves' {always_nobody:.1%}")Line-by-line explanation:
total, churned = 3200, 176sets October's accounts and cancellations.tpandfpare assumptions: the model flags 300 accounts as at risk, of which 110 actually leave.fn = churned - tp: the cancellations the model did not detect (66).tn = ...: the rest, accounts that were not flagged and stayed (2,834).- The next three formulas apply the definitions from the table.
always_nobodyis the accuracy of the "model" that never predicts a cancellation.:.1%displays the number as a percentage with one decimal place.
Result:
Reading the result:
- With 92% accuracy, this model detects 110 of the 176 cancellations (recall of 62.5%) and of every 3 customers it flags, 2 were not going to leave (precision of 36.7%). So the true precision of a model that "is 92% accurate" may be nowhere near 92%.
- If the Nubia team contacts the 300 flagged customers, it will spend two-thirds of its effort on customers who did not need it, and 66 cancellations will slip through.
- And none of this says whether the contact retains anyone: if 18-20 of the extra cancellations are due to a broken link in the app, the model might well "predict" them, but contacting those customers would be far less effective than fixing the link.
The questions Marta adds to her list for PredictaAI are now specific: what are the precision and the recall? with what base rate? on customers comparable to Nubia? and what reduction in cancellations was measured against a comparison group that received no action?
Common Mistakes and Tips
- Interpreting a difference without looking at the variability. Tip: compare with the historical record and estimate the expected noise for the size of the group.
- Confusing points and percentages. Tip: always give both figures ("+1.5 points, a 37.5% increase").
- Comparing aggregates without breaking them down. Tip: break the data down by the relevant segments before drawing conclusions (Simpson's paradox).
- Mistaking a correlation for a cause. Tip: check for confounding, reverse causation, self-selection, chance and simultaneous changes.
- Celebrating an improvement after an extreme value. Tip: think about regression to the mean and use comparison groups.
- Accepting a model metric without its base rate. Tip: compare it with the trivial model ("always the majority class") and ask for precision and recall.
Exercises
Exercise 1: Noise or signal
A team with 400 accounts has a usual churn of 5%. This month it was 6%. Using the approximation from section 1, how many noise units is the difference? What would you conclude? (Hint: the square root of 0.05 × 0.95 / 400 is approximately 0.011.)
Exercise 2: The promise, reframed
A security vendor claims: "Our phishing detector has 99% accuracy". In your company, 1 in every 500 emails is phishing. What would you ask? Build a "trivial model" and calculate its accuracy.
Exercise 3: Correlation in your work
"Teams that use our code review tool have 40% fewer incidents in production." Suggest a confounding variable, a case of self-selection and an experimental design to test the effect.
Solutions
Exercise 1
Difference: 0.01 (1 point). Noise: ~0.011. Distance: around 0.9 units. This is entirely compatible with chance: there are no grounds for looking for a cause. It would be wise to wait a few more months or compare with the historical record before acting.
Exercise 2
With 1 phishing email per 500, a detector that says "it's never phishing" gets 499 out of 500 right: 99.8% accuracy. The vendor's 99% could be worse than doing nothing. Questions: what is its recall (how many phishing emails does it detect)? what is its false positive rate (how many legitimate emails does it block)? with what base rate was it measured? using emails from companies like ours?
Exercise 3
- Confounding: more mature teams adopt more tools and also have better practices (tests, gradual deployments); maturity causes both.
- Self-selection: the tool is adopted by teams that already care about quality.
- Experiment: randomly assign the tool to half of the teams (or repositories) for a set period and compare incidents per deployment between the two groups, with the success criterion decided in advance.
Conclusion
Statistical thinking is a set of questions worth asking of any figure. We have seen that every process varies and that, before looking for causes, you need to check whether a difference exceeds the expected noise (at Nubia, the total and the SMBs do; mid-sized and Enterprise accounts do not); that rates need their denominator; that points and percentages tell different stories; that the mean and the median answer different questions; that small groups are noisy; that after an extreme value an improvement can be expected without doing anything (regression to the mean); that combining groups of different composition can reverse a trend (Simpson's paradox, as in PredictaAI's slide); that a correlation can be due to confounding, reverse causation or self-selection, and that an experiment's random draw is the best defence; that charts can exaggerate or conceal; and that "92% accuracy" can be worse than predicting nothing at all when the base rate is 5.5%. At Nubia, all of this reinforces two ideas: the increase is real and lies among SMBs that use the app, and the app/web comparison, however robust, is no substitute for the timeout experiment that is still running.
These skills are put to the test every day outside the office, in an environment that competes for our attention and rewards what is eye-catching over what is true. In the next lesson, Critical Thinking in the Digital Age, we will see how algorithms, virality and disinformation affect our judgement, and how a social media thread about Nubia puts the team to the test.
