CHAPTER
06
Group
2
·
Construct the Inputs
Chapter 05 measured differences across units.
Now hold the identity of the unit conceptually fixed and look at its repeated observations through time.
A store can have a normal level of 2,500 weekly transactions and still move above and below that level from week to week.
Another store can have a normal level of 3,100 and move around its own level by a similar amount.
Within-unit standard deviation quantifies that repeated movement.
What are we calculating?
Let:
- = KPI observation for unit (i) in period (t);
- = mean of the valid historical observations for unit (i);
- = total number of valid unit-period observations represented;
- = number of represented eligible experimental units.
First center each valid observation on its own unit mean:
Then pool the squared within-unit deviations:
The pooled within-unit standard deviation used here is:
The denominator is because estimating one mean for each represented unit consumes one degree of freedom per unit.
You do not need to derive that result here.
You do need to calculate the correct (M), (N), and pooled squared deviations.
Why not just use STDEV.S?
Because STDEV.S() on the raw observations mixes between-unit and within-unit variation.
And STDEV.S() on all centered deviations would use denominator (M-1), not the pooled denominator used here (M-N).
Also do not calculate one SD per unit and average those SDs.
That creates a different quantity.
The Workbench construction is:
Weighting
This chapter uses a different weighting structure from Chapter 05.
Chapter 05 gave each unit one final value.
Here:
each valid within-unit squared deviation contributes to the pooled SSE.
Therefore a unit with more valid historical observations can contribute more residual information than a unit with fewer observations.
That is intentional in this pooled estimator.
It must not happen accidentally or remain unstated.
Practical example – Matrix
Use the four-store history:
| Store | Week 1 | Week 2 | Week 3 | Week 4 |
|---|---|---|---|---|
| 101 | 2,420 | 2,510 | 2,475 | 2,550 |
| 102 | 2,690 | 2,640 | 2,710 | 2,675 |
| 103 | 1,940 | 2,010 | 1,980 | 2,050 |
| 104 | 3,120 | 3,080 | 3,190 | 3,150 |
Assume:
- Store ID: A2:A5;
- KPI history: B2:E5;
- unit mean: F2:F5;
- centered deviations: G2:J5.
Step 1 – calculate each unit mean
In F2:
Copy down.
Expected means:
| Store | Mean |
|---|---|
| 101 | 2,488.75 |
| 102 | 2,678.75 |
| 103 | 1,995.00 |
| 104 | 3,135.00 |
Step 2 – center every valid observation
In G2:
Copy across through J2, then down through row 5.
Expected centered deviations:
| Store | W1 | W2 | W3 | W4 |
|---|---|---|---|---|
| 101 | -68.75 | 21.25 | -13.75 | 61.25 |
| 102 | 11.25 | -38.75 | 31.25 | -3.75 |
| 103 | -55.00 | 15.00 | -15.00 | 55.00 |
| 104 | -15.00 | -55.00 | 55.00 | 15.00 |
The IF preserves missing observations as missing rather than turning them into artificial deviations.
Step 3 – calculate pooled SSE
Expected result:
Step 4 – calculate M
M is the number of valid KPI observations – not the size of the rectangular block.
Expected result:
COUNT counts numeric observations, including genuine zeros, and ignores blanks and text.
Unexpected text in a KPI field should still be investigated rather than silently accepted as missing.
Step 5 – calculate N
N is the number of represented eligible units contributing at least one valid observation.
For this clean Matrix example:
Expected result:
If a row contains no valid KPI observations, its mean is not a represented unit mean and it must not be counted in (N).
Step 6 – calculate pooled within-unit SD
If:
- Place SSE in L2;
- place M in L3;
- place N in L4;
use:
Expected result:
weekly transactions.
Unequal-history stress test
Now suppose Store 103 is missing Week 4.
Do not insert zero.
The calculation changes as follows:
- Store 103’s mean is calculated from its three valid weeks;
- no centered deviation exists for its missing Week 4;
- falls from 16 to 15;
- remains 4 because Store 103 is still represented;
- the denominator becomes (15-4=11).
This is exactly why the denominator must be derived from the valid observations actually used, not hard-coded from the apparent table dimensions.
A unit with fewer valid observations contributes fewer squared deviations.
That is the pooled weighting used here.
Unit with only one valid observation
Suppose a represented unit has only one valid historical observation.
Its unit mean equals that observation, so its one centered deviation is zero.
It contributes one observation to (M) and one represented unit to (N), adding zero residual degrees of freedom.
That is mechanically coherent.
But whether one observation is sufficient historical evidence for the intended design remains a Chapter 01 evidence-quality question.
Do not invent a universal minimum here.
Check your work
Constant-within-unit test
If every unit is constant through time, every centered deviation is zero.
Therefore: and provided (M-N>0).
If your spreadsheet does not return zero, the construction is wrong.
Unit-shift test
Add 1,000 to every observation for Store 101.
Its mean also increases by 1,000.
Its centered deviations do not change.
Therefore the pooled within-unit SD should not change.
That is a powerful check that you are measuring movement around each unit’s own level rather than differences in level across units.
Denominator test
You must have .
If (M=N), every represented unit has only one valid observation and there is no residual within-unit information from which to estimate this SD.
Missingness test
Replacing a missing observation with zero should generally change the result.
That change is evidence that zero and missing are not interchangeable – not a reason to fill the blank.
Matrix/Panel equivalence
Equivalent evidence must yield the same (M), (N), SSE, and .
What does the result mean?
A within-unit SD of weekly transactions describes the pooled scale of week-to-week movement around each store’s own historical level.
A note about what this quantity represents
This calculation tells us how much observations typically move around each unit’s own historical level.
That makes it useful evidence about within-unit variation.
It is not, however, automatically the exact variability parameter required by every repeated-measures statistical model. Serial persistence and the way the historical unit mean was estimated can affect that relationship.
We’ll preserve that distinction when we reach repeated-measures planning in Chapter 10.
It does not tell you:
- how different store levels are from one another;
- whether a high week tends to be followed by another high week;
- how much independent information six weeks contain;
- or what sample size the experiment needs.
We now know the amount of within-unit movement.
We still do not know whether that movement persists through time.
Next: LiftWorkbench 07 – Calculate Persistence Through Time →
