PIECE
08
Act
II
·
Design the test
Two restaurant locations can have very different normal sales levels. That’s the between-unit question we just examined. Now focus on one restaurant. Its weekly sales might look like:
Those values move above and below the restaurant’s own normal level. That’s within-unit variability.
But there’s another question. When the restaurant has an unusually high or low week, does that movement disappear quickly? Or does it tend to carry forward? That’s serial persistence.
These concepts both describe behavior within the same unit over time. They do not describe the same thing.
First question: How much does the unit move?
Suppose a restaurant normally averages $30,000 in weekly sales. Over six weeks it reports:
Those movements occur within the same restaurant. They’re not differences between restaurants.
Within-unit variability How much a unit moves around its own normal level over time.
Suppose we’re trying to detect a persistent 3% increase in weekly sales. If a restaurant’s weekly sales are normally very stable, that change may stand out relatively clearly. If weekly sales naturally move substantially around the restaurant’s normal level, the same change may be harder to distinguish from ordinary movement.
So within-unit variability helps describe the environment in which a treatment effect has to be observed.
Between-unit and within-unit variability are different
Imagine Restaurant A with normal weekly sales of $25,000 and Restaurant B with $45,000. That difference contributes to between-unit variability.
Now suppose Restaurant A moves from $24,000 to $26,000 from one week to another. That’s within-unit variability.
A repeated-measures experiment can care about both.
Second question: Does the movement persist?
Now imagine a restaurant has an unusually strong week. What happens next?
Those patterns can have similar amounts of movement and very different temporal structure. That’s why variability and persistence must remain separate concepts.
A KPI can move substantially from week to week without strong serial persistence. Another KPI can move relatively modestly but exhibit strong persistence when it does move. Knowing one does not automatically tell us the other.
Why persistence matters
Suppose you observe the same restaurant for six weeks. If each week’s deviation from normal is largely unrelated to the previous week’s deviation, those repeated observations have one information structure. If unusually high or low values tend to persist, adjacent observations contain more overlapping information.
That doesn’t mean repeated observations are useless. It means six observations of the same unit aren’t automatically equivalent to six independent observations. We’ll need that idea later when we ask both how many locations do I need? and how long should the test run?
More rows aren’t automatically more independent information
The same restaurant observed for eight weeks is still one experimental unit observed repeatedly. The new question here is:
How much new information does each additional week contribute?
Suppose Restaurant A has an unusually strong week. If the next week’s deviation is largely unrelated to it, the second observation contributes one kind of information. But if unusually strong weeks tend to be followed by unusually strong weeks -- and unusually weak weeks tend to persist too -- adjacent observations share more information.
The 320 restaurant-week observations are useful. But how much information those repeated observations contribute depends partly on how strongly outcomes within the same restaurant are related through time.
That’s why repeated-measures design cannot treat every additional period as though it contributed an entirely new, unrelated piece of evidence.
Normal operating behavior matters
Suppose weekly sales spike because of:
Those observations are real. But if we’re trying to characterize normal within-unit behavior for test planning, they may not represent the process we want our summary to describe.
Context matters here just as it did for between-unit variability.
To describe within-unit movement directly, we first need to separate each unit’s normal level from its period-to-period deviations. For unit in period :
where is the unit’s historical mean. Then is the amount that unit is above or below its own normal level in period . A practical pooled within-unit standard deviation can be represented as:
For a balanced panel with units and periods:
This is closely related to the residual standard error from a model containing unit fixed effects only.
The important idea is not the formula itself. It’s what has been removed before the variability is measured: persistent differences in normal level across units. If we simply calculate a standard deviation across every raw store-week value, between-unit and within-unit variation become mixed together. That’s a different statistic.
Persistence requires another statistic. Within-unit standard deviation tells us how much the unit moves. Serial correlation helps describe how those movements relate through time. For lag-one serial correlation, conceptually:
A positive value indicates that unusually high periods tend, to some degree, to be followed by unusually high periods -- and unusually low periods by unusually low periods. A value closer to zero indicates less linear persistence from one period to the next.
But this calculation requires care. Observations need to be paired within the same unit and across the appropriate consecutive periods. A spreadsheet can produce a mathematically valid correlation from incorrectly paired observations. That number would simply answer the wrong question.
Again: the function is not the lesson.
Direct measurement and rough description aren’t the same thing
We shouldn’t make the second look more precise merely because a statistical design would prefer a number. If we don’t know something precisely, preserving that uncertainty is better than manufacturing precision.
More history isn’t automatically more independent information
Suppose you have 52 weeks of history instead of 8. That’s more historical information. But if outcomes are strongly persistent, those 52 observations aren’t equivalent to 52 unrelated pieces of evidence.
Time adds information. The relationship among observations affects how much.
More observations do not automatically mean proportionally more independent information.
Those aren’t three names for the same thing.
Together, they help describe the variation and dependence structure of a repeated-measures experiment.
Variability asks how much the outcome moves. Persistence asks how related those movements are through time.
Ready to measure how your units behave over time?
What comes next?
We now understand something about the statistical environment in which the treatment effect will have to be detected: how different units are from one another, how much individual units move over time, and how related those movements are across periods.
Now we can ask a practical design question:
Given the effect, evidence standard and outcome behavior we’re designing around, how many experimental units might we need?
