Is it safer to drive around Christmas time? On one hand the weather conditions might be more hazardous: winter increases the likelihood of rain, snow and ice on the roads, people might be making more long-distance trips to go to their friends’ or families’ homes to visit. On the other hand the number of people commuting for work decreases and the roads may conversely be less busy.
Fortunately data.gov.uk maintains data on road accidents, which I have previously mapped here. We can use this same data to see if there are any seasonal patterns in terms of the road accidents which happen.
For this, let’s analyse the data from 2011 to 2015.
We can see that there’s a faint seasonal component to the accidents: the number of accidents dips around Christmas and New Year. To see this more clearly, we can perform a Seasonal Decomposition of Time Series by LOESS, using the stl function, to obtain the trend, seasonal and irregular (noise) components of the time series.