S03 · Monte Carlo ranks, local clusters and reported probabilities

Question. Given the same observed and simulated curves, do the two significance tests report the expected global rank, local clusters and adjusted probabilities?

Scoring controls. The observed and simulated curves use common bounds and pointwise scales. In two fixed azimuth fixtures the uniform-null global probability was 0.4375, with an adjusted probability of 0.1875 for the 349.5°–10° interval. The specified-null fixture gave 0.0625 globally and for its 346°–15° interval. A start bearing greater than its end denotes one interval across north. Declination uses a linear grid.

The Python reference pooled the observed and simulated values at each coordinate, computed sample standard deviations and interpolated quantiles, and ranked the sum of standardised excursions. One-tail tests used upper excursions and two-tail tests also included lower excursions. For each simulated curve the reference selected its own largest qualifying cluster before ranking the observed local score. The discrete reference included ties, all-identical curves, an isolated excursion, clusters on both sides, and spans at and just below 0.5°. For public calls, the R harness recorded the actual simulation matrix passed to inference; Python then scored it independently. This isolates the scoring stage from the null-generation and power studies scheduled under S01 and S02.

Reproduction files. Significance methods · Validation programme.

Function entries

randomTest(), modelTest(), bernoulli.trial(), pval2stars(), print.skyscapeR.sigTest(), plot.skyscapeR.sigTest().