CHAPTER
02
Group
1
·
Prepare the Evidence
You have chosen the historical evidence you intend to use.
Before you calculate anything from it, you need to know what the rows, columns, and cells actually represent.
If you work mostly in spreadsheets, your data may look like this:
| Store | Week 1 | Week 2 | Week 3 |
|---|---|---|---|
| 101 | 2,420 | 2,510 | 2,475 |
| 102 | 2,690 | 2,640 | 2,710 |
| 103 | 1,940 | 2,010 | 1,980 |
Or the same evidence may look like this:
| Store | Week | Transactions |
|---|---|---|
| 101 | Week 1 | 2,420 |
| 101 | Week 2 | 2,510 |
| 101 | Week 3 | 2,475 |
| 102 | Week 1 | 2,690 |
| … | … | … |
These are different structures.
But they can contain exactly the same evidence.
Throughout LiftWorkbench, we will call them:
Matrix
and:
Panel
The important principle is:
Matrix structure
In a Matrix:
One experimental unit per row, with repeated periods across columns.
For example:
| Store | Week 1 | Week 2 | Week 3 |
|---|---|---|---|
| 101 | 2,420 | 2,510 | 2,475 |
| 102 | 2,690 | 2,640 | 2,710 |
| 103 | 1,940 | 2,010 | 1,980 |
Here:
- experimental unit: Store;
- repeated period: Week;
- KPI: Transactions.
Store 101’s history runs horizontally across the row.
You may also hear this called wide or flat data.
In LiftWorkbench, we will primarily call it Matrix.
Same evidence. Different structure.
The two tables contain the same nine transaction values.
The observations have not changed.
Only their arrangement has.
Same units.
Same periods.
Same KPI values.
Different structure.
Matrix and Panel are shapes of the same evidence.
Neither is statistically more sophisticated.
Start with the analytical hierarchy
A spreadsheet row is not automatically the statistical object you need.
Depending on the source data, you may move through something like:
Raw Row → Transaction / Source Record → Unit-Period Observation → Experimental Unit → Unit-Level Summary
Those objects are not interchangeable.
Suppose treatment will be assigned to restaurants.
Then restaurant is the experimental unit.
But your source file might contain one row per transaction.
A restaurant with 2,000 transactions could therefore occupy 2,000 rows.
Those 2,000 rows do not create 2,000 experimental units.
You may first need to aggregate the source records into one restaurant-week KPI observation.
Later, a calculation may require one historical summary per restaurant.
The spreadsheet can contain all three levels.
The calculation determines which one you need.
The experimental unit still matters
If treatment will be assigned by location, the location is the experimental unit.
If treatment will be assigned by market, the market may be the experimental unit.
A Matrix might therefore contain one market per row.
A Panel might contain one market-week per row.
Matrix versus Panel does not determine the experimental unit.
Treatment assignment does.
Data structure determines how observations of those units are arranged.
Establish unit-period uniqueness
Many downstream calculations begin with one valid KPI observation for each experimental unit during each period.
When that is the intended analytical object:
That does not mean your source data must always have one row per unit-period.
It means the analytical dataset used by the calculation must represent the unit-period correctly.
Check for duplicate unit-periods in Panel data
Suppose your Panel contains:
| Store | Week | Transactions |
|---|---|---|
| 101 | Week 1 | 1,200 |
| 101 | Week 1 | 1,220 |
| 101 | Week 2 | 2,510 |
Do not simply delete one Week 1 row because it is a “duplicate.”
Those rows might be:
- two legitimate source records that should be summed;
- duplicate copies of the same record;
- two channels that should or should not be combined;
- two partial-period records;
- or evidence that the KPI has not yet been aggregated to the intended unit-period level.
The correct action depends on what the KPI means.
For weekly transactions per store, if the two Week 1 rows are legitimate non-overlapping transaction counts, the defined unit-period observation might be:
If one row is an accidental duplicate copy, summing would be wrong.
Detect duplicates first. Resolve them according to the KPI. Do not make indiscriminate deletion the rule.
Excel: detect duplicate unit-period keys
If Store is in column A and Week is in column B, enter in D2:
Copy down.
Interpretation:
- 1 – one source row for that Store × Week key;
- >1 – multiple source rows require investigation;
- 0 should not occur for the row you are evaluating.
This formula detects repeated keys.
It does not decide whether those records should be summed, averaged, deduplicated, or otherwise reconciled.
Google Sheets
The same COUNTIFS formula works in Google Sheets.
The statistical question is identical.
Missing is not zero
This is a reusable Workbench rule:
A blank cell, absent Panel row, unavailable observation, temporary closure, reporting failure, and genuine zero outcome are not automatically equivalent.
Consider this Matrix:
| Store | Week 1 | Week 2 | Week 3 |
|---|---|---|---|
| 101 | 2,420 | 2,475 |
The blank Week 2 cell does not automatically mean .
In Panel form, the Week 2 row might simply be absent.
Same problem.
Different appearance.
A genuine zero is data.
Missing is the absence of data.
Before filling, deleting, or otherwise handling a missing observation, understand why it is missing.
There is no universal Workbench instruction to impute a value.
The default is:
Identify the missingness rather than silently convert it to zero.
Establish temporal integrity
Repeated observations also need a trustworthy time dimension.
Before using them downstream, verify:
- the period identifier is explicit;
- periods can be ordered chronologically;
- the measurement frequency is consistent;
- missing periods are visible;
- gaps are not silently compressed.
For example:
| Store | Week |
|---|---|
| 101 | Week 1 |
| 101 | Week 2 |
| 101 | Week 4 |
Store 101 does not have three consecutive weekly observations.
It has Week 1, Week 2, and Week 4.
Week 3 is missing.
That distinction will become especially important when we later calculate persistence through time.
For now, the rule is simply:
Preserve the actual period structure.
Balanced and unbalanced evidence
Suppose every store has exactly 20 valid weeks.
That is balanced history.
Now suppose:
- Store 101 has 20 weeks;
- Store 102 has 18;
- Store 103 has 12.
The history is unbalanced.
This can happen in either Matrix or Panel form.
In a Matrix, you may see blanks.
In a Panel, you may see fewer rows for some units.
This matters because some calculations can be affected by unequal amounts of history.
An average across every unit-period observation gives more influence to units with more observations.
An average of one unit-level mean per store gives each store equal influence.
Those can produce different answers.
Chapter 03 will make that weighting choice explicit.
You do not need to restructure your data just to work with us
If your data are already Matrix and the statistic can be calculated correctly from that structure, we will show the Matrix path.
If your data are Panel, we will show the Panel path.
You should not have to transform an entire dataset simply because a tutorial was written for the other structure.
Where both structures can reasonably support the calculation, LiftWorkbench will support both.
Where the structure does not change the work, we will not make you choose unnecessarily.
A reusable Workbench validation sequence
Before a downstream calculation, work through these questions:
- 1What is my experimental unit?
- 2What is the period?
- 3What is the KPI?
- 4What should one analytical observation represent for this calculation?
- 5Does the calculation require one valid unit-period observation?
- 6Do I have repeated unit-period keys?
- 7If I do, what appropriate aggregation or correction is appropriate to the KPI?
- 8Where are observations missing, and why?
- 9Does the Matrix or Panel representation preserve the evidence I intend to analyze?
This sequence is more important than whether the file happens to look wide or long.
Matrix ↔ Panel equivalence is a useful check
If you have the same dataset in both structures, correctly implemented calculations should produce the same statistic when they use the same:
- experimental units;
- periods;
- KPI values;
- eligibility;
- missing-value treatment;
- aggregation;
- weighting.
If they do not, investigate those choices.
Do not conclude that Matrix and Panel are mathematically different kinds of evidence.
Panel row counts must not silently become statistical weights merely because one unit has more rows.
Practical example: appearance is not validation
Suppose a Panel contains:
| Store | Week | Transactions |
|---|---|---|
| 101 | Week 1 | 1,200 |
| 101 | Week 1 | 1,220 |
| 101 | Week 2 | 2,510 |
| 101 | Week 4 | 2,550 |
| 102 | Week 1 | 2,690 |
| 102 | Week 2 | 2,640 |
| 102 | Week 3 | 2,710 |
| 102 | Week 4 | 2,675 |
At first glance, it is a perfectly ordinary three-column Panel.
But it contains two structural questions:
- 1Store 101 has two Week 1 rows.
- 2Store 101 has no Week 3 row.
The file shape did not tell you whether the evidence was valid.
You had to ask what one analytical observation should represent.
If the Week 1 rows are legitimate non-overlapping transaction counts, aggregate them to .
Then Store 101’s analytical history is:
| Store | Week | Transactions |
|---|---|---|
| 101 | Week 1 | 2,420 |
| 101 | Week 2 | 2,510 |
| 101 | Week 3 | missing |
| 101 | Week 4 | 2,550 |
Do not insert zero for Week 3 merely to make the table look complete.
What this establishes – and what it doesn’t
This chapter establishes:
- what Matrix and Panel mean in LiftWorkbench;
- what your experimental unit is relative to treatment assignment;
- what a unit-period observation means;
- how to detect repeated unit-period keys;
- why duplicate resolution depends on the KPI;
- why Missing ≠ 0;
- why actual period structure must be preserved.
It does not establish:
- which historical periods you should use – Chapter 01 owns that;
- which weighting convention a particular statistic should use;
- which statistic you need;
- whether your sample is sufficient;
- or whether the eventual experiment will produce credible causal evidence.
Before you move on
An intermediate spreadsheet user should now be able to look at a dataset and answer:
What does one analytical observation represent, and is my evidence actually structured that way?
We have established valid analytical structure.
Now:
What representative KPI level should the design carry forward?
