Predicting the Zakopane 2017 men’s ski jumping competition

[This article was first published on Environmental Science and Data Analytics, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

When I was a young boy with a wild imagination, I used to try my hand at numerous sports ranging from tennis to gaelic footbal to soccer, each with varying degrees of success. Living in the countryside throughout my childhood, a big garden allowed me to construct vivid simulations of soccer championships (crowd and all) in my head as I kicked a football, all too often, off of my mother’s clean windows and my dad’s van. One funny memory stands out from this wonderful period of my life, however, and that is my attempt at a ski jump off of a pile of gravel my dad had delivered to create a new pathway into the garden. Did I have skis? Yes!! Two pieces of thin wood that would be typically used for flooring.

While laughing at my younger self over this activity, I decided that I would try and apply my newly acquired data analysis skills to a competition of this year’s men’s ski jumping world cup. I chose Zakopane as my location and went to work. The competition runs over the weekend beginning the 20th of January and consists of qualifying on the 20th and the main competition on the 22nd. Now I have always followed ski jumping, and have some background knowledge of the sport, but this is a chance to experiment with some data science tricks in order to see just how close I can get to predicting accurate results. Who knows, I may even put a little bet on!

The Analysis

I scraped Zakopane ski jumping results data from the FIS official website stretching back to 2010. The time period covered is 2010-2016. I decided not to go back any further than that as some of the top ski jumpers today were not involved earlier than 2010 and some of the top athletes from pre-2010 are retired today. The 2010-2016 period contains the active jumpers at present.

Any good data analysis begins with a look at the distribution or shape of the data as well as some summary statistics. The histograms below show the distributions of all observed ski jumps and all podium ski jumps between 2010-2016. Note that podium jumps are those which contributed to a top 3 finish in the competition. This visualisation immediately shows us that most of the jumps at Zakopane are around 120 metres while most of the jumps in the podium jumps subset are around 130 metres. Indeed, a closer look using statistical functions confirms that the mean jumps are 120.5 metres and 130.6 metres, respectively.

 

zakopane

Of course, I could go into a lot more detail regarding summary statistics and list metrics such as the variance, standard deviation and interquartile range of the distributions but this blog is primarily for showcasing the data visualisation products and conclusions of my analyses. Therefore, I will move on to the next visualisation.

 

rplot02

 

These plots are just modified versions of the two histograms we just looked at. The main differences are that these are density plots which give the frequency density of each jump class, a density curve is added, and the median and mean are added as vertical lines. The frequency density is calculated by dividing the frequency by the class width. The median is used for the all jumps distribution as it deviates from normality while the mean is appropriate for the podium jumps distribution which has a normal distribution. Again, without delving too deeply into the statistics, a normality test called the Shapiro-Wilk test can be used to assess normality (i.e. a bell-shaped distribution a.k.a. the Gaussian distribution). We can see that the distribution for all jumps is negatively skewed by the presence of some shorter distance jumps.

A little bit of data manipulation and querying was all it took to produce a table of the top jumpers in Zakopane between 2010-2016 based on podium finishes.

screenshot-at-2017-01-17-00-37-50

The Polish native Kamil Stoch leads the way with 4 podium finishes out of 10 competitions. This translates to a probability of 40% that he will once again be on the podium at Zakopane in 2017. Of the rest, I would say that Stefan Kraft and Richard Freitag are the ones to watch. One must be careful to study the current form of the jumpers too as this is another important factor.

A little more data manipulation allowed me to create a more statistically deep table of the top 3 jumpers in Zakopane between 2010-2016. The data suggests that Kamil Stoch, Richard Freitag and Stefan Kraft are the best performers at Zakopane. This table includes variables such as the number of first, second and third places, the probabilities of winning outright and of a podium finish, the mean jump when a podium was achieved, the overall mean, maximum and median jumps as well as number of appearances and podium finishes.

screenshot-at-2017-01-17-01-00-17

Okay. On to the really cool stuff…the predictions! There is an applied predictive modeling technique known as a decision tree which works similar to a game of Guess Who? The machine asks a question which splits the data into lower entropy, or purer, subgroups of data. These models are used by financial organisations, for example, when assessing the credit risk associated with a loan applicant. For this project, I split the ski jumping data 75% training and 25% test in order to build the model and validate it. Here is the decision tree in all its glory.

rplot

These awesome models have the benefit of being easily interpreted which is why they are very useful for a broad range of organisations. The first question that the machine asks is whether the first jump (competitions usually consist of two jumps per athlete) was over 133.5 metres. If so, the probability of the athlete sealing a podium place is almost 100%. If the first jump was less than 133.5 metres, then other conditional questions are posed which the results of direct you to one of the other sub-groups. For example, we see that a first jump of less than 133.5 metres and a second jump of less than 130.5 metres translates to a very low probability of getting onto the podium.

So there we have it. I will be using this model to determine whether each athlete jumping next weekend will have a good chance of being on the podium. I will be back with the results. In conclusion, I will give my predictions for outright winner and podium finishes.

1.) Kamil Stoch

2.) Stefan Kraft

3.) Domen Prevc

Wildcards: Richard Freitag, Daniel Andre Tande and Peter Prevc (if competing)

One last data visualisation

Following on from the brief discussion of the classification tree, this final plot shows the actual data for 2010-2016 and the classification zones as determined by the model. The machine looks to have done a good job! Actual podium finishes tend to occur in the podium prediction space while most of the non-podium jumps occur in the no podium prediction space. Let’s see what happens at Zakopane 2017!

rplot01

 


To leave a comment for the author, please follow the link and comment on their blog: Environmental Science and Data Analytics.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)