Data / Research Methods
Census-Aligned Survey Weighting Engine
A reproducible weighting engine that calibrates household, person, and trip weights against census controls with validation, capping, and audit trails for large travel surveys.
Threat
Manual weighting in spreadsheets does not scale across studies, does not version well, and fails peer review when assumptions are implicit. Large OD surveys need methodology encoded in software.
- HH·P·TRIPLevels
- CENSUSControls
- FULLAudit
- MULTI-STUDYReuse
Inside the build
Approach & deliverables
How the system is put together, and what it hands the people who use it.
Approach
- Python engine implementing raking/calibration with configurable cells for geography, household size, tenure, and trip purpose.
- Automated validation against census marginals with tolerance thresholds and exception reports for extreme weights.
- Versioned inputs and outputs with run metadata (analyst, code hash, control file version) for reproducibility.
- Integration hooks export weighted tables directly into PostGIS analysis and Superset dashboards.
Delivers
- Consistent methodology across multiple large studies.
- Faster iteration when census controls update mid-project.
- Audit-ready documentation for client and peer review.