How we estimated Oakland city worker residency: the methodology
The scientific and statistical process we used to estimate how many City of Oakland employees actually live in Oakland and peer California cities.
Executive summary
This report explains the step-by-step scientific and statistical process we used to estimate how many City of Oakland employees actually live in Oakland and peer California cities. Because cities are not required to publicize this information (some do so voluntarily), and California state law prevents local governments from forcing employees to live in the cities they serve, most city HR departments do not publish lists of employee ZIP codes.
To bridge this data transparency gap, we used established scientific and statistical methods—the same kinds used by economists and public policy researchers—plus available data from Oakland and other cities to build a reasonably accurate estimate. By combining information in federal databases with verified data from comparable cities (our “model groups”), we corrected the natural errors found in survey data. Ultimately, this statistical modeling estimates that about 32% of Oakland’s city workforce lives in Oakland, with a realistic, mathematically proven range falling between 22% and 42%.
Here is exactly how methodology works, and how we adjusted our models to reflect real-world facts.
1. Statistical triangulation
Since the City of Oakland does not publish lists of its employees’ ZIP codes, we employed a statistical method that analyzed large datasets from the federal government using a method called triangulation—i.e., looking at a problem from multiple angles using different sources to see where the data overlaps.
Person-Based Data: We used the U.S. Census Bureau’s American Community Survey (ACS), filtering for people who marked their job as “local government.”
Jobs-Based Data: We used the Census Bureau’s commuting database (LEHD), which tracks cell phone and tax data to map where people in “public administration” live versus where they work.
By combining these two datasets, we built an initial, rough estimate based on the statistical data they contain.
2. Calibration
An early challenge with our initial Census estimates is that federal data groups all “local government” workers together. If we pull Census data for Oakland, it doesn’t just count City of Oakland employees; it also counts public school teachers, transit workers, and regional utility staff who happen to work inside Oakland boundaries.
Because the Census-only measurement tool is slightly blurry or biased, we employed other data to help calibrate it. To do this, we used a statistical method based on Bayesian principles that compared the initial, blurry data against a “model group” to derive a more exact error rate.
How we did it: A few cities do publish their exact, official residency numbers. San Francisco officially reports a 41.9% residency rate, Los Angeles reports 36.3%, and Alameda 57%.We ran our blurry Census query for these cities to see what the Census estrimates the rate was.
Why we did it: By comparing the Census guess to these cities’ actual numbers, we discovered exactly how “off” the Census data usually is (it typically misses the mark by 3 to 6 percentage points). We then applied that exact same mathematical correction to our Oakland data to fix the blur. This adjustment gave us our reasonably accurate baseline estimate of 32% for Oakland, with a confidence interval (margin of error) of approximately +/-10%.
3. Confidence interval
Because we are using survey data and making statistical adjustments, it is mathematically imprecise to give one single, perfect percentage. All surveys have a margin of error.
To account for this, we used a statistical method that runs thousands of simulated scenarios to calculate a confidence interval. This tells us that while 32% is our absolute best, middle-ground estimate, the true number could realistically sit anywhere between 22% and 42%. When estimating Oakland’s residency rate, we looked at this entire range, knowing the true number is highly likely to fall inside those boundaries.
4. Real-world adjustments
A flat 32% average doesn’t tell the whole story. Different jobs have different lifestyles, shift schedules, and rules. We adjusted the model for different municipal unions based on hard data and operational realities:
Where we have the actual data (overriding the model)
Police Officers (OPOA): We did not have to estimate this at all. Actual Oakland Police Department staffing reports explicitly state that only 8% to 9% of sworn officers live in Oakland. Because the hard, official data exists, we threw out the Census estimate entirely and used the city’s exact numbers.
Where we adjusted for shift schedules (cross-referencing)
Firefighters (IAFF Local 55): The raw Census data overstates the statistically-derived percentage of resident firefighters because of their unique schedules. Firefighters work 48 hours straight, then get 96 hours off. Because they commute only about 10 times a month (instead of 20+ like an office worker), they can easily live in distant, cheaper counties– and many Oakland firefighters do live outside of town.
How we adjusted it: We looked at official data from San Francisco and Los Angeles. In those cities, public safety residency is routinely less than half the rate of the civilian workforce. We applied this known public-safety drop-off to Oakland, safely adjusting the firefighter estimate down to 15% to 20% to match the real-world impact of their shift structure.
Where we adjusted for contract rules
Civilian and Office Workers (SEIU 1021): We adjusted this group’s estimate higher (35% to 48%) because Oakland gives a 5-point bonus on hiring exams to local residents, which statistically increases local hiring for these entry-level and service roles.
Engineers and Management (IFPTE 21): We adjusted this group lower (22% to 35%) because these are highly specialized jobs. For example, the city recruits and employs engineers— a highly specialized and in-demand profession— from all over the Bay Area, meaning many already own homes in other cities before they are hired, have greater means to absorb the expense of longer commutes, are more likely to enjoy work-from-home options, and are less likely to relocate.
5. Adjusting the peer cities
When we applied these statistical methods to other California cities that don’t publish their ZIP code data, we similarly adjusted the estimates to account for the unique math of their local housing markets:
Sacramento (estimated 43%): We adjusted Sacramento’s numbers upward in part because they have a strict proximity rule: emergency workers must live within a 35-air-mile radius of the city.
Fremont (estimated 18%): We adjusted Fremont’s numbers downward using an economic housing metric. Fremont has 1.65 jobs for every single home in the city, a relatively high jobs-to-housing ratio for the region. Because the jobs substantially outnumber the houses, thus creating upward pressures on the housing market in that city, it is a mathematical likelihood that more of its workers commute from out of town.
San Jose (estimated 24%): We adjusted San Jose downward based on the extreme disparity between its local real estate prices and standard municipal salaries, a dynamic that structurally forces city staff into less-expensive housing markets located within commuting distance, such as the Central Valley.
Conclusion
The above-described methodology resulted in a reasonably accurate estimate of city worker residency, with a confidence interval of ±10% . The ideal situation would be for the city of Oakland to voluntarily produce its own concrete data about worker residency, as the cities of Alameda, San Francisco, and Los Angeles have done— perhaps through an independent report produced by the Office of the Oakland City Auditor, which presumably would have access to the city’s personnel data for the purpose.
Even so, the statistical method employed in this analysis produced a reasonably accurate and defensible estimate of city worker residency with a confidence interval of +/-10%. In the absence of official data and reporting from the City of Oakland, and because no other studies of city worker residency yet exist, we assert that this analysis is currently the most authoritative and reasonably accurate estimate available – and further note that its findings are roughly consistent with the known data produced by other cities.
If the City of Oakland produces a report based on actual employee residency data in the future, then we will update and republish this analysis accordingly.
References
U.S. Census Bureau: American Community Survey (ACS) Public Use Microdata. Used to gather person-based data and filter for “Class of Worker.” Available here
U.S. Census Bureau: Longitudinal Employer-Household Dynamics (LEHD). Used to track commute flows for public administration workers. Available here
City of San Francisco: 2023 Workforce Report. Along with concrete data provided by the cities of Alameda and Los Angeles, this provided our “model group” data to calibrate the estimate. Available here
City of Los Angeles: 2022 City Controller Payroll Analysis. This additional data provided the 36.3% anchor data for cross-referencing public safety drops. Available here
City of Alameda: 2020 Housing Affordability and Displacement Report. This additional data provided the 57% anchor data. Available here
Oakland Police Department: Quarterly Staffing Reports. This provided the exact 8-9% numbers for sworn officers, overriding the statistical estimates. Available here
Port of Oakland and SEIU Local 1021: Union Contract (MOU). These provided the local residency hiring points used to adjust civilian models upward. Available here
City of Sacramento: Pre-employment Conditions. This provided the 35-mile emergency worker rule used to adjust our estimate for that city. Available here
Association of Bay Area Governments (ABAG): Jobs-Housing Balance Report. This provided Fremont’s 1.65 jobs-to-housing ratio used to adjust their estimate downward. Available here


