PUBH-450 · Lesson 9 of 12 · 20 min

Spatial analysis and health maps

▶ Video coming soon A video version of this lesson is on the way.

When the Kestrel Valley team published its first online map of Lyme disease rates by community in 2025, the phones in Tamsin Lake started ringing. The map colored Tamsin Lake, a village of about 1,500 people, in the darkest red: 133 cases per 100,000, five times the regional rate. Cottage owners asked whether it was safe to visit, and the local council asked for an emergency tick control program. Behind the dark red were exactly two cases. A single additional case would have raised the rate to 200, and no cases would have made Tamsin Lake the safest place in the region.

For the 2026 update, Jonah Whitcombe was asked to redesign the map so that it told the truth about both risk and uncertainty. That task is a good introduction to spatial analysis in surveillance: maps are among the most powerful ways to communicate health data, and among the easiest ways to mislead. This lesson covers how health data are located in space, the main types of health maps and their pitfalls, the problem of small numbers, methods for detecting clusters, area-level measures of deprivation, and the privacy risks of maps.

Why place matters

Place shapes health through the physical environment (water, air, ticks, heat), the social environment (income, housing, services) and access to care. Surveillance has used maps since its beginnings. The most famous example is John Snow’s 1854 map of cholera deaths in the Soho district of London, which showed deaths clustered around the Broad Street pump and supported his argument that cholera spread through contaminated water. Snow’s map worked because he combined the spatial pattern with other evidence, such as the brewery workers who drank beer rather than pump water and escaped the disease. Maps reveal patterns; they rarely explain them on their own.

Locating health data

To map cases, each record needs a location. Geocoding converts an address into coordinates or assigns it to a geographic area. Geocoding is never perfect: some addresses are missing, incomplete or rural routes that cannot be placed precisely, and the match rate is often lower in rural areas and for people with unstable housing, which can bias maps. Analysts report the match rate and check whether unmatched records differ from matched ones.

Cases are usually aggregated into areas for which population counts exist, so that rates can be calculated. In the United States, standard geographies include census blocks, block groups, census tracts (roughly 1,200 to 8,000 people) and counties. ZIP codes are widely available in health records but are mail delivery routes rather than areas; the Census Bureau’s ZIP Code Tabulation Areas approximate them for population counts, with some mismatch. Whatever the unit, the boundaries of areas used for analysis should match the boundaries used for population denominators.

Types of health maps

  • Dot maps show each case as a point. They are vivid and preserve detail but can identify individuals and show where people live rather than where risk is high, because more dots appear wherever more people live.
  • Proportional symbol maps show counts with symbols sized by number, useful for showing burden and planning services.
  • Choropleth maps shade areas by a rate or proportion. They are the most common type in surveillance, and they have the most pitfalls.
  • Smoothed surface maps estimate a continuous risk surface from point or area data, using methods such as kernel density estimation.
  • Flow maps show movement, such as patients traveling to hospitals or the spread of an outbreak between communities.
Two side-by-side schematic maps of five Kestrel Valley communities. The left map, shaded by number of cases, makes Corbel Falls, the largest town, darkest. The right map, shaded by rate per 100,000, makes Tamsin Lake, the smallest village, darkest, with a note that the rate is based on only two cases.
The same data mapped as counts and as rates. Counts highlight where most cases are; rates highlight where risk appears highest, but rates in small populations are unstable. Data are invented.

Choropleth pitfalls

Choropleth maps can tell different stories from the same data depending on choices that readers never see:

  • Counts versus rates: shading by counts mainly maps population. Shading by rates maps risk, but gives visual weight to large, sparsely populated areas and unstable values in small ones.
  • Classification: values are grouped into classes by equal intervals, quantiles (equal numbers of areas per class), natural breaks or meaningful thresholds. Quantile maps always show some areas in the top class, even if all values are similar; equal-interval maps can put almost all areas in one class. The choice should be stated in the legend, and thresholds with a public health meaning are often the clearest.
  • Color: a single-hue sequential scale, from light to dark, suits rates; a diverging scale, with two hues around a midpoint, suits values above and below a reference, such as a ratio of observed to expected. Red-green scales are hard to read for people with color vision deficiency.
  • Area size: large rural areas dominate the eye even when few people live there. Cartograms, which resize areas by population, or insets for urban areas can help.
Two versions of the same choropleth map of twelve small areas with rates between 18 and 31 per 100,000. In the quantile version, a third of the areas fall in the darkest class and the map looks highly variable. In the version with fixed thresholds at 40 and 80 per 100,000, all areas share the lightest class and the map looks uniform.
Classification changes the message. With quantile classes, small differences look dramatic; with fixed, meaningful thresholds, the region looks uniform. Legends should state the method. Illustrative.

