Census & demographics

Census boundaries and tables: joining them, turning counts into rates, carrying margins of error, and comparing years.

A 2010 census tract split into two 2020 tracts, one of which keeps the original code. the same code is not necessarily the same groundtract 0003.012010redrawntract 0003.01tract 0003.03same code,two thirds the peoplenew code,the rest of themA join on the code succeeds, and compares two different pieces of ground across the decade

Census data is two things joined together: a table of counts and a set of boundaries. Both move. Tracts are redrawn every decade to keep their populations in range, codes change without the boundaries changing and boundaries change without the codes changing, and a join on the identifier succeeds in every one of those cases.

The second half of the topic is arithmetic. Counts are additive and almost nothing else is: rates, medians and margins of error do not sum or average into their parents, so a county figure rebuilt from its tracts disagrees with the published one. Margins of error combine by root sum of squares, not by addition, and survey estimates for small areas carry margins large enough to swallow the difference you are mapping.

Below: the concepts cover the geography hierarchy and what each level is for, the how-to guides do the joins and the rate calculations, and the fixes are the totals that will not reconcile.

Learning paths run through this topic too — see the end of this page.

🧭 Start with the concepts

The ideas the how-to guides below assume you already have.

Show every concept in this topic

⚙️ Then do the task

Step-by-step walkthroughs with code you can copy and adapt.

Show every how-to guide in this topic

🔧 When it breaks

The errors this topic produces, with the cause explained rather than just the command.

Show every fix in this topic

Related topics

Subjects that keep coming up alongside this one, most overlap first.

Keep browsing

Census & demographics sits in Analysis. Every topic on the site is listed on the topics index.