Commit graph

13 commits

Author SHA1 Message Date
root
556261f842 Add notebook, logs, and updated result reports
- CosmicRayNeutronQuakeAnalysis.ipynb: exploratory analysis notebook
- logs/: download and analysis run logs
- results/*_report.md: updated analysis reports reflecting corrected
  seismic metric and additional robustness checks

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 21:25:59 +02:00
root
fc859d5dff Editorial revision: precision, framing, and internal consistency (4a–4k)
4a  Moderate principal conclusion: 'no statistically credible evidence'
    replaced with 'no statistically robust evidence within tested frameworks'
    plus clause acknowledging untested mechanisms (threshold effects,
    nonlinear triggering, extreme-event coupling).

4b  Fix independence-assumption framing: 'physically invalid seismic metric'
    → 'physically inappropriate'; separate claim about naive p-values now
    reads 'statistically invalid under the violated serial-independence
    assumption (autocorrelation inflates nominal sample size by 3–5×)'.

4c  3.9σ detrended peak no longer called 'marginal': figure caption and
    nearby text now read 'nominally significant but sensitive to Neff
    estimation, at a lag inconsistent with the claimed mechanism'.

4d  CR terminology standardised: 'global CR index' defined precisely at
    first use in Data section (dimensionless, station mean ≡ 1, ≥3 stations
    per bin); 'CR flux' retained only for the physical quantity.

4e  Geographic conclusion reframed: 'no local mechanism' replaced with
    'inconsistent with simple wave-propagation or diffusion models, but does
    not rule out instantaneous global coupling mechanisms (e.g. atmospheric
    electric field modulation)'.

4f  Bayes factor qualified: parenthetical after BF=0.75 notes the restricted
    two-hypothesis model space and cites Kass & Raftery (1995).

4g  OOS limitations expanded: explicit paragraph noting the 5-yr window
    with no complete solar cycle, limited statistical power, and that
    p_global=0.100 is consistent with—rather than strong evidence against
    —the claim; OOS failure downweighted vs 44-yr in-sample analysis.

4h  Confirmatory vs exploratory scope table added (Table tab:prereg_scope)
    listing pre-specified parameters and which analyses were confirmatory
    vs post-hoc exploratory.

4i  Alternative solar-cycle confounds acknowledged in Discussion: geomagnetic
    activity cycles and long-term seismic clustering added as alternative
    explanations for the shared 10-year periodicity.

4j  Fixed: 'Out-of-sample poos from script 08' removed from Limitations;
    GitHub URL removed from abstract (kept in Data Availability only);
    Discussion run-on sentences broken up.

4k  Abstract rewritten to ≤250 words in five-part structure: prior claim,
    data/methods (two sentences), key quantitative results, scoped
    interpretation, one-sentence limitation. Causal language qualified.

Also adds KassRaftery1995 to refs.bib. PDF: 36 pages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 21:23:57 +02:00
root
1d01fcf102 Add seven additional robustness checks (3a–3g) and update paper
3a  Block-bootstrap surrogates (B=804 bins≈11 yr, n=5000): raw r(+15d)
    p=0.022 — marginally significant on undetrended series, driven by
    the shared solar-cycle trend not a causal signal.

3b  Partial correlation (sunspot-regressed, no filter): r(+15d) drops
    from 0.079 to 0.029 (63%) — confirms solar-cycle confounding without
    preprocessing circularity.

3c  Spectral coherence in solar-cycle band = 0.840 (>0.776 threshold);
    kNN mutual information at τ=+15d = 0.000 nats (p=1.000) — no
    nonlinear dependence at the claimed lag.

3d  Missing-data impact: 0% NaN at station thresholds 2/3/5; r(+15d)
    unchanged — missing data is not a confound.

3e  Bin-size sensitivity: dominant peak at τ≈-520d for 1/5/27-day bins;
    r at +15d scales with bin size (solar-cycle leakage, not physical).

3f  GK declustering removes 28.4% of events as aftershocks; r(+15d)
    changes by only Δ=0.014 — aftershock clustering not a confound.

3g  Per-solar-cycle analysis (cycles 21–24): r(+15d) all positive
    (0.018–0.073) but dominant peak lags scattered (-65/-125/+125/-125d)
    — phase-drifting solar-cycle artefact, not physical precursor.

Script fixes: vectorised block bootstrap (401×5000 → NumPy matmul),
  kNN MI with sorted searchsorted (O(N log N), no inflated values),
  coherence nperseg 512→2048 (resolves solar-cycle band), axhspan→axvspan.

Paper: new Methods subsections (block bootstrap, partial correlation,
  nonlinear dependence); new Results subsections for each check; updated
  Conclusions with 7-item robustness summary; Kraskov2004 and
  GardnerKnopoff1974 added to refs.bib; Homola2023 updated to arXiv
  preprint 2204.12310; eq:energy duplicate label fixed. PDF: 35 pages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 20:43:08 +02:00
root
798b0744b5 Fix seismic metric + robustness checks (issues 2a–2d)
2a — Replace physically invalid summed-Mw seismic metric with correct
     log10(ΣE) where E=10^(1.5·Mw+4.8) J (Kanamori 1977).  Updates
     usgs.py (new seismic_energy_per_bin()), scripts 02/07/08.
     Impact: r(+15d) raw 0.310→0.081, peak r 0.469→0.139; sinusoidal
     BF 27.5→0.75 (constant model now preferred).

2b — HP λ derivation: λ_5 = 1600×(365/5)^4 ≈ 4.54×10^10 (Ravn & Uhlig
     2002 rescaling); detrend robustness figure (HP/Butterworth/rolling
     mean), all show r(+15d)<0.04.

2c — Neff comparison: Bartlett 2923, Bretherton 769, Monte Carlo 594;
     MC 95% CI [-0.002, +0.158] straddles zero → raw r not significant
     under most conservative estimate.

2d — Magnitude threshold (M≥4.5/5.0/6.0): r(+15d) range 0.050–0.079
     (Δ=0.029 < 0.05), peak stable at τ=−525 d; no aftershock bias.

Paper (main.tex, refs.bib): update all numbers, add Kanamori/Bartlett/
Ravn–Uhlig refs, new sections for 2b–2d with figures and Neff table.
PDF recompiled (27 pages).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 14:49:54 +02:00
root
817d7ba042 Add raw pairwise correlation analysis (script 09) and paper section
New script 09_raw_pairwise_correlations.py downloads OOS NMDB/USGS data
and computes Pearson r and Spearman ρ (with Bonferroni correction) for
all three variable pairs across in-sample, OOS, and combined windows.
CR flux is represented by its per-bin station distribution (p5–p95 band
with min–max overlay); seismic energy uses the physically correct
E ∝ 10^(1.5·Mw) sum; sunspots shown with 365-day smoothed + raw spread.

Key findings: CR vs sunspot r=-0.82 to -0.94 (Forbush decrease); CR vs
seismicity r=0.057 raw (OOS: r=0.046, not significant); confounding
triangle motivates HP-filter detrending analysis.

Paper gains a new Section 4.1 "Raw Pairwise Correlations" with three
scatter figures and a 9-test Bonferroni summary table; 24 pages total.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 13:45:50 +02:00
root
f99b2fc04e Add scientific paper (LaTeX + PDF)
19-page paper covering the full analysis: in-sample replication,
IAAFT surrogate testing, solar-cycle detrending, geographic localisation
scan, pre-registered out-of-sample validation, and combined sinusoidal
Bayes-factor analysis. Conclusion: the CR-seismic correlation is a
solar-cycle artefact with no physical causal link.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 07:51:30 +02:00
root
9c226807c1 Add OOS and combined analysis results (scripts 07-08)
Out-of-sample (2020-2025): r(+15d)=+0.045, p=0.994 — not significant.
Combined (1976-2025): p=0.039 (2.1σ), sinusoid P=9.95 yr, BF=27.5.
Bayes factor strongly favours solar-cycle modulation over a constant,
confirming the correlation is driven by the shared ~10-year solar cycle
rather than a causal CR→seismic mechanism.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 07:34:24 +02:00
root
faf43d8b9e Fix GPU OOM and None-format bugs in script 08
surrogates_gpu.py: auto_batch_size was missing the irfft output buffer
(batch × T × 4 bytes) from its per-surrogate VRAM estimate, causing OOM
on long series (T≈3600). Added the missing term.

08_combined_timeseries.py: write_combined_report crashed with TypeError
when in-sample load failed (keys absent → None). Added _fv() helper that
formats None values as "N/A" instead of failing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 07:33:21 +02:00
root
965870e25a Add README with project overview and quickstart
Covers findings summary, repo structure, data sources, statistical
methods, pre-registration integrity check, and GPU benchmark results.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 00:57:29 +02:00
root
abf00b89f4 Add analysis results: scripts 01-05 outputs
Benchmark, Homola replication, stress test, detrended analysis, and
geographic localisation results including figures. Pre-registration
and data availability already committed separately.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 00:45:17 +02:00
root
14a108d71a Fix RangeIndex crash in script 07 seismic load
When load_usgs returns an empty DataFrame it has a RangeIndex, causing
resample("1D") to throw TypeError. Guard with an isinstance check and
fall back to a zero series so the rest of the pipeline continues.

Also aligns expected usgs-dir path with what script 06 wrote.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 00:45:07 +02:00
root
1832f73f74 Add pre-registration and data availability report
Pre-registered predictions written BEFORE any OOS analysis data is loaded
(UTC 2026-04-22T00:44:30). OOS window: 2020-01-01 to 2025-04-29,
constrained by NMDB reliable end date. 30 NMDB stations pass coverage
threshold in this window.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 02:45:19 +02:00
root
e5a812fa14 Initial commit: full analysis pipeline source code
Scripts 01-08 implement the complete cosmic-ray/earthquake correlation
analysis from data ingestion through out-of-sample validation and
combined timeseries sinusoid fitting.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 02:45:10 +02:00