Show more opening statistics

Discussion of chess software programming and technical issues.

Moderators: hgm, Dann Corbit, Harvey Williamson

kinderchocolate
Posts: 454
Joined: Mon Nov 01, 2010 6:55 am
Full name: Ted Wong

Show more opening statistics

Post by kinderchocolate »

Is there a known way to show statistics for an opening move including the number of games, performance, elo and probability? Winboard book only shows the weight but nothing else. I want more!
User avatar
Ajedrecista
Posts: 1952
Joined: Wed Jul 13, 2011 9:04 pm
Location: Madrid, Spain.

Re: Show more opening statistics.

Post by Ajedrecista »

Hello:
kinderchocolate wrote:Is there a known way to show statistics for an opening move including the number of games, performance, elo and probability? Winboard book only shows the weight but nothing else. I want more!
Probably the following thread is not related with your question. Just in case:

Ranking moves based on empirical information

No solutions were provided that time. I wish you more luck now!

Regards from Spain.

Ajedrecista.
kinderchocolate
Posts: 454
Joined: Mon Nov 01, 2010 6:55 am
Full name: Ted Wong

Re: Show more opening statistics.

Post by kinderchocolate »

Ok, my conclusion is that I will have to come up with my own data structure and algorithm. Thanks....
User avatar
hgm
Posts: 27701
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Show more opening statistics

Post by hgm »

kinderchocolate wrote:Is there a known way to show statistics for an opening move including the number of games, performance, elo and probability? Winboard book only shows the weight but nothing else. I want more!
Polyglot books do not contain such info, so there is no way for WinBoard to show it. Polyglot format is fully 'cooked'; the raw stats are converted to playing probabilities during book building, and only these playing probabilities are stored as weights. (Well, in fact only the ratio of the weights determines the playing probability, so there is one piece of hidden info there: Polyglot would make the weight equal to the number of half-points scored with the move. So the sum of all the weights at least gives you a lower limit on the number of times the move was played. And for large numbers, that score is likely to be close to 50%, so you will have some indication about the total number of games.)
kinderchocolate
Posts: 454
Joined: Mon Nov 01, 2010 6:55 am
Full name: Ted Wong

Re: Show more opening statistics

Post by kinderchocolate »

HGM, what about the name of the opening itself? Do you have any experience?
User avatar
hgm
Posts: 27701
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Show more opening statistics

Post by hgm »

I am not sure what experience you refer to. There are no openings named after me, that is for sure... :wink:

But there are no opening names or ECO codes in Polyglot books. Just position (represented as 8-byte hash key), move (2 bytes), weight (2 bytes) and two 2-byte fiels that can be used for learning (in which case they contain number of times the move was played and number of half-points scored with it). WinBoard displays the learning values in the Edit Book dialog if they are non-zero. But as they are zero in freshly built books, and not many people do learning, they are usually not displayed.

I have some vague plans of making an opening book that would use the learning fields for ECO codes, so WinBoard could use its regular probing routine to retreive ECO codes, and display them somewhere.