โ† All projects

COVID-19 Waves and Vaccination

How do pandemic waves evolve, and how would you measure the effect of a vaccine rollout?

Simulated dataHealthcarePythonpandasPlotlySciPy
1,461days of data
5waves detected
2.81% โ†’ 1.91%average fatality rate

The question

Public health teams need to see when waves start, how large they get and whether interventions change severity. I built the full analysis pipeline on four years of daily data.

What I did

Built a daily series from March 2020 to February 2024 covering cases, deaths, hospitalisations, tests and vaccinations.
Detected waves with peak finding on the 7-day average.
Split the timeline at the vaccine start date and compared fatality rates and deaths before and after.
Added testing, positivity, monthly heatmap and cumulative views.

What I found

Five waves were detected, with the largest peaking in December 2021 at about 201,000 daily cases.
The average case fatality rate fell from 2.81% before vaccination to 1.91% after, a 32% drop.
Average daily deaths fell 19% while average daily cases stayed flat, near 34,000 to 35,000.

Charts from the analysis

Daily cases with a 7-day average.
Daily cases with a 7-day average.
Cases against cumulative vaccinations, with fatality rate below.
Cases against cumulative vaccinations, with fatality rate below.
Average daily cases by month and year.
Average daily cases by month and year.

Limits to keep in mind

Simulated data

The data is simulated, and the fall in fatality rate was built into the simulation, so the before and after comparison demonstrates the method and not a real finding. Test positivity also peaks above 100%, which shows the simulated testing series is inconsistent with the case series.

View the code on GitHub โ†—
โ† PreviousHospital Readmission RiskNext โ†’Customer Segmentation with RFM