The problem of small numbers

Rates in small populations are unstable because a change of one or two cases makes a large difference, as the Tamsin Lake example showed. On a choropleth map, the most extreme rates, both highest and lowest, are almost always in the smallest areas, purely by chance. Several remedies exist:

  • Show uncertainty: give confidence intervals in tables and pop-ups, or use hatching or transparency for unreliable rates.
  • Aggregate: combine years, or combine small areas into larger ones with enough cases.
  • Suppress or flag: do not shade areas with fewer than a set number of cases, which also protects privacy.
  • Smooth: empirical Bayes smoothing pulls each area’s rate toward the regional average by an amount that depends on its population, so that small areas with little information are pulled strongly and large areas hardly at all. Spatial smoothing methods also borrow strength from neighboring areas. Smoothed rates are more stable but hide some real local extremes, so they should be labeled.
Lyme disease rates in Kestrel Valley communities, 2025 (invented data), with exact Poisson confidence intervals.
CommunityPopulationCasesRate per 100,00095 percent CI
Corbel Falls40,000820.09 to 39
Kestrel Falls25,000624.09 to 52
Kestrel Crossing15,000426.77 to 68
Pine Hollow5,000360.012 to 175
Tamsin Lake1,5002133.316 to 482
Region86,5002326.617 to 40

The table makes the point plainly. Tamsin Lake’s rate looks five times the regional rate, but its confidence interval runs from 16 to 482 per 100,000 and comfortably includes the regional value. Jonah’s redesigned map shaded communities by rate only where there were at least five cases over the period shown, combined three years of data, and added a pop-up with each community’s count and confidence interval. The 2026 map still showed higher rates in the forested south of the region, where blacklegged ticks are established, a pattern consistent with tick surveillance and worth communicating, but it no longer singled out one village on the strength of two cases.

Worked problem

Assessing a suspected cancer cluster with a standardized incidence ratio

Residents of a Kestrel Crossing neighborhood report that many neighbors have been diagnosed with cancer. Registry data show 9 cases of a particular cancer in the neighborhood over five years. Applying regional age-specific rates to the neighborhood’s population gives an expected 5.2 cases. Exact Poisson limits for an observed count of 9 are 4.1 and 17.1. Calculate the standardized incidence ratio (SIR) and its 95 percent confidence interval.

Show solution
  1. SIR = observed ÷ expected = 9 ÷ 5.2 = 1.73.
  2. Lower limit = 4.1 ÷ 5.2 = 0.79.
  3. Upper limit = 17.1 ÷ 5.2 = 3.29.
  4. Interpret: the interval includes 1, so the excess is compatible with chance.

Answer: The SIR is 1.73 (95 percent CI 0.79 to 3.29). The neighborhood has more cases than expected, but not more than chance could readily produce. Investigators would also consider whether the cases share a type of cancer plausibly linked to a common exposure, and would communicate openly with residents, as guidelines for cluster investigations recommend.

Detecting clusters

A cluster is an aggregation of cases in space, time or both that is believed or perceived to be greater than expected by chance. Statistical methods ask two different questions. Global tests ask whether cases are clustered anywhere in the study area; the best known, Moran’s I, measures whether neighboring areas tend to have similar rates. Local methods ask where clusters are: local indicators of spatial association and the Getis-Ord statistic identify hot spots and cold spots, and the spatial scan statistic, developed by Martin Kulldorff and implemented in widely used free software, moves windows of varying size across the map (and through time, for space-time scans) and finds the window with the most unusual excess, adjusting for the many windows tested.

Cluster detection has a special difficulty: multiple comparisons. If a map has 100 areas and each is tested at the 5 percent level, about 5 will look significant by chance. The Texas sharpshooter problem describes the opposite error: drawing a boundary around cases after seeing them, like firing at a barn and painting the target around the bullet holes. Public concern often starts with a perceived cluster defined in this way. Guidelines for investigating suspected cancer clusters, published by CDC and CSTE in 2013 and used as a model in Canadian jurisdictions, recommend a stepwise approach: gather information and respond respectfully to the concern, assess whether the cases share a cancer type and plausible exposure, compare observed with expected cases, and only then consider whether a full epidemiological investigation is feasible and useful. Very few reported cancer clusters are confirmed as having a common environmental cause, but every concern deserves a careful, transparent response.

Ecological interpretation

