Friday, 25 January 2013

Modelling tennis skills on serve and return with Glicko 2 pairwise comparison model

This document presents the Glicko 2 1 pairwise comparison method for estimating skills of tennis players, both on serve and return. It starts with review of existing literature on modelling tennis skills. Next, it gives an overview on Glicko2 Tennis model, followed by an example of Scala code for calculating skills of tennis players. Later on, it demonstrates three examples of practical applications for tennis skills. The first one, is a study on historical skills of Roger Federer and Novak Djokovic. The second case, is about calculating probability of winning a point on serve and return at the beginning of a tennis match. The last example, illustrates how to predict outcomes of tennis matches using skills of tennis players on serve and return. Finally, Glicko2 is discussed in a context of potential improvements in modelling skills in tennis.

Read full article:

Friday, 18 January 2013

Plotting Gaussians, including univariate, multivariate and linear models

While working on Bayesian Networks in a continuous space, I'm plotting lots of Gaussian distributions representing prior, likelihood and posterior functions.  At first glance, it appeared quite simple to draw those functions, but in the end, it took me good amount of time to figure out how to do it and what tools should I use for this task. I documented it here: