A statistical analysis of extreme cyber breaches using Extreme Value Theory (EVT). The project models annual maximum data breach sizes with Generalized Extreme Value (GEV) distributions, comparing stationary and non-stationary specifications to estimate long-term return levels, as well as quantifying uncertainty through bootstrap resampling and Monte Carlo simulation
Large cyber breaches are a rare occurrence, but disproportionately damaging. Traditional statistical methods, which focus on average behavior, tends to underestimate the probability of catastrophic outlier events. This project applies Extreme Value Theory (EVT) to model annual maximum data breaches and answer four questions:
- How large could future extreme data breaches realistically become?
- Has the magnitude of the largest annual breaches increased over time?
- How uncertain are predictions of rare events (e.g. 50- or 100- year breaches)?
- Does a non-stationary model (allowing a trend over time) fit better than a stationary one?
- Source: "World's Biggest Data Breaches and Hacks" (Kaggle)
- Raw size: 419 reported breaches, 2004 - 2022
- Reduction method: Block Maxima - only the largest breach per year is retained, yielding 19 annual maximum observations
- Variables used:
year- calendar year of the breachrecords_lost- number of records exposed
- Data cleaning
- Block Maxima extraction
- Exploratory analysis
- Stationary GEV model
- Non-stationary GEV model
- Model comparison
- AIC
- Likelihood Ratio Test
- Return level estimation
- Uncertainty quantification
- Monte Carlo simulation study
- Annual maximum breach sizes are heavy-tailed
- Future breaches far larger than any observed observation are statistically plausible
- No statistically significant trend was found in annual breach size
- Stationary GEV model was preferred over non-stationary model by both AIC and the likelihood ratio test
- Long-term return level estimates carry substantial uncertainty, driven by limited sample size
- A simulation study confirmed a clear bias-variance trade-off
- Extreme Value Theory (GEV modeling, block maxima)
- Stationary vs. non-stationary model comparison (AIC, likelihood ratio testing)
- Return level estimation and interpretation
- Bootstrap resampling for uncertainty quantification
- Monte Carlo simulation study design
- Statistical computing in R (
extRemes,evd,dplyr,ggplot2) - Critical evaluation of model limitations and data quality
- Clone the repository:
git clone https://github.com/Mancon1/Modeling-Yearly-Maximums-and-Future-Cyber-Risk- Place the dataset (
data_breaches.csv) in the project directory. - Open
Project_work_cyber_risk.Rin RStudio. - Install required packages if necessary (
extRemes,evd,dplyr,ggplot2). - Run the script from top to bottom.
- Måns Conradson
- Jacob Telander