Measuring how much extra light cities generate during festivities.
Every December, I’ve seen someone post a satellite picture claiming you can see Christmas lights from space. I wanted to test whether that actually holds up.
In theory it shouldn’t be too difficult to take NASA’s Black Marble dataset and difference it between festival season and non-festival season - right?
Short answer: yes, you can measure it. At Christmas, Chicago’s residential streets brighten about 17% more than its industrial areas do. But my first attempt gave a confident answer that was wrong, and the only reason I caught it was a check called a placebo test. This post walks through the measurement one piece at a time, then the check, then the bug it caught.
What the satellite gives me
NASA’s Black Marble product (VNP46A2, from NASA’s LAADS DAAC) is a picture of the Earth at night, taken every night. The picture is a grid of squares about 460 m across. I’ll call each square a cell. Each cell has one number per night: its radiance, which is just how much light came up from that square.
Two words I’ll use all the way through:
- A window is a stretch of nights. The festival window is the nights the lights are up (Christmas, in Chicago). The baseline window is a quiet stretch a few weeks earlier with no holiday in it (roughly November 4 to 20 in the US).
- A clear night is a night when the satellite actually saw the ground. Clouds hide the lights and snow bounces extra light back up, so NASA marks every cell on every night with quality flags. Following Román et al., I only keep nights flagged best quality and snow-free (
Mandatory_Quality_Flag == 0andSnow_Flag == 0).
I looked at 16 cities from 2019 to 2024. One thing I deliberately don’t use is the product’s gap-filled layer. It patches a cloudy night by copying from earlier dates, which would smear the baseline into the festival window - the exact two things I’m trying to keep apart.
Why “after divided by before” isn’t enough
The obvious measurement is: average brightness in the festival window, divided by average brightness in the baseline window. If the answer is 1.11, the city was 11% brighter.
For Chicago, the five-year average of that ratio was 1.11. The trouble is how much it jumps around. Its year-to-year scatter (the standard deviation) was 0.22, and one early check on just two nights gave 1.52. So the wobble from one year to the next was twice the size of the thing I was trying to measure.
The wobble comes from things that have nothing to do with holidays: moonlight, snow on the ground, haze and cloud. They brighten or dim the whole city at once.
The trick: compare two kinds of street
Here’s the idea that fixes it. Moonlight and snow hit every street in a city. Christmas lights only go up where people live.
So split each city in two:
- Residential streets, where people decorate. In the jargon this is the treatment group - the group the thing happens to.
- Industrial zones in the same city (factories, ports, airports), where nobody hangs fairy lights. This is the control group - the group it shouldn’t happen to.
Then ask how much more the homes brightened than the factories did. If a full moon makes everything 40% brighter, both groups go up 40% and the difference is zero. Whatever is left over is the part only the homes did.
This has a name: difference-in-differences. You take one difference (after vs. before) for each group, then the difference between those two. It’s a standard tool in economics (chapter 5 of Angrist and Pischke’s Mostly Harmless Econometrics, 2009).
In numbers, the effect is:
(homes after ÷ homes before) ÷ (industry after ÷ industry before) − 1
I decide which cell is “homes” and which is “industry” from OpenStreetMap land use, not from how bright a cell is. Sorting cells by brightness would mean sorting them by the very thing I’m trying to measure.
The placebo test: measure something that should be zero
Before trusting any number from this, I wanted to know if the method could fool me.
A placebo test is the sugar pill of data analysis. You run the exact same calculation on a case where you already know the right answer is “nothing happened”. If the method reports something anyway, the method is broken - and you found out before believing the real result.
My placebo: two ordinary winter stretches with no US holiday in either one, January 10-31 and February 1-28. Homes have no reason to brighten more than factories between January and February, so the answer should be about 0%.
First, I looked at Chicago, for no other reason than why not. The Christmas measurement said homes were +22.8% brighter, in all six winters. Lovely. Then the placebo came back at −18.7%. A test that was supposed to say “nothing” was shouting almost as loudly as the result. Something was wrong with the method.
What was wrong: the two windows were measuring different places
Remember that a cloudy or snowy night doesn’t count. So I had a rule: a cell is only used in a window if it had at least three clear nights in that window. I’ll call that an eligible cell.
The mistake was applying that rule to each window separately. January 2024 was cloudy and snowy over Chicago, and only 4,301 cells were eligible - scattered patches of the city. February was clear, and 31,319 cells were eligible - nearly the whole metro, dim outer suburbs included.
So “January’s homes” and “February’s homes” were not the same homes. January was a small bright patch. February was that patch plus 27,018 more cells, dimmer on the whole. The typical home looked like it got darker, when all that had happened was the comparison quietly moved to a bigger, dimmer set of streets.
The figure lets you switch between the two ways of choosing cells:
4,301 cells
31,319 cells4,301 cellsIncluded in this comparison · north up
February adds 27,018 cells below January’s three-night cutoff. Residential median radiance fell from 55.7 to 28.9, while industrial radiance rose from 53.2 to 60.1.Every eligible January cell also qualified in February. On that common footprint, residential median radiance rose from 55.7 to 82.5 and industrial radiance from 53.2 to 71.1.
Start on Each month’s eligible cells. The teal area is what was measured: small in January, almost everything in February. With those cells, the typical home went from 55.7 to 28.9 (it “halved”) while the typical industrial cell went from 53.2 to 60.1. Put through the formula above, that is (28.9 ÷ 55.7) ÷ (60.1 ÷ 53.2) − 1 = −54.1% for 2024.
Now choose Only cells eligible in both. February is cut down to the same 4,301 cells January had (1,162 of them residential and 573 industrial). The same homes went from 55.7 to 82.5 and the same industrial cells from 53.2 to 71.1, which works out to +10.6%. The sign flipped, just from insisting on the same cells.
Across all six winters, the placebo went from −18.7% to −0.5%. That is what “nothing happened” is supposed to look like.
This rule is called using paired pixels (or a common footprint): a cell only counts if it is eligible in both windows.
Fixing the real measurement
The same bug was inside the Christmas number, so I fixed three things:
- Paired pixels only. Both windows use the exact same cells.
- A 25% coverage floor. If fewer than a quarter of a city’s cells survive in both windows in some year, that year is dropped. A tiny leftover patch isn’t the city.
- Each winter counts once. To put a range on the answer I use a bootstrap: re-draw the six winters at random many times and see how much the answer moves. I re-draw whole winters, not individual cells, because every cell in a city shares the same week’s weather. Thousands of cells that all had the same cloudy week are not thousands of separate pieces of evidence.
With paired pixels, Chicago’s Christmas effect dropped from +22.8% to +16.2%. With the coverage floor and a better-chosen baseline window it settled at +17.0% (95% interval +6.3% to +28.4%, positive in five of six winters).
One placebo can get lucky, so I ran lots
A single placebo landing near zero could be a fluke. So for every city I slide the same kind of comparison across every quiet, clear stretch of the year, with windows the same length and the same gap apart as the real ones. That gives a pile of “nothing happened” answers for that city - its own background noise.
To count as detected, a city’s festival effect has to beat the 95th percentile of its own quiet answers. In plain words: it has to be bigger than 95 out of 100 results you get when there is no festival at all.
Chicago had 24 quiet comparisons. Their middle value was −2.4%, and the 95th percentile was +12.62%. The Christmas effect of +17.0% beat every one of them. The matching p-value (the share of quiet comparisons that scored at least as high as the festival, counting the festival itself so the answer can never be exactly zero) is 1 in 25, or 0.04.
I wrote these pass marks down, and committed them, before running the final version. Otherwise it is far too tempting to nudge the bar after seeing who clears it.
Which cities actually lit up?
Four cities cleared both that test and a separate bar of at least a 10% effect (how much more homes brightened than industrial areas, 2019-2024):
| City | Estimated festival effect |
|---|---|
| Dallas | +22.5% |
| Chicago | +17.0% |
| Detroit | +16.6% |
| Delhi | +11.3% |
Each city is tested on its own festival: Christmas for the US cities, Diwali for Delhi. Atlanta, Mexico City, Riyadh and Shanghai also passed the test, with effects under 10%.
My favourite result is the boring one. Tokyo doesn’t light up its houses for Christmas, so I ran it through the Christmas windows on purpose as a negative control - a real city where the answer should be nothing. It came in at +1.0% (p = 0.48, quiet-window middle value +0.2%). No signal where there shouldn’t be one.
The map opens on Chicago during the 2024 Christmas window. Move the date to November 15 to see the baseline window for the same winter. Explore all cities on Sarkoa.