Executive overview
Australian road fatalities, 1989–2024 · Measure: SUM(NumberFatalities) from FactAccident
Total fatalities by year
Fatalities by crash type
Fatalities by state
Fatalities by year and gender
Share of fatalities by speed limit
Weekly rhythm of fatalities
Which days and speed zones are deadliest?
Day vs night crashes, by day of week
Holiday-period fatalities by year
Share of all fatalities
How holiday crashes differ from the rest of the year
Holiday flags (Christmas Period, Easter Period) come from the ARDD Dec 2024 source files in the project repository and were joined to the dashboard records by matching crash attributes; 99.1% of records matched and the rest are counted as other days. The Easter period is only flagged in the source data from 2006 onwards.
Fatalities by age and gender
Who was killed: road user type
Fatalities by national road type and crash type
State summary
Multiple-vehicle crashes: fatalities by bus involvement
Top 7 rules
Rule strength map
The two headline patterns
A lift above 5 means the combination is linked to a pedestrian death more than five times as often as chance would predict. Rules show association, not cause.
From two spreadsheets to a star schema
Why the grain mattered
Two grains, one key
The crash file holds one row per crash (56,874). The fatalities file holds one row per person killed (51,284). A crash that killed three people is one row in the first file and three in the second, and the two share 19 of their columns. Joining them naively on Crash ID fans the crash attributes out and double-counts every measure.
What I did
Declared the grain as one row per crash and took Number Fatalities from the crash file, which is the only file that carries it. The four columns unique to the fatalities file (road user, gender, age, age group) became DimRoadUser; crash circumstances became the other eight dimensions, so every attribute has exactly one home.
Why it is worth showing
The joining key was the dirty part: hidden characters, duplicate IDs, inconsistent suffixes and mixed-case state codes all had to be normalised before the merge would hold. Python wrote ten CSVs, PostgreSQL COPY'd them in. Getting messy spreadsheets to agree with each other is most of the work in any load, and it is the part a chart never shows.
Full report, SQL and Python notebooks: GitHub repository · dharunsomalingam.com