pen, books, paper, document, office, education, reading, data, learning, expertise, text, stationary, page, typescript, finances, advice, pencil, financial, diagram, information, literature, market, notebook, student, advice, advice, advice, advice, advice. Where analytics foundations work goes wrong: the starting point
Photo by ds_30 on Pixabay

Guides

Where analytics foundations work goes wrong: the starting point

Analytics foundations without the stack talk: the chain behind every number, how to make a question answerable, and where denominators quietly go wrong.

A number in a report is the last link in a chain: something happened, something recorded it, something moved and reshaped the record, someone wrote a counting rule, and someone put it on a page. Any link can be wrong while the others look fine.

So arguments about numbers rarely end by looking harder at the number itself.

This page is about the chain, and about the two questions that decide whether a number deserves to be acted on: what is it actually counting, and what could have made it wrong.

What to take away

  • Every number is the output of a chain. When one disagrees with another, the useful move is to find the link where they diverge, not to recompute.
  • Most business questions cannot be answered by data as asked. Turning a question into an answerable one is the actual skill.
  • Instrumentation decides accuracy. Nothing downstream can recover a fact that was never recorded.

Making a question answerable

"Is the product doing well" cannot be answered. Not because the data is inadequate, but because the question does not specify anything that could be counted.

A question becomes answerable when four things are pinned down.

The subject. What thing are we counting? Users, accounts, sessions, orders, workspaces, devices. These produce different numbers from the same data, and all four routinely get called users in the same meeting.

The population. Which of those subjects are in scope, and which are deliberately out. New ones only, paying ones only, one region, excluding internal accounts and test records.

The period. Over what stretch of time, using which calendar, and in whose time zone. A rolling window and a calendar month are different measurements and will never agree.

The comparison. A number alone means nothing. Compared to last period, to a different group, to what we expected, or to what happens when we do nothing.

Write those four down before touching any data. Most of the time this alone resolves the disagreement that prompted the question, because two people wanted two different numbers and neither had said so.

The map above is the standard example of a question made answerable by choosing the right subject and population. Counting deaths by district settled nothing; counting them by the water pump nearest each address settled it immediately.

The chain, and how each link breaks

LinkWhat happens hereThe failure it produces
The eventSomething occurs in the real worldIt happens in a way nobody anticipated recording
CollectionCode emits a record of itMissing on some platforms, blocked for some users, dropped under load
ArrivalThe record lands in storageLate, duplicated, or partially loaded
TransformationRecords are joined and reshapedA join fans out and quietly multiplies every total
DefinitionA rule decides what countsTwo implementations of one name, drifting apart
PresentationThe number reaches a personCorrect number, wrong impression, from the framing
DecisionSomeone actsThe number answered a different question than the one being decided

When two numbers disagree, walk this list from the bottom. Most disagreements resolve at definition, and almost all of the rest resolve at collection.

The chain behind every number

  1. The event: happens unrecorded
  2. Collection: missing, blocked, dropped
  3. Arrival: late, duplicated, partial
  4. Transformation: join fans out totals
  5. Definition: two implementations drift
  6. Presentation: correct number, wrong impression
  7. Decision: answers a different question

Measurement, estimate, and proxy

These three get reported in the same typeface and they are not the same kind of thing.

Measurement, estimate, proxy

Measurement

What it is
Direct record
Error range
None
Example
Order placed
Risk
None

Estimate

What it is
Scaled sample
Error range
Always
Example
Population scaled
Risk
Unprinted error

Proxy

What it is
Stands in for
Error range
Tracks loosely
Example
Time on page
Risk
Optimized directly

A measurement is a direct record of the event you care about. An order was placed; you have the order.

An estimate is a calculation about a population you did not fully observe, usually built from a sample and scaled up. It has an error range whether or not anyone prints one.

A proxy is a measurement of something else that you believe moves with the thing you care about. Time on page as a proxy for interest. Support tickets as a proxy for confusion.

Proxies are legitimate and often unavoidable. The discipline is naming them as proxies every time, in writing, next to the number. A proxy used long enough stops being described as one. Then someone optimizes it directly.

At that point it stops tracking the thing it stood in for. That is the mechanism behind Goodhart's law, and it applies to any measure that becomes a target. That failure is very hard to see from inside the report.

Instrumentation decides everything downstream

