STRASMORE/EXPLORE 3,127 QUERIES

Hedge ratio refitted each calendar year, two sector pairs

Answered against 22 years of US equities and 12 years of US options data and published with the query that produced it. This result is stored as of 2026-08-13, from Pairs Trading and Cointegration Explained.

as of ranking 7×3read in context →
Hedge ratio refitted each calendar year, two sector pairs — 7 rows by 3 columns, computed from US exchange, SIP and OPRA data.
yearpep_on_ko_betalowes_on_hd_beta
20192.3380.278
20201.1690.87
20213.3450.628
20221.0150.588
20232.9860.521
20240.5460.635
2025-0.5430.539
Rows × columns
7 × 3
Computed
Completeness
No missing values
Source
US exchange, SIP and OPRA market data
Licence
Strasmore terms · free, no signup
Formats
JSON · CSV · the SQL below

What each column holds

Column definitions for Hedge ratio refitted each calendar year, two sector pairs, derived from the stored result.
ColumnTypeRangeNotes
year number 2,019 to 2,025
pep_on_ko_beta number -0.543 to 3.345
lowes_on_hd_beta number 0.278 to 0.87

Computed from Strasmore's warehouse of US exchange, SIP and OPRA market data. Equity prices are delayed; options greeks and implied volatility are end-of-day. This result is stored, not recomputed on load — it is exactly the numbers that were returned on , and the query below is what returned them.

Run it yourself

This is the exact query behind the result above. Change a ticker, a date or a column and run it against the warehouse — no account, no key. The no-signup tier is smaller than the one this page was computed on; a query that reaches past it comes back saying which plan runs it.

WITH daily AS (
    SELECT
        date,
        anyIf(toFloat64(close), ticker = 'PEP') AS pep,
        anyIf(toFloat64(close), ticker = 'KO')  AS ko,
        anyIf(toFloat64(close), ticker = 'LOW') AS lowes,
        anyIf(toFloat64(close), ticker = 'HD')  AS hd
    FROM global_markets.stocks_daily_aggs
    WHERE ticker IN ('KO', 'PEP', 'HD', 'LOW')
      AND date BETWEEN '2019-01-01' AND '2025-12-31'
    GROUP BY date
    HAVING ko > 0 AND pep > 0 AND hd > 0 AND lowes > 0
)
SELECT
    toYear(date)                                  AS year,
    round(covarSamp(pep, ko) / varSamp(ko), 3)    AS pep_on_ko_beta,
    round(covarSamp(lowes, hd) / varSamp(hd), 3)  AS lowes_on_hd_beta
FROM daily
GROUP BY year
ORDER BY year
⌘/Ctrl + Enter

Work with this data in your AI assistant

Opens ready to query, with this page's data. Free, no account.

More from this analysisPairs Trading and Cointegration Explained
Where the KO/PEP spread sat twenty sessions later, by starting z score (2019-2025) ranking 6×4 → Daily-return correlation vs price-level correlation, five familiar pairs (2024-2025) ranking 5×3 → Weekly z score of the KO/PEP spread, hedge ratio fitted on 2023 only series 105×2 → Excess kurtosis by year, against the full window level ranking 21×4 → Autocorrelation of returns and absolute returns, lags 1 to 10 ranking 10×3 → Variance ratio by block length: does SPY variance scale like independent draws? ranking 7×3 → See all 3,127 queries →