Area-level analysis describes areas, not individuals. Finding that neighborhoods with more fast-food outlets have higher diabetes rates does not show that the individuals who eat fast food are the ones with diabetes; assuming so is the ecological fallacy, discussed in PUBH-210, Principles of Epidemiology. A related problem is the modifiable areal unit problem (MAUP): results can change depending on the size of the areas used (the scale effect) and on how boundaries are drawn (the zoning effect). A correlation that is strong at the level of health regions may weaken or vanish at the level of neighborhoods. Analysts should test whether conclusions hold at more than one scale.

Area-level deprivation and equity

Because individual income and education are often missing from surveillance data, analysts assign each case the characteristics of the area where the person lives, such as an area deprivation index, and compare rates across deprivation groups. In the United States, widely used measures include the CDC and ATSDR Social Vulnerability Index and the Area Deprivation Index. Rates are often shown by quintile of deprivation, from least to most deprived, with a rate ratio comparing the extremes. These analyses are among the most useful outputs of surveillance for equity, but they inherit the ecological limitations above: an area measure is a proxy, and not everyone in a deprived area is poor.

Privacy and maps

Maps can identify people. A dot on a rural road may point to one house; a shaded area with one case of HIV in a small town may identify a person to neighbors. Public maps should use areas large enough to protect privacy, suppress or combine small counts, and avoid dot maps of sensitive conditions. When point data must be shown, geomasking methods displace each point by a random distance within a set range, preserving the overall pattern while preventing exact identification. Internal maps used by investigators can show more detail, but they must be protected like other identifiable data.

Common mistakes

  • MistakeShading a map by counts to show risk.

    InsteadCounts mostly reflect population; use rates for risk and counts for burden, and say which is shown.

  • MistakeReading the most extreme rates on a map as the most important areas.

    InsteadExtreme rates are often in small populations and due to chance; show confidence intervals, aggregate or smooth.

  • MistakeChoosing quantile classes without considering the range of values.

    InsteadQuantile maps always fill the top class; use meaningful thresholds when differences are small.

  • MistakeDrawing a cluster boundary around cases after seeing them.

    InsteadDefine areas and hypotheses in advance, use scan statistics that adjust for multiple windows, and follow cluster investigation guidelines.

  • MistakeInterpreting area-level associations as individual risk.

    InsteadAvoid the ecological fallacy; check results at more than one scale.

Summary and key terms

  • Maps reveal spatial patterns in health but need other evidence to explain them, as Snow’s cholera map shows.
  • Geocoding and aggregation to census or health geographies allow rate calculation; match rates and geographic mismatches must be checked.
  • Choropleth maps depend on choices of counts or rates, classification, color and area size; legends should state them.
  • Rates in small areas are unstable; show uncertainty, aggregate, suppress or smooth, and assess suspected clusters with observed-to-expected ratios and appropriate statistics.
  • Area-level analyses face the ecological fallacy and the modifiable areal unit problem; deprivation indices support equity analysis; maps must protect privacy.
Geocoding
Converting an address into geographic coordinates or assigning it to a geographic area.
Choropleth map
A map in which areas are shaded according to the value of a rate or proportion.
Small numbers problem
The instability of rates calculated for small populations, where a few cases cause large changes.
Empirical Bayes smoothing
A method that shrinks each area’s rate toward the overall rate in proportion to how little information the area provides.
Standardized incidence ratio
The ratio of observed cases to the number expected from reference rates applied to the area’s population.
Spatial scan statistic
A method that scans windows of varying size across a map to find the most unusual cluster, adjusting for multiple testing.
Texas sharpshooter problem
The error of defining a cluster boundary after seeing where cases are.
Modifiable areal unit problem
The way results of area-based analyses change with the size and boundaries of the areas used.
Area deprivation index
A measure combining census indicators such as income, education and employment to rank areas by disadvantage.
Geomasking
Randomly displacing point locations to protect privacy while preserving spatial patterns.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Observed cases are 12 and expected cases are 8. What is the standardized incidence ratio?

    Show answer

    12 ÷ 8 = 1.5.

  2. Why might a dot map of influenza cases mislead even if every dot is correctly placed?

    Show answer

    Dots cluster where people live, so the map mostly shows population density rather than risk; it may also identify individuals.

  3. A map shows rates by quintile. Why will one fifth of areas always be in the darkest class?

    Show answer

    Quantile classes put equal numbers of areas in each class, regardless of how similar the values are.

  4. Give two ways to make a map of rates in small communities less misleading.

    Show answer

    Examples: combine years, aggregate small areas, show confidence intervals, suppress rates based on few cases, or use empirical Bayes smoothing with a label.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz