# Test protocol: SSGEOS's archived earthquake forecasts against the USGS catalogue

Written on 2026-11-12, before any USGS ComCat data from June 2022 onward was fetched. Its SHA-256 and those of the
files it names are recorded in `FREEZE.md` and in the commit that adds them. Nothing in analyses 1 and 2 may
change after that commit except to fix a bug, and any such fix is listed, with its diff and its effect, in
the page's VERIFICATION.md. Analysis 3 is frozen separately (stage 2, below), before it is run on any earthquake
after February 2023.

What we already knew: from general knowledge (our training data) we knew of some large earthquakes in
2022–2025, among them the Türkiye–Syria earthquakes of 6 February 2023 and an M 8.8 off Kamchatka in July
2025. We cannot be blind to that. The rules below follow SSGEOS's own wording and fixed time spans, so that
they leave us no choice to tune to the outcomes.

## The forecasts

- Source: every copy of https://www.ssgeos.org/ that the Wayback Machine holds with status 200, collapsed by
  content (120 copies, 7 June 2022 to 29 September 2026), fetched in the raw `id_` form and saved with SHA-256
  in `downloads/wayback-home/` (`FETCHLOG.tsv`). The archive served one copy (asked for 25 June 2022) from
  1 July 2022; the copy's own served time is used.
- `code/extract_forecasts.py` reads each copy's "MAGNITUDE PROBABILITY" table, its "updated" stamp, the
  forecast text and its stamp, the named forecast window and the SSGI graph's date span, into
  `work/forecasts.json`. Copies with the same table stamp are one forecast (the earliest copy is kept):
  100 distinct tables, stamped 6 June 2022 to 26 September 2026. Copies without a table (7) are not
  used. Stamps without a year get the year closest before the copy; one stamp whose year was a slip
  ("13 January 2025" on a copy of 15 January 2026) gets 2026.
- Reading of a table: each row ("6.0-6.4: 60%") is read as SSGEOS's probability that at least one
  earthquake with a magnitude in that range happens anywhere in the world during the forecast window.
  "7.0+", "8.5+" and "≥ 8.5" are open-ended.

## The catalogue

- USGS ComCat, FDSN event service, `eventtype=earthquake`, `minmagnitude=5.45`, one CSV per calendar year,
  1976 to 2026 (the last file ends 1 November 2026), fetched with `code/fetch_comcat.py` after this protocol is
  committed. Each event once (by id). Its magnitude is ComCat's preferred `mag`, rounded half up to one decimal,
  so that it can be placed in SSGEOS's bins (6.45 counts as 6.5).
- Base-rate (reference) period: 1 January 1976 to 31 May 2022, before SSGEOS existed. Test period: 1 June 2022
  to 31 October 2026.

## Analysis 1: the probability tables (primary)

- Window: from the table's "updated" stamp (or the archive time of its copy, if that is earlier) to 7 days
  later. Seven days: SSGEOS's named windows run 4 to 12 days and its tables are updated every few days.
- Outcome: 1 if ComCat lists an earthquake with a magnitude in the row's range inside the window, else 0.
- Base rate (the "climatology" forecast a skill test is measured against): the share of all windows of the same
  length, starting every 6 hours in the reference period, that hold at least one such earthquake. This includes
  the ordinary clustering of earthquakes.
- Scores: the Brier score (mean squared difference between probability and outcome) of SSGEOS's probabilities
  and of the base rate, over every (forecast, row) pair, and the Brier skill score BSS = 1 − BS(SSGEOS) /
  BS(base rate). Positive means more skill than the base rate; zero, none; negative, worse.
- Decision rule: SSGEOS's tables show skill over the base rate only if the BSS is above 0 and the 95% interval
  from a bootstrap that resamples calendar months (10,000 resamples, seed 20261112) lies above 0.
- Calibration, row by row: the number of windows with an event that SSGEOS's probabilities imply (their sum),
  against the number observed and the number the base rate implies, with the exact two-sided probability of the
  observed number if SSGEOS's probabilities were right (Poisson-binomial; overlapping windows are not
  independent, so this is a guide, not a test).
- Discrimination: for each row range with at least 5 windows with and 5 without an event, the area under the
  ROC curve (AUC) of SSGEOS's probabilities: 0.5 means its higher probabilities pick out windows with events no
  better than chance. Its one-sided p-value comes from 2,000 circular shifts of the test catalogue in time (by 30
  days to the span less 30 days, wrapping round within the test period, seed 20261112), which keep the
  earthquakes' own clustering and the forecasts' timing.

Sensitivity analyses (reported, not deciding): (a) a 3-day window, SSGEOS's own "next 2-3 days" (its page on
community notes); (b) to the end of the window the page names ("Latest Earthquake Forecast 9-18 July 2024"),
or else the SSGI graph's span, when that ends at least a day after the stamp; (c) each row read as "at least one
earthquake of at least the row's lower magnitude"; (d) only earthquakes after the archive time of the copy (the
window still ends 7 days after the stamp); (e) only the first table in each calendar month.

## Analysis 2: warnings of magnitude 8, mega-thrust or great earthquakes

- The 16 distinct forecast texts in the archive that warn of them, with the windows read from each text by
  hand before the catalogue was fetched, are in `code/great_warnings.json`, with their exact words and the
  rule for windows.
- A warning is "followed" if ComCat lists an earthquake of magnitude 7.5 or more in its window (lenient: most
  texts say "8+", "mega-thrust", "great (M≥7.8)" or "higher 7 to 8"); and, separately, of magnitude 8.0 or more.
- Chance: for each warning, the base-rate share of windows of the same length with such an earthquake; their
  sum is the number expected by chance, and the Poisson-binomial gives the chance of at least the observed
  number. Also run with every window extended by 3 days, since SSGEOS says the response can lag the geometry.

## Analysis 3: SSGEOS's own conjunction statistic (stage 2)

SSGEOS's article "Planetary Conjunctions at the Time of Major Earthquakes" (last updated 30 March 2025) reports
that 135 of 182 earthquakes of magnitude 7 or more from 2011 to February 2023 (74.2%) came "at the time of a
convergence, i.e. two or more planetary conjunctions ≤ 2° within 2 days", from its data set
`2011-2023-M7p-PC.pdf`. Our test of it:

1. Rebuild the conjunction rule from the data set's own description and listings (three of the Sun and the eight
   planets in line in ecliptic longitude, within 2°, seen from the end body that its listings name first), with
   NASA JPL Horizons positions, and check it against the conjunctions the data set lists for its 182
   earthquakes. No earthquake catalogue is used in this step; the earthquake times are SSGEOS's own.
2. Freeze the rule and the code (SHA-256 into FREEZE.md and a commit).
3. Compute the share of all times (hourly, 2011 to February 2023) that meet SSGEOS's convergence criterion, and
   compare it with 74.2%. Then apply the frozen code to ComCat's earthquakes of magnitude 7.0 or more from 1 March
   2023 to 31 October 2026, against the share of all hours in that period. Decision rule: an excess only if the
   one-sided binomial p-value of the earthquakes' share against the share of all hours is below 0.05.

## What we will report whatever the result

Every number above, the counts behind it, the windows, and every exclusion. Code and data are hosted on the page.
