Skip to main content

Market Matching: Methodology

How Market Matching works technically

Market Matching finds the best control markets for a given test market by comparing pre-period behavioral similarity on an outcome metric (sales, revenue, units, etc.).

The process has six stages:

  1. Map and transform data
  2. Validate and balance the panel
  3. Generate geo fingerprints
  4. Score and rank control candidates
  5. Evaluate balance and quality
  6. Publish results and report

Stage 1: Data mapping and transformation

Column mapping

Auto-detects:

  • date
  • location (market/geo)
  • outcome (KPI used for similarity — sales, revenue, etc.)

User overrides are supported for outcome, location, and date columns.

Panel balancing

  • Standardizes column names
  • Aggregates duplicates
  • Handles missing data
  • Drops geos with excessive missingness

Stage 2: Validation

Checks ensure the dataset is ready for matching:

  • minimum geos and time periods,
  • missingness thresholds,
  • structural completeness.

Validation issues are surfaced in the quality output.


Stage 3: Geo fingerprinting

Each market gets a behavioral fingerprint from its outcome time series:

FeatureWhat it captures
mean_outcomeAverage level
std_outcomeVolatility
trendDirection of movement (robust slope)
seasonal_strengthHow seasonal the series is
spikinessOutlier frequency
autocorrWeek-to-week persistence
residual_varianceNoise after detrending
outcome_rangeMin–max spread
outcome_cvRelative variability

These features power similarity scoring between test and control markets.


Stage 4: Control candidate scoring

Input use cases

ModeWhat you provideWhat the system does
Test + controlBoth markets specifiedEvaluates the pair and returns similarity/balance
Test onlyTest market(s) onlyAuto-selects and ranks best controls
NeitherNo markets specifiedAuto-selects test markets and controls by outcome similarity

Ranking

  • Candidate controls are scored by similarity to each test market
  • Results are filtered by minimum similarity threshold
  • Top controls are retained (subject to max control cap)
  • An autonomous quality gate can filter poor-quality pairs

Stage 5: Balance and quality evaluation

Balance (SMD)

Standardized Mean Difference (SMD) measures how comparable test and control markets are on key features. Lower absolute SMD values indicate better balance.

A pair is considered balanced when SMD stays within the configured threshold across features.

Quality score

Combines:

  • similarity strength,
  • balance quality,
  • and validation issue penalties.

Produces an overall score (0–1) and per-match diagnostics.


Stage 6: Output publication

Results include:

  • primary matching table (test → ranked controls),
  • quality assessment,
  • similarity chart data,
  • treatment-level drilldown,
  • PDF report and standardized CSV.

Data requirements

RequirementPractical guidance
HistoryEnough weeks for stable fingerprinting
GeosMultiple candidate markets for meaningful matching
OutcomeSingle KPI for similarity (sales, revenue, units, etc.)
FrequencyWeekly time series is typical

Matching method options

Three algorithms are available. See market-matching-models for details:

MethodSpeedDepth
balancedStandardFull fingerprint set, euclidean similarity
causalStandardPropensity-score-based matching
quickFastCore features only (mean, std, trend)

What can go wrong

  • No similar markets found for the test geo
  • High similarity but poor balance (SMD fails)
  • Test market dropped during data cleaning
  • Quality gate removes all candidates (fallback may salvage top pair)
  • Outcome metric changed mid-study

For interpretation guidance, see market-matching-results.