Pair detail

HD / MAS

Market: SPY | As of Mar 20, 2026 | Source: live

Pair overview

Bias uses the latest z-score sign (positive → short A / long B).

BiasSymbolCompanySector / IndustryMarket cap USDLast CloseDiv Yield
LongHDThe Home Depot, Inc.Consumer Cyclical · Home Improvement321.3B$323.112.86%
ShortMASMasco CorporationIndustrials · Construction12.0B$58.812.13%

Key metrics

Decision signals

Entry, sizing, and stability anchors for the trade.

Z-score?Z = (S - μ) / σ. Higher absolute values mean larger deviation; |z| >= 2 is often a potential entry.

-2.23

Hedge ratio (γ)?Units of B needed to hedge 1 unit of A. More stable ratios are easier to trade.

0.456

Correlation?Higher correlation is better for pair stability. Values close to 1 imply strong co-movement.

0.72

Half-life (days)?Estimated mean-reversion speed. Lower days mean faster reversion.

16.8

ADF p-value?Stationarity test on the spread. Lower is better; below 0.05 is preferred.

0.029

Quality25/100
FGrade
Signal?Signal is derived from z-score vs entry/exit thresholds. Long spread means long A and short B; short spread is the opposite.

Long spread

z = -2.23?Current standardized spread. Positive means A rich vs B; negative means A cheap vs B.
Entry threshold?Entry zone for trades. Higher absolute z means more extreme deviation.|z| ≥ 2.0
Exit threshold?Exit zone. When |z| returns near zero, the spread has mean-reverted.|z| ≤ 0.5
Distance to entry?How far the current |z| is from the entry threshold.0.00
Trade bias?Explicit long/short legs for the spread. Positive z implies A rich vs B; negative z implies A cheap vs B.Long HD, short MAS. Size: 1x HD vs 0.46x MAS.

Backtest

Historical performance

Rule-based outcomes over the lookback window.

Backtest reality check

Historical trade outcomes using the entry/exit rules.

Trades (lookback)3
Trades / year3.0
Win rate67%
Median hold13.0d
Avg return (gross)3.18%
Avg return (net)3.18%
Max drawdown0.90%
Profit factor12.10
Sharpe1.57
Best / worst5.48% / -0.86%

Backtest trades

Showing 3 of 3
EntryExitSideHoldNet
2026-03-192026-03-20Long HD / Short MAS1d-0.86%
2025-09-112025-10-08Short HD / Long MAS27d+5.48%
2025-03-212025-04-03Long HD / Short MAS13d+4.92%

Charts

Behavior over time

Price, spread, and hedged path context.

Z-score

Z-score trajectory with entry/exit bands.

Chart window: 90d
Entry ±2.0Exit ±0.5

Leg prices (normalized)

Relative move of each leg across the window.

Chart window: 90d

Normalized to 100 at window start.

Hedged position

Hedged spread with entry-zone shading.

Chart window: 90d

Spread = A - (alpha + gamma · B)

Model diagnostics

Spread mechanics

Helpful for validation and monitoring.

Raw spread?Raw spread = A - γ·B in price space. Positive means A is rich vs B.

296.3157

Price-space spread

Residual spread?Residual spread = residual(A) - (alpha + gamma · residual(B)). Market-neutralized via index regression.

-0.076621

Market-neutral residual spread

Pair intercept?OLS intercept for the pair regression. Closer to 0 is cleaner.

0.0625

OLS intercept on residualized returns

Rolling corr std (21d)?Rolling correlation variability. Lower values indicate more stable pairs.

0.158

Stability (21d rolling)

Mean corr?Average rolling correlation. Higher is better for stable pairs.0.704
Std dev?Standard deviation of rolling correlation. Lower means more stable.0.158
Min / Max?Range of rolling correlation. Higher minimum indicates stronger stability.0.129 / 0.919
Below 0.70?Count of 21d windows where correlation dropped below the minimum threshold. Lower is better.102

Window 252d

Z-score distribution

Percentile?Position of current z-score within the window. Near 0 or 100 indicates extremes.0%
Min / Max?Historical extremes of z-score in the chart window.-2.23 / +2.27
Mean reversions?Count of times z crossed from entry zone back to exit zone. More events imply more opportunities.2

Entry |z| ≥ 2.0 · Exit |z| ≤ 0.5

Risk & invalidation

MAE (median)0.20z
MAE (max)0.25z
Stop suggestionz > 3.5
Regime min corr0.129
Rolling corr min 0.129 → regime risk high

Z-score context

Spread mean (mu)0.000000
Spread std (sigma)0.034300
Robust Z (MAD)Off
Z = (S - mu) / sigma | Window 252d

Quality score

Composite of cointegration, stability, and mean reversion signals.

F25/100
Cointegration (ADF)Pass
Stability (corr std)Volatile
Mean reversionFast
LiquidityUnknown
Regime riskHigh

Model transparency

Regression uses OLS on market-neutral residual returns. ADF test is applied to the residual spread series.

Window 252d · Lookback 10y
Z-score window: 252d trading days
Correlation window: 252d trading days
Spread formula: S = A - (alpha + gamma * B) | Raw spread: A - gamma * B
Entry |z| ≥ 2.0 · Exit |z| ≤ 0.5
Min correlation filter: 0.70
HD-MAS overview | PairScreener