No amount of modeling recovers an event that was never emitted. This makes instrumentation the part of the practice that decides the most and receives the least attention.

A few habits that prevent most of the pain:

  • Decide what a new feature has to record before it ships, not after someone asks how it is doing.
  • Name events for what happened, not for where the button was. Interfaces get redesigned; the underlying action usually does not.
  • Record the identifiers that let an event be joined to a subject later. An event you cannot attribute is close to useless.
  • Treat schema changes to source systems as a change to your reporting, because that is what they are.
  • Know your blind spots explicitlyplatforms where collection is unreliable, users who block it, states that produce no event at all.

That last one deserves writing down permanently. Every collection method has gaps, and a gap you have documented is a limitation, while a gap you have not is a wrong number.

Denominators are where accuracy goes to die

Most disputed metrics are fractions, and the numerator is rarely the problem. A rate is only as meaningful as the population it is divided by, and that population is the part nobody writes down.

Ask three questions of any rate. What is in the denominator exactly? Is every subject in it actually eligible for the thing in the numerator? And do the numerator and denominator cover the same period, or has one been measured over a window the other has not?

The classic error is a rate whose denominator includes subjects that could never have produced the numerator event. It makes the rate look low and it moves whenever the ineligible population grows, which produces a metric that responds to something nobody intended to measure.

Report the numerator and denominator alongside the rate. It costs one line and prevents an entire category of argument.

What a number will not tell you

Analytics tells you what happened, to whom, and how it changed. It does not tell you why, and it does not tell you what would have happened otherwise.

Both of those are answered by different work. Why is answered by talking to people, reading their support tickets, and watching them use the thing. What would have happened otherwise is answered by holding out a comparable group, which requires planning before the change rather than analysis after it.

Presenting a correlation as a cause is the most common way a technically correct report produces a bad decision. The defense is a sentence in the report saying what else could explain this, written by the person who built it, before anyone asks.

A realistic starting sequence

For a team with little in place, in this order:

  1. List the questions leadership actually asks. Keep it to a handful.
  2. For each, write the subject, population, period, and comparison. Expect several to collapse into each other.
  3. Trace one number end to end, from the event that generates it to the report that shows it. Write down the gaps you find.
  4. Fix the collection gaps first, since everything downstream is bounded by them.
  5. Implement each definition once, in one place, and point every consumer at that.
  6. Publish the limitations next to the numbers rather than in a separate document.
  7. Only then worry about how it is presented.

Teams reliably do this backwards, starting at step seven, and end up with a good-looking page built on a number nobody can trace.

Common questions

Two teams have different numbers for the same metric. Where do we start?

Compare definitions before data. Subject, population, period, time zone, exclusions. If those match, compare the source tables. Recomputing without doing this first tends to produce a third number.

How accurate does a number need to be?

Accurate enough that a plausible error would not change the decision. That standard is answerable, unlike "as accurate as possible," and it usually reveals that a lot of precision was being bought for nothing.

Should we track everything now in case we need it later?

Record events for actions that are meaningful in your product, and be deliberate about it. Recording indiscriminately produces volume nobody has documented, which is not the same as having the data, and it carries real obligations for anything about identifiable people.

Is a small sample worth anything?

Yes, for direction, and it should be labeled as such. The mistake is not using small numbers; it is reporting them with the same confidence as large ones, and then explaining a movement that was noise.

In this guide

  1. How to dodge the analytics foundations mistakes that stall new teamsAnalytics foundations mistakes made while a data function is being set up, from instrumenting everything first to treating the first dashboard as the end.
  2. 7 things to weigh up on analytics foundations frameworkAnalytics foundations framework in six layers: design downward from the decision, build upward from the data, and gate each layer before moving on.
  3. Analytics foundations metrics: definitions, targets and trapsAnalytics foundations metrics chosen by shape: rates, averages, percentiles and cohorts, the traps that survive correct arithmetic, and how to define one.
  4. Analytics foundations questions to ask requesters, source owners and yourselfAnalytics foundations questions to ask the requester, the source system owner, whoever built the existing number, and yourself before you publish.
  5. How to Test Causation in an Analytics Foundations Case StudyUse an analytics foundations case study to test cause, confounders, and comparisons before citing a platform outcome in an internal budget argument.

More in Guides

Latest from Analysis Desk