How this calculation works
Each site needs projected coordinates, a nonnegative case count and positive population exposure. Coordinates define the candidate circular zones.
LLR(Z)=cZ log(cZ/EZ)+(C−cZ)log[(C−cZ)/(C−EZ)] when cZ>EZ; EZ=C·populationZ/populationTotal.A worked example
Singleton zone0 has5 observed vs1.2 expected; LLR=5log(5/1.2)+log(1/4.8). Exact calibration enumerates every multinomial case allocation and calibrates the maximum over the same zone family.
Good to know
5–40 distinct projected planar sites; positive population and integer case counts, total1–20000; zones centered at observed sites, radius at site distances, population cap≤50%; 999–1999 seeded simulations and20 million zone evaluations; spatial-only, high-rate clusters, one primary winner, no geocoding or adjusted covariates.
Reference: Kulldorff original spatial scan paper hosted by SaTScan (opens in a new tab) ↗
Keep population exposure with each site
Each site needs projected coordinates, a nonnegative case count and positive population exposure. Coordinates define the candidate circular zones.
The denominator must represent comparable exposure. Changing reporting periods or population definitions between sites can create a rate contrast unrelated to spatial clustering.
Compare this with the Moran I spatial autocorrelation permutation test calculator. Search circular zones for the maximum conditional Poisson likelihood-ratio elevated-rate cluster using case and population counts, then calibrate the maximum over the complete same candidate family under conditional multinomial simulation. Moran is a global autocorrelation score for values and weights.
Compare inside and outside a candidate zone
Expected cases inside a zone equal total observed cases times its population share. The likelihood ratio compares a higher internal rate with the complementary external rate.
Only elevated-rate candidates are considered. A zone with observed cases at or below expectation contributes zero to this one-sided scan score. The default has six total cases distributed across five equally populated sites. Five cases occur at the first site, whose null expectation is1.2. Its elevated-zone log likelihood ratio is approximately5.56696586. The candidate family contains nine distinct zones under the population cap. A complete small-count conditional enumeration gives a reference maximum-scan p-value of0.008; the page estimates that null probability by seeded multinomial simulation. Its displayed probability may differ because it uses a finite number of simulated datasets and the plus-one convention.
Search the same declared family in every simulation
Place centers at observed sites and expand radii through site distances, keeping zones within the population-share cap. Deduplicate identical site sets.
The maximum likelihood ratio is the observed statistic. A null replicate must search the entire same family, rather than test only the zone selected from the data.
Work through the checked default example
Singleton zone0 has5 observed vs1.2 expected; LLR=5log(5/1.2)+log(1/4.8). Exact calibration enumerates every multinomial case allocation and calibrates the maximum over the same zone family.
The maximum occurs for the singleton containing the first site, with log likelihood ratio 5.56696586. Exact conditional allocation of six cases across five equal-population sites gives a search-adjusted probability of 0.008. A candidate zone includes sites within a radius centered at an observed site. Every observed-site distance supplies a radius, and duplicate memberships are removed. The population cap prevents an arbitrary large zone from swallowing most of the study region. The likelihood comparison uses both the inside and outside counts conditional on the total number of cases. A zone with observed count at or below expectation receives zero elevated-cluster score; this page does not simultaneously search for low-rate clusters. Geographic latitude and longitude should be projected before use because the radius calculation assumes ordinary planar distances.
Condition on the total case count
Under the conditional null, allocate the fixed total among sites in proportion to population. Recalculate the maximum score for each allocation.
Small examples permit exact multinomial enumeration. Larger inputs use seeded simulation with a plus-one tail proportion; a sampled probability is not exact enumeration.
Read the winning zone as a selected result
Report its site membership, observed and expected cases and the search-adjusted probability together. The maximum itself is not a probability.
The reported zone is the best among the admissible circles. Its boundary does not establish a biological or administrative boundary, and a secondary zone needs separate selection rules. The null simulation redistributes the fixed total case count with probabilities proportional to site populations, then searches the entire same zone family again. Testing only the winning observed zone would ignore the search and generally give an overoptimistic result. Population denominators must represent comparable exposure, not unrelated convenience weights. The result identifies a statistical concentration under a homogeneous-rate working null; it does not identify its cause. Coordinate precision, population errors, missing cases and unmodeled background-rate differences can all affect the interpretation, even when the algorithm and simulation are implemented correctly.
Separate a spatial signal from explanation
The calculation has no geocoding, spatial covariate adjustment or automatic surveillance baseline. Rate comparability and the tested time window remain external decisions.
Case duplication, coordinate errors and mismatched population denominators can dominate a small scan. Preserve those input definitions when sharing a result. The population fraction cap is expressed as a proportion, so0.5 means one half rather than half of one percent. A smaller cap changes the candidate hypothesis family and may change both the winner and its calibrated probability. Choose that analysis setting deliberately before interpreting the most extreme observed region; it is not merely a plotting zoom.
A few questions, answered
Why not test only the winning circle?
The circle was selected by searching. Null replicates must repeat that search to account for the selection.
Does the case total change under the null?
No. Conditional multinomial allocation preserves the total and uses population shares as site probabilities.
Can zones cover the whole population?
The supported cap is at most one half, retaining a meaningful inside/outside rate comparison.
Is a large likelihood ratio a p value?
No. It must be calibrated against the maximum statistic from the complete same null search.