S02 · Specified and site-specific null models
Can modelTest() recover the expected false-positive rate when the proposed model gives different weights to candidate directions at different sites? The study used five unequally spaced candidate directions, weights interpreted as probability masses, eight observations and 39 fresh reference draws per fit. We tested azimuth densities, directly constructed declination densities and asymmetric templates shifted to candidate means.
Same-input comparison. When the candidate directions are fixed at the observations, observed and simulated sums agree for directly constructed azimuth and declination densities. Separate fixtures check shifted declination templates, replacement widths and rejection at the pole boundary.
Calibration. Twelve conditions each used 2,000 independent outer datasets. The six matched null conditions give the following rejection rates at the 5% threshold; parentheses contain pointwise 95% Wilson intervals. Local rejection means that at least one adjusted cluster probability crossed the threshold.
| Coordinate or template | Input model | Global rejection | Any local rejection |
|---|---|---|---|
| Azimuth | Common weights | 5.00% (4.13–6.04) | 5.05% (4.17–6.10) |
| Azimuth | Site-specific weights | 4.55% (3.72–5.55) | 4.50% (3.68–5.50) |
| Declination | Common weights | 5.50% (4.58–6.59) | 5.20% (4.31–6.26) |
| Declination | Site-specific weights | 4.35% (3.54–5.33) | 4.05% (3.27–5.01) |
| Shifted asymmetric template | Common weights | 5.35% (4.45–6.42) | 5.25% (4.36–6.32) |
| Shifted asymmetric template | Site-specific weights | 5.35% (4.45–6.42) | 5.50% (4.58–6.59) |
Concentrating four of eight observations on the fourth candidate increased global rejection to 48.0–57.8% across the three direct-input designs. Pairing the random quantiles of two observations while retaining the site’s marginal model increased global rejection to 5.70–6.95% and any-local rejection to 6.25–7.85%. These dependent-site results measure sensitivity to a violated independence assumption. The minimum attainable p-value with 39 simulations is 0.025. The archive includes counts and uncertainty intervals at thresholds of 1%, 5% and 10%.
Azimuth models tested in declination
Four designs crossed a shared or observation-specific skyline with common or observation-specific candidate weights. Eight independent normal bearing measurements alternated between widths of 1° and 2°. Five candidate bearings had unequal probability masses. Each dataset used 39 fresh null draws, a 1° final declination grid and a two-tailed test at 5%. Each of two independently seeded batches used 2,000 datasets per design.
| Skyline | Weights | Global rejections (95% interval) | Datasets with any local rejection (95% interval) |
|---|---|---|---|
| Shared | Common | 190/4000 · 4.75% (4.13%–5.45%) | 187/4000 · 4.67% (4.06%–5.37%) |
| Shared | Site-specific | 184/4000 · 4.60% (3.99%–5.29%) | 190/4000 · 4.75% (4.13%–5.45%) |
| Paired | Common | 196/4000 · 4.90% (4.27%–5.61%) | 198/4000 · 4.95% (4.32%–5.67%) |
| Paired | Site-specific | 189/4000 · 4.72% (4.11%–5.43%) | 185/4000 · 4.62% (4.02%–5.32%) |
Each simulation reused package-generated transformed densities for the sampled bearing, width and assigned horizon. A seeded call through the public interface checked the observed curve and both ranks against the independent scorer. In these four designs every pooled pointwise Wilson interval includes 5%. The denominators count independent datasets. Global and local outcomes from the same dataset are correlated. Tests using dependent structures, fitted model weights or other uncertainty families require their own calibration. Scripts and batch results.
Maltese application. We reconstructed the landscape hypotheses of Silva & Lomsdalen (2025) using the packaged observations for all 32 structures. All 64 entrance endpoints agreed with supplementary Table S1. We used normal measurement densities centred on the frame midpoints, with standard deviations equal to one quarter of the opening width. The terrain-aspect reconstruction uses the available 5 m Malta DTM, an eight-neighbour slope calculation and cell aspects within 30 m of each entrance. The wind reconstruction digitises the 12 frequency sectors in Galdies (2011), distributes each sector’s mass uniformly within its bounds and rotates directions by 180°. The winter sunlight reconstruction samples apparent solar-centre azimuths at one-minute intervals between the autumn and spring equinoxes of 3000 BCE at the mean temple location. Each model used a 0.5° candidate grid.
| Reconstructed hypothesis | Global p-value, 9,999 simulations |
|---|---|
| Site-specific terrain aspect | 0.0259 |
| Protection from the wind | 0.0007 |
| Exposure to winter sunlight | 0.0001 |
These values belong to the reconstructed inputs and current scoring convention. The original simulation draws and exact historical model tables were unavailable in the retrieved supplement. The raster operator, wind digitisation, solar viewpoint and discretisation can affect the comparison. The archive contains the inputs, local intervals, and a 499-simulation public-interface replay verifying the longer run. Published study and supplement. Source wind rose, Figure 19.
Matched-null calibration on steep skylines
The calibration crosses a shared skyline or two observation-specific skylines with shared or site-specific candidate weights. Five bearings span north. Eight observations alternate between two widths. Normal, compact Epanechnikov and asymmetric triangular models each use two requested integration spacings. Each of 24 configurations has five independently seeded batches of 2,000 datasets, each with 39 fresh reference draws. Across families and spacings the experiment reuses random draws. The public-interface checks compare the empirical curve and both ranks to an independent scorer. D02 assesses the propagated densities against an independent geometric reference.
Across 240,000 fits, the following ranges give the smallest and largest observed rejection proportions across four skyline/weight designs and both requested spacings at nominal 5%. Each individual estimate uses 10,000 datasets.
| Bearing family | Global rejection | Any adjusted local rejection |
|---|---|---|
| Normal | 4.68%–5.19% | 4.65%–5.12% |
| Epanechnikov | 4.60%–5.20% | 4.76%–5.06% |
| Triangular | 4.59%–5.12% | 4.59%–5.28% |
The ranges describe the specific matched-null fixtures. Simulations and observations use the same numerical propagation. The archive gives each rejection count, denominator and pointwise 95% Wilson interval. Correlated observations or estimated model weights require a separate calibration.
Download the reproduction archive.
Function entries