RULES_sea_null.txt -- pre-registered before running (2026-11-15) ================================================================= Question -------- How often does the thesis's way of reading its superposed epoch analyses (SEA) find "HCS-related" lightning peaks in a series that has no link to the crossings at all? And how much of the "echo" at +/-27 days is the lag-0 data counted again? The real lightning data are not public, so this tests the method, not the data. Inputs ------ - Crossings: the primary reconstructed 2010-2023 list from RULES_hcs_list.txt (rule R-A), restricted to crossings at least 40 days from both ends of 2010-01-01..2023-12-31. - Synthetic "lightning-like" daily series, 2010-01-01..2023-12-31 (5113 days), with no dependence on the crossings by construction: x[t] = exp( s(t) + a[t] ), s(t) = A cos(2 pi (doy - 196) / 365.25), a[t] = phi a[t-1] + e[t], e ~ N(0, sigma^2 (1 - phi^2)) (stationary sd sigma). A, phi, sigma are tuned once, before any SEA is computed, on 50 trial series per grid point, to match the thesis's descriptive statistics for the USA bin: share of the yearly total falling 15 Mar-15 Sep = 0.78 (p. 48), lag-1 autocorrelation of x = 0.717 (p. 134), mean/median of x = 2108/1634 = 1.29 (p. 47-48). Grid: A in 0.6..2.0 step 0.1, phi in 0.3..0.9 step 0.05, sigma in 0.3..1.5 step 0.05 (coarse-to-fine search allowed); loss = sum of squared relative errors. The tuned values are logged. - Trend variant (sensitivity): x multiplied by a linear ramp from 1.0 on 2010-01-01 to 1.6 on 2023-12-31 (our by-eye reading of the thesis's Fig. 2.5: summer monthly peaks near 3,200/h in 2010 and 4,500-5,600/h from 2018). The thesis's significance procedure, as we implement it (p. 80-81) ----------------------------------------------------------------- For each panel (All, T-A only, A-T only) with n eligible crossings: - SEA statistic = mean (and, separately, median) of x at each lag -40..+40 days. - 1000 Monte Carlo epoch sets: start uniformly at random within the first L days of the eligible range (L = the longest observed interval), then add inter-crossing intervals drawn with replacement from that panel's observed intervals (consecutive crossings of the panel's list), wrapping around circularly inside the eligible range, until n epochs. - Pointwise bands: 2.5th/97.5th percentiles of the 1000 Monte Carlo SEA values at each lag. - An "exceedance" = a lag where the SEA is above the 97.5th percentile ("reaches the 95% confidence interval"). Reading rule (fixed now) ------------------------ Expected-location windows per panel: [-29,-25], [-15,-12], [-2,2], [12,15], [25,29]. H_panel = number of windows containing at least one exceedance (0-5); H_tot over the three panels (0-15). E_panel = number of exceedances among the 81 lags; E_tot over three panels. The thesis's own USA WWLLN numbers under this rule (from the lag lists on p. 85 and 87): mean SEA: E = 9, 8, 13 (E_tot 30); H = 4, 3, 3 (H_tot 10). median SEA: E = 14, 5, 14 (E_tot 33); H = 4, 1, 2 (H_tot 7). Outputs ------- Part A (echo overlap, real crossings): fraction of eligible crossings with another accepted crossing 25-29 days later (any direction; same direction) and with an opposite-direction crossing 12-15 days away. Correlation, across 2000 white-noise series (iid N(0,1)), between the All-panel SEA mean at lag 0 and at lag +27, for the real crossings and for one thesis-style random epoch set per series. Part B (null calibration): 200 synthetic series (stationary model). For mean and median SEA: distribution of E_tot, H_tot and H_All; the probabilities P(H_All >= 4), P(H_tot >= 10), P(H_tot >= 7), P(E_tot >= 30), P(E_tot >= 33); the fraction of series with at least one exceedance in the [-2,2] window of at least one panel. Part C: as Part B with the trend variant (100 series). Also report crossings per calendar year (2010-2023) against a uniform spread. Interpretation fixed in advance ------------------------------- If H counts as large as the thesis's are common (probability >= 0.05) in series with no link to the crossings, the reading rule cannot by itself show HCS modulation. If the thesis's E_tot is rare (< 0.05) under the stationary null, we say so: it means either a real effect or a null that does not match the data (for example a trend or season mismatch between real and random epochs), and Part C indicates whether a trend alone can produce it.