How ishaan-bhalla/visual_analytics works
This repository is a reproducible area-level Census analysis and interactive visualization project. Its main workflow cleans and joins 2011/2021 data, derives health-change and geographic matches, analyzes socio-economic patterns and health change, then presents linked maps and statistical views for analysts and researchers. The README documents the research questions and capabilities; source excerpts show preparation, analysis, and dashboard behavior. Some dashboard loading and analysis details are unsampled, so those connections are shown only where the excerpts or README support them.
Main entry points: prepare.py Clean and join areas · areas_2011_2021.csv Prepared area dataset · analysis.csv Area analysis results · dashboard.py Linked maps and charts
Components 20
Census and Geography
- Employment census
data/raw/employment.csv - Ethnicity census
data/raw/ethnic_groups.csv - Migration census
data/raw/migration.csv - 2011 health census
data/raw/health.csv - 2021 health census
data/raw/health21.csv - 2011 region lookup
data/geo/lad11_to_region11.csv - 2011 area boundaries
data/geo/lad_dec2011_ew.geojson
Data Preparation
- Clean and join areas
src/prepare.py - Prepared area dataset
data/processed/areas_2011_2021.csv - Preparation log
data/processed/pipeline_log.json
Statistical Analysis
- PCA projections
src/analyse.py - t-SNE projections
src/analyse.py - Socio-economic clusters
src/analyse.py - Bayesian health models
src/analyse.py - Area analysis results
data/processed/analysis.csv - Model and findings summary
results/summary.json
Interactive Results
- Linked maps and charts
src/dashboard.py - Interactive dashboard
docs/index.html - Research findings
README.md
Other components
- Analyst or researcher
Connections 24
- Employment census → Clean and join areas: loads
src/prepare.py - Ethnicity census → Clean and join areas: loads
src/prepare.py - Migration census → Clean and join areas: loads
src/prepare.py - 2011 health census → Clean and join areas: loads
src/prepare.py - 2021 health census → Clean and join areas: loads
src/prepare.py - 2011 region lookup → Clean and join areas: joins lookup
src/prepare.py - 2011 area boundaries → Clean and join areas: checks codes
src/prepare.py - Clean and join areas → Prepared area dataset: writes dataset
src/prepare.py - Clean and join areas → Preparation log: writes log
src/prepare.py - Prepared area dataset → PCA projections: supplies features
src/analyse.py - Prepared area dataset → t-SNE projections: supplies features
src/analyse.py - Prepared area dataset → Socio-economic clusters: supplies features
src/analyse.py - Prepared area dataset → Bayesian health models: supplies health data
src/analyse.py - PCA projections → Area analysis results: adds projections
src/analyse.py - t-SNE projections → Area analysis results: adds projections
src/analyse.py - Socio-economic clusters → Area analysis results: adds labels
src/analyse.py - Bayesian health models → Area analysis results: adds predictions
src/analyse.py - Bayesian health models → Model and findings summary: reports results
src/analyse.py - Analyst or researcher → Linked maps and charts: explores
README.md - Area analysis results → Linked maps and charts: drives views
src/dashboard.py - Model and findings summary → Linked maps and charts: provides findings
- 2011 area boundaries → Linked maps and charts: maps polygons
src/dashboard.py - Linked maps and charts → Interactive dashboard: builds page
src/dashboard.py - Analyst or researcher → Research findings: reads findings
README.md