Skip to main content

Estimating playing strength

Have you ever felt like your chess rating doesn't represent your actual playing strength? Sometimes we want to be able to estimate playing strength based on individual games rather than rating (which changes more slowly).

During the past few months, I've been taking a number of online courses and learning python for data analysis. In one of the courses, the final project allowed me to choose my own dataset. So surprise surprise! I chose something chess related. (Not really surprised, are you?)

When we play games online, getting a computer evaluation is just a few clicks away. And a commonly used statistic is the average centipawn loss, or simply the average deviation from the computer's best move. Many of us tend to think that centipawn loss (CPL) is a good estimate of playing strength. And, of course, it gives some indication, but it's far from a perfect predictor.

Fellow chess/statistics blogger Patrick Coulombe has investigated the correlation between rating and CPL and concluded that the correlation is not very strong. I therefore concluded that other factors need to be taken into consideration when trying to estimate playing strength.

My initial plan was to download all the games played during April from the lichess database, but when I realized that the file was about 160GB, I changed my mind. I chose a smaller dataset, and built my analysis on about 5000 games from the lichess yearly classical arena, played two weeks ago. The advantage of choosing this as a dataset is that all the games have the same time control. Sure, using millions of games would have been fun, but the amount of data would just be too impractical for a normal laptop computer.

A simple plot of rating vs CPL produces a similar result as Patrick found in his analysis. However, the large number of datapoints makes a normal scatterplot difficult to read, so I chose a different kind of plot.

In this plot, the shading indicates the "concentration" of data points. A darker color means more games. The plot has a blob-like shape, which suggests that the correlation between the variables is not very strong. But there is a clear orientation to the plot, and the green line indicates the main relationship between rating and CPL. I was of course tempted to use the slope of this line to try to predict playing strength, and at the end of this post, you can see how that turned out.

Another attempt at understanding the data is to add the opponent's rating to the analysis. In the diagram below, the players' ratings are given on each axis, and the average CPL is indicated by colors. Just a reminder, an average CPL of 300 means that a player, on average, blunders the equivalent of a piece on every move.

As the diagram shows, the red end of the color spectrum is concentrated around the lower rating levels, and the darker shades of blue are mostly found at the higher rating levels. However, there are many red spots scattered around the entire plot, which shows that even strong players can make horrible blunders.

Another statistic that could be a predictor, is the blunder rate. In this case, I have defined a blunder as a move that gives a CPL of 150 (1.5 pawns) or more. I have counted the number of blunders and number of moves, and the blunder rate is simply the average number of blunders per move.

As you can see from the plot, the scale goes up to 0.5, which means that every other move is a blunder. Here, we see a slightly different picture. Strong players are almost exclusively in the blue zone, which indicates blunder rates of 10-20%. Players below 1500 are mostly in the yellow and red parts.

This reminds me of a quote from Garry Kasparov:
Masters blunder three times per game, 
amateurs blunder three times per move
In the final part of my project, I did a multiple regression analysis to see how well the playing strength can be predicted with more variables. I won't go into details here, but the final formula is as follows:
Rating = 1655 - 0.20*CPL -0.45*RatingDiff + 8.55*nmoves -22*nblunders

RatingDiff is the difference in rating between players, nmoves is the number of moves, and nblunders is the number of blunders. This means that 1655 is a baseline and for each move that is played, your estimated strength increases with roughly 8 points, and for each blunder it drops by 22 points.

I tested this model on a number of my own games, and found that it is fairly good (from a statistical point of view).

This diagram below shows how the rating varies in my own games (observed), in the regression estimate and in the prediction based on the green line in the first diagram (see above). The boxes indicate where the majority of games are located.

 

We can see that the regression estimate gives a somewhat higher result compared to my actual ratings, but approximately the same variation. However, the estimates that are based on CPL alone gives quite extreme values, which suggests that it has very poor accuracy.

So the model has an acceptable accuracy, but there is a downside: The unexplained variation is so large that the estimate from one game has an uncertainty of +/- 400 rating points. This makes the estimate quite useless for individual games. A larger sample will improve the precision, but in order to reduce the uncertainty to +/- 50 rating points, you need about 40 games. From a statistical point of view, this is not problematic, but from a practical point of view, this would be rather pointless. Over 40 games, your rating would adjust properly, and you'll have a good estimate of playing strength right there.

