cosmicraysandearthquakes/results/raw_pairwise_correlations.json
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

200 lines
No EOL
6.5 KiB
JSON

{
"n_tests_bonferroni": 9,
"results": [
{
"label": "CR_p50 vs Seismic",
"window": "In-sample (1976\u20132019)",
"n_bins": 3214,
"pearson_r": 0.05710710378868533,
"pearson_p": 0.00119988073256791,
"pearson_ci_lo": 0.02257726973505399,
"pearson_ci_hi": 0.09150085205340468,
"pearson_p_bonf": 0.010798926593111189,
"spearman_rho": 0.07097861545637706,
"spearman_p": 5.63861918381612e-05,
"spearman_p_bonf": 0.0005074757265434508
},
{
"label": "CR_p95 vs Seismic",
"window": "In-sample (1976\u20132019)",
"n_bins": 3214,
"pearson_r": 0.06907963019575922,
"pearson_p": 8.875791465767054e-05,
"pearson_ci_lo": 0.03458782771353293,
"pearson_ci_hi": 0.1034070656655567,
"pearson_p_bonf": 0.0007988212319190349,
"spearman_rho": 0.0772244192684692,
"spearman_p": 1.1713062375821977e-05,
"spearman_p_bonf": 0.0001054175613823978
},
{
"label": "CR_p50 vs Sunspot",
"window": "In-sample (1976\u20132019)",
"n_bins": 3109,
"pearson_r": -0.8196118840402077,
"pearson_p": 0.0,
"pearson_ci_lo": -0.8308273920487026,
"pearson_ci_hi": -0.8077309154215488,
"pearson_p_bonf": 0.0,
"spearman_rho": -0.8537788002205909,
"spearman_p": 0.0,
"spearman_p_bonf": 0.0
},
{
"label": "CR_p95 vs Sunspot",
"window": "In-sample (1976\u20132019)",
"n_bins": 3109,
"pearson_r": -0.7111385470496709,
"pearson_p": 0.0,
"pearson_ci_lo": -0.7280904984781218,
"pearson_ci_hi": -0.6933173005311596,
"pearson_p_bonf": 0.0,
"spearman_rho": -0.7120845180015138,
"spearman_p": 0.0,
"spearman_p_bonf": 0.0
},
{
"label": "Sunspot vs Seismic",
"window": "In-sample (1976\u20132019)",
"n_bins": 3109,
"pearson_r": -0.09493087002363143,
"pearson_p": 1.1388681609654831e-07,
"pearson_ci_lo": -0.12965168680195338,
"pearson_ci_hi": -0.059977540109432424,
"pearson_p_bonf": 1.0249813448689347e-06,
"spearman_rho": -0.09896108460051863,
"spearman_p": 3.215656878418318e-08,
"spearman_p_bonf": 2.894091190576486e-07
},
{
"label": "CR_p50 vs Seismic",
"window": "OOS (2020\u20132025)",
"n_bins": 390,
"pearson_r": 0.046285662686090766,
"pearson_p": 0.3619670906211286,
"pearson_ci_lo": -0.053261360369158024,
"pearson_ci_hi": 0.14492178269732792,
"pearson_p_bonf": 1.0,
"spearman_rho": 0.018431820974901467,
"spearman_p": 0.7167081698328611,
"spearman_p_bonf": 1.0
},
{
"label": "CR_p95 vs Seismic",
"window": "OOS (2020\u20132025)",
"n_bins": 390,
"pearson_r": 0.01741112912354181,
"pearson_p": 0.731775599256422,
"pearson_ci_lo": -0.08203292234056903,
"pearson_ci_hi": 0.1165119037773267,
"pearson_p_bonf": 1.0,
"spearman_rho": 0.005527877339000357,
"spearman_p": 0.913347440746341,
"spearman_p_bonf": 1.0
},
{
"label": "CR_p50 vs Sunspot",
"window": "OOS (2020\u20132025)",
"n_bins": 385,
"pearson_r": -0.9386922203247808,
"pearson_p": 3.195693957272318e-179,
"pearson_ci_lo": -0.9495525580837112,
"pearson_ci_hi": -0.925583111407333,
"pearson_p_bonf": 2.876124561545086e-178,
"spearman_rho": -0.9509485215521011,
"spearman_p": 2.976672353983517e-197,
"spearman_p_bonf": 2.679005118585165e-196
},
{
"label": "CR_p95 vs Sunspot",
"window": "OOS (2020\u20132025)",
"n_bins": 385,
"pearson_r": -0.8009259368888886,
"pearson_p": 2.4808686858547665e-87,
"pearson_ci_lo": -0.8341024755606444,
"pearson_ci_hi": -0.7619757168998428,
"pearson_p_bonf": 2.2327818172692897e-86,
"spearman_rho": -0.8577912916660049,
"spearman_p": 9.430786501080505e-113,
"spearman_p_bonf": 8.487707850972454e-112
},
{
"label": "Sunspot vs Seismic",
"window": "OOS (2020\u20132025)",
"n_bins": 385,
"pearson_r": -0.023356101158924312,
"pearson_p": 0.6477774446611007,
"pearson_ci_lo": -0.12301462492345265,
"pearson_ci_hi": 0.07676878530250154,
"pearson_p_bonf": 1.0,
"spearman_rho": -0.016183406260000095,
"spearman_p": 0.7516005849333192,
"spearman_p_bonf": 1.0
},
{
"label": "CR_p50 vs Seismic",
"window": "Combined (1976\u20132025)",
"n_bins": 3604,
"pearson_r": 0.055280515666118794,
"pearson_p": 0.0008999788202432366,
"pearson_ci_lo": 0.022671514404173917,
"pearson_ci_hi": 0.08777201673979473,
"pearson_p_bonf": 0.008099809382189129,
"spearman_rho": 0.06450971045346121,
"spearman_p": 0.00010643839785029366,
"spearman_p_bonf": 0.0009579455806526429
},
{
"label": "CR_p95 vs Seismic",
"window": "Combined (1976\u20132025)",
"n_bins": 3604,
"pearson_r": 0.06534669803613433,
"pearson_p": 8.643658108903141e-05,
"pearson_ci_lo": 0.03276668669712753,
"pearson_ci_hi": 0.09778798224460038,
"pearson_p_bonf": 0.0007779292298012827,
"spearman_rho": 0.07455587634565956,
"spearman_p": 7.446103364283088e-06,
"spearman_p_bonf": 6.701493027854779e-05
},
{
"label": "CR_p50 vs Sunspot",
"window": "Combined (1976\u20132025)",
"n_bins": 3494,
"pearson_r": -0.8151123489946459,
"pearson_p": 0.0,
"pearson_ci_lo": -0.8259476899624344,
"pearson_ci_hi": -0.8036749974749445,
"pearson_p_bonf": 0.0,
"spearman_rho": -0.8441554235717627,
"spearman_p": 0.0,
"spearman_p_bonf": 0.0
},
{
"label": "CR_p95 vs Sunspot",
"window": "Combined (1976\u20132025)",
"n_bins": 3494,
"pearson_r": -0.7288431646136924,
"pearson_p": 0.0,
"pearson_ci_lo": -0.7440213093422423,
"pearson_ci_hi": -0.7129131861565221,
"pearson_p_bonf": 0.0,
"spearman_rho": -0.7424462187819917,
"spearman_p": 0.0,
"spearman_p_bonf": 0.0
},
{
"label": "Sunspot vs Seismic",
"window": "Combined (1976\u20132025)",
"n_bins": 3494,
"pearson_r": -0.08618292707351498,
"pearson_p": 3.3617107739195996e-07,
"pearson_ci_lo": -0.11900279156634344,
"pearson_ci_hi": -0.05317493830432684,
"pearson_p_bonf": 3.0255396965276398e-06,
"spearman_rho": -0.08626578684354677,
"spearman_p": 3.275322308474069e-07,
"spearman_p_bonf": 2.9477900776266624e-06
}
]
}