It is currently Thu May 08, 2025 8:41 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
Offline
 Post subject: A histogram of game lengths and other play number based stat
Post #1 Posted: Mon Jul 15, 2013 8:25 am 
Lives in sente

Posts: 946
Liked others: 1
Was liked: 41
Rank: IGS 5kyu
KGS: KoDream
IGS: SmoothOper
Is there anyway to get a histogram of the number of plays per-game maybe in Kombilo, maybe also broken down by opening?

Along these lines, is there a way to get histograms on the play number when certain events, such as corner invasions, occur. And for end game tesuji, how many moves from the end do tesuji, such as monkey jumps, occur.

I am looking for not only the pattern but when it happens, relative to either the start or the end of the game. I don't think resigning should matter so much in this type of analysis.

Top
 Profile  
 
Offline
 Post subject: Re: A histogram of game lengths and other play number based
Post #2 Posted: Tue Jul 16, 2013 8:07 pm 
Lives in sente

Posts: 706
Liked others: 252
Was liked: 251
GD Posts: 846
SmoothOper wrote:
Is there anyway to get a histogram of the number of plays per-game maybe in Kombilo, maybe also broken down by opening?

Along these lines, is there a way to get histograms on the play number when certain events, such as corner invasions, occur. And for end game tesuji, how many moves from the end do tesuji, such as monkey jumps, occur.

I am looking for not only the pattern but when it happens, relative to either the start or the end of the game. I don't think resigning should matter so much in this type of analysis.


The answer to some of these questions is yes if you are willing to write some code. See the scripting documentation.

For example, for your 1st question, I am able to get this kind of data with a simple (though inefficient) script:

Attachment:
gamelengthhistogram.png
gamelengthhistogram.png [ 20.41 KiB | Viewed 3005 times ]


I could easily break that down by opening, but it would require some kind of definition of what you mean by opening. If there is a specific opening you care about I can regenerate.

For example, here is the data restricted to games with black sanrensei vs. white nirensei and the classic Shasaku 1-3-5:

Attachment:
movebyopenings.png
movebyopenings.png [ 24.49 KiB | Viewed 2992 times ]


So those two openings are about as different as can be, but it doesn't really affect game length much.

However, for some of your questions, I don't know if it's very easy or might require you digging into the C++ code of libkombilo. However, the Kombilo author is on L19. You could PM ugoetz and see if he can assist.


This post by snorri was liked by 2 people: rhubarb, wineandgolover
Top
 Profile  
 
Offline
 Post subject: Re: A histogram of game lengths and other play number based
Post #3 Posted: Wed Jul 17, 2013 11:02 am 
Lives in sente

Posts: 946
Liked others: 1
Was liked: 41
Rank: IGS 5kyu
KGS: KoDream
IGS: SmoothOper
snorri wrote:
SmoothOper wrote:
Is there anyway to get a histogram of the number of plays per-game maybe in Kombilo, maybe also broken down by opening?

Along these lines, is there a way to get histograms on the play number when certain events, such as corner invasions, occur. And for end game tesuji, how many moves from the end do tesuji, such as monkey jumps, occur.

I am looking for not only the pattern but when it happens, relative to either the start or the end of the game. I don't think resigning should matter so much in this type of analysis.


The answer to some of these questions is yes if you are willing to write some code. See the scripting documentation.

For example, for your 1st question, I am able to get this kind of data with a simple (though inefficient) script:

Attachment:
gamelengthhistogram.png


I could easily break that down by opening, but it would require some kind of definition of what you mean by opening. If there is a specific opening you care about I can regenerate.

For example, here is the data restricted to games with black sanrensei vs. white nirensei and the classic Shasaku 1-3-5:

Attachment:
movebyopenings.png


So those two openings are about as different as can be, but it doesn't really affect game length much.

However, for some of your questions, I don't know if it's very easy or might require you digging into the C++ code of libkombilo. However, the Kombilo author is on L19. You could PM ugoetz and see if he can assist.


Thanks snorri, that is really cool! Do you mind if I ask about your script? I am good at C++, but my python is rudimentary.

So there is sort of a two peak distribution in game length. I wonder what accounts for that, early resigns? It seems Shusaku has somewhat shorter games overall, especially if you consider the number of games in the 140 move range and in the 280 move range, it doesn't look like the histograms are standardized though.

Top
 Profile  
 
Offline
 Post subject: Re: A histogram of game lengths and other play number based
Post #4 Posted: Sun Jul 21, 2013 4:46 pm 
Dies with sente

Posts: 124
Liked others: 5
Was liked: 13
Rank: IGS 1k
Could you make a plot using only the games that reached the scoring phase? Excluding the game that ended by resign or were left unfinished. Thanks.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group