So to round off this long and complicated post, I have come to the conclusion that estimating playing strength from game statistics is possible, but not very useful.





Comments

Popular reviews

Judgement and planning

Some books "fly under the radar" and do not get the same attention as the evergreen classics. But sometimes, there is gold in old mines. And I found a little golden nugget while shopping for used books. A book written for amateurs, by (arguably) the best amateur of all time; former world champion Max Euwe. Sounds promising, right? If you like these reviews, please consider supporting my work. Visit my patreon page for details. Become a Patron! What can you expect from this book? In my previous review of Chess Fundamentals , said that few world champions have written books for beginners and intermediate players. Capablanca is, of course, one exception. And another is Max Euwe. Euwe is not the most well-known world champion. He was in his prime in the 1930s and 1940s, most notably in 1935 when he dethroned none other than the great Alexander Alekhine. Although many have suggested that Alekhine only lost because of heavy use of alcohol, beating him is no small feat (rega...

Nunn’s secrets

Let me tell you a secret. There is no such thing as 'the best chess books'. It all depends on the preferences and expectations of the reader and of course the work s/he puts in when working with the book. So just because someone else claims that a certain book belongs in the 'best books of all time' category, it does not necessarily mean that it is a book that you will appreciate. This little intro may have given away the content of this review, but that's ok. Secrets of practical chess is an example of a book that has gotten a lot of praise on a more than one occasion. So let's dig in and see what the fuss is all about. What can you expect from this book? Secrets of practical chess has seemingly been well received in the chess world. Overall, the opinions are very positive. John Watson gave it a very positive review , and Jacob Aagaard has listed it among the top 10 books of the 20th century . It is also mentioned in another list of 'best' books ....

Thoughts on chess improvement

I was recently interviewed by Kevin Scull  for his podcast  Chess Journeys: Tales of Adult Improvement . When I got the request, I started thinking about what I have to contribute with in terms of improvement advice for chess players. I ended up creating a mindmap of it all, and thought I would share it with you along with an elaboration of what it means. Three questions for you In my opinion, there are three main questions that you need to ask yourself in order to find your  path to chess improvement: Why am I doing this? What will I focus on? How will I study? I have tried (and failed) myself, many times. And what I've realized is that you cannot copy other people's plans for improvement; you need to create a personalized plan that is adapted to your goals, your needs and your general life situation. Don't copy other people's improvement plans Start with WHY I've seen a lot of adult players describe their chess goals. Almost all of them are defined in...

Lessons from a legend

What if you could get chess lessons from a former world champion? Would you say yes? This is a question that Kostya Kavutskiy asked in a recent video . I decided to accept that offer, and during the past few weeks, I've spent some quality time with the third world champion, José Capablanca. In his 100 year old book, he outlines some of the most important principles of chess. If you haven't already read this book, maybe you should? Hopefully, this review will help to decide if this book is for you. If you like these reviews, please consider supporting my work. Visit my patreon page for details. Become a Patron!   What can you expect from this book? Several world champions (most of them?) have written books for advanced players. Capablanca is one of the few who have written chess books for beginners and intermediate players. And his book Chess Fundamentals  is a classic introductory book. Many people have recommended it, and I've had it on my reading list for a long time...

My system should be your system?

One of the greates classics of chess literature. That's at least what it says on the cover. But let's not judge a book by the cover. Instead, we could listen to what others have said about this book. In his review of My system , John Watson writes: "We no longer consider many classics to be essential to a chess education, not since the Internet; but if there’s an exception, Nimzowitch’s work is it". These are big words from a big man. Watson is an authority of chess theory, so his evaluation should not be taken too lightly. Although My system has frequently been mentioned among the greatest books of all time, and has been recommended by many players , it has also been the subject of controversy. Of course, when the book was first published (almost 100 years ago), many ideas in the book challenged many of the established principles of chess theory at the time, and other authorities dismissed the ideas. But also to this day, many people are unimpressed with the b...