{"word_count": 518, "character_count": 4204}
Recently, there have been a lot of airplane accidents.July, 17th 2014, Hrabove, Ukraine, Malaysia Airlines, Boeing 777, fatalities 298 (/298)July, 23rd 2014, Magong, Taiwan, TransAsia Airways, ATR 72-500, fatalities 47 (/58)July, 24th 2014, Aguelhok, Mali, Air Algerie, Mc Donnell Douglas MD-83, fatalities 116 (/116)It is simple to find a lot of datasets about airplane crashes. For instance on http://ntsb.gov/aviationquery. The dataset is nice, with a lot of information,&#62; planes=read.table(+ "cbad3ca6-6b8f-4c98-9ee0-601faAviationData.txt",+ sep="|",header=TRUE)for instance the exact location of the crashes,&#62; library(maps)&#62; map("world", interior = FALSE)&#62; points(planes$Longitude,planes$Latitude,+ pch=19,cex=planes$Total.Fatal.Injuries/50,+ col="red")But I could not find recent major accidents on that (supposed to be updated) dataset.&#62; X=as.Date(as.character(planes$Event.Date),+ "%m/%d/%Y")&#62; Y=planes$Total.Fatal.Injuries&#62; plot(X,Y,type="h")It looks like it is an american dataset, so maybe domestic flights in some countries are not in this dataset?Let us try another one, such as https://opendata.socrata.com/&#62; planes=read.table(+ "Crashes_and_Fatalities_Since_1908-b.csv",+ sep=",",header=TRUE)&#62; X=as.Date(as.character(planes$Date),"%m/%d/%Y")&#62; Y=planes$Fatalities&#62; plot(X,Y,type="h")It is not an updated dataset, but for the purpose of studying the process of airplane accident, it should be just fine. In the recent years, it seems like a stationary process. If we focus on the past 35 years, we have&#62; subplanes=planes[X&#62;as.Date("01/01/1980",+ "%m/%d/%Y"),]&#62; X=as.Date(as.character(subplanes$Date),+ "%m/%d/%Y")&#62; Y=subplanes$Fatalities&#62; plot(X,Y,type="h")Let us study the process of accident arrival. I will keep only airplane accidents with - say - 10 fatalities, or more (it is purely arbitrary, but we need some threshold here).&#62; X=X[!is.na(Y)]&#62; Y=Y[!is.na(Y)]&#62; T=X[Y&#62;10]In actuarial science, the standard process we use to model accidents is the Poisson process. Meaning that the time between two (consecutive) accidents is a random variable with an exponential distribution (further, those random variables are independent). If we look at the cumulative distribution function, we get&#62; W=as.numeric(diff(T))&#62; mean(W)[1] 12.66942&#62; plot(ecdf(W))&#62; u=0:100&#62; lines(u,pexp(u,1/mean(W)),col="red",lwd=2)and the histogram is&#62; hist(W,breaks=0:100,probability=TRUE)&#62; lines(u,dexp(u,1/mean(W)),col="red",lwd=2)The red line is the exponential distribution, with the same mean. We can observe that we have too many zero's here (i.e. accidents on the same day). If we remove them, it is slightly better,&#62; Tu=unique(T)&#62; W=as.numeric(diff(Tu))&#62; mean(W)[1] 13.2974&#62; hist(W,breaks=0:100,probability=TRUE)&#62; lines(u,dexp(u,1/mean(W)),col="red",lwd=2)(but to be honest, I have no real motivation to remove those zeros... it is possible to have two airplane crashes on the same day - at different locations, i.e. not necessarily collisions). An alternative is to consider only 'major' accidents, with more than 40 casualties.&#62; T=X[Y&#62;40]&#62; W=diff(T)Since we have exponentially distributed inter-arrival duration, and the assumption of independence between duration seems valid&#62; acf(W)we will consider here that an homogeneous Poisson process is a valid model. Above 40 fatalities, the average time between two major accidents is a bit more than a month,&#62; W=as.numeric(diff(T))&#62; mean(W)[1] 36.22973so the probability to have (at least) 3 accidents within 8 days (if we use the proportionality property of the Poisson process, i.e. the number of catastrophes between times  and  is a Poisson variable ) is&#62; 1-ppois(2,8/mean(W))[1] 0.001521955i.e. a bit more than 1.5 over 1000. Over 8 years, if we consider some blocks of 8 days, what could be the probability that such a cluster of crashed does not occur? The probability not to have 3 crashes, over 365 blocks of 8 days is&#62; p=1-ppois(2,8/mean(W))&#62; (1-p)^365[1] 0.5735347meaning that over 8 years, there are more than 40% chance to have such a cluster. I think we might call that a coincidence...