STRASMORE/EXPLORE 3,293 QUERIES

Consecutive down days: counted versus a fair coin

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-10-01, from Is the Market a Random Walk? Real Returns.

as of table 7×6read in context →
Consecutive down days: counted versus a fair coin — 7 rows by 6 columns, computed from US exchange, SIP and OPRA data.
down_run_lengthspy_runscoin_flip_runsdown_day_share_pctsample_fromsample_to
1728707.445.3January 4, 2006September 30, 2026
2321320.345.3January 4, 2006September 30, 2026
315314545.3January 4, 2006September 30, 2026
46865.645.3January 4, 2006September 30, 2026
53029.745.3January 4, 2006September 30, 2026
61013.545.3January 4, 2006September 30, 2026
7 plus711.145.3January 4, 2006September 30, 2026
Rows × columns
7 × 6
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 Consecutive down days: counted versus a fair coin, derived from the stored result.
ColumnTypeRangeNotes
down_run_length text 7 distinct values (1, 2, 3…)
spy_runs number 7 to 728
coin_flip_runs number 11.1 to 707.4
down_day_share_pct number every row is 45.3 percent
sample_from text 1 distinct value (January 4, 2006)
sample_to text 1 distinct value (September 30, 2026)

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, argMax(toFloat64(close), _ingest_time) AS px FROM global_markets.stocks_daily_aggs WHERE ticker = 'SPY' AND date >= '2006-01-01' AND date <= '2026-09-30' GROUP BY date),
rets AS (SELECT date, px / prev_px - 1 AS ret FROM (SELECT date, px, lagInFrame(px) OVER (ORDER BY date ROWS BETWEEN 1 PRECEDING AND CURRENT ROW) AS prev_px FROM daily) WHERE prev_px > 0),
flags AS (SELECT date, if(ret < 0, 1, 0) AS down FROM rets),
islands AS (SELECT down, row_number() OVER (ORDER BY date) - sum(down) OVER (ORDER BY date ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS island FROM flags),
runs AS (SELECT island, count() AS run_length FROM islands WHERE down = 1 GROUP BY island),
sample AS (SELECT count() AS n, avg(down) AS p, concat(monthName(min(date)), ' ', toString(toDayOfMonth(min(date))), ', ', toString(toYear(min(date)))) AS sample_from, concat(monthName(max(date)), ' ', toString(toDayOfMonth(max(date))), ', ', toString(toYear(max(date)))) AS sample_to FROM flags)
SELECT
    if(bucket = 7, '7 plus', toString(bucket))                                                                           AS down_run_length,
    count()                                                                                                              AS spy_runs,
    round(if(bucket = 7, any(n) * pow(any(p), 7) * (1 - any(p)), any(n) * pow(any(p), bucket) * pow(1 - any(p), 2)), 1)   AS coin_flip_runs,
    round(100 * any(p), 1)                                                                                               AS down_day_share_pct,
    any(sample_from)                                                                                                     AS sample_from,
    any(sample_to)                                                                                                       AS sample_to
FROM (SELECT least(r.run_length, 7) AS bucket, s.n AS n, s.p AS p, s.sample_from AS sample_from, s.sample_to AS sample_to FROM runs AS r CROSS JOIN sample AS s)
GROUP BY bucket
ORDER BY bucket
⌘/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 analysisIs the Market a Random Walk? Real Returns
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 → Daily moves by sigma distance: counted versus a normal model ranking 6×4 → Deepest fall: 400 matched random walks versus SPY ranking 5×4 → One position, one year at a time: SPY annualized Sharpe by calendar year table 14×5 → Measured Sharpe dispersion across non-overlapping SPY windows, 2006 to 2025 table 5×6 → See all 3,293 queries →