Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

When your memory goes, forget it!


interests / rec.games.backgammon / Re: Simplistic cube heuristics, Markov chains and undefined equity

SubjectAuthor
* Simplistic cube heuristics, Markov chains and undefined equityAxel Reichert
`* Re: Simplistic cube heuristics, Markov chains and undefined equityTimothy Chow
 `* Re: Simplistic cube heuristics, Markov chains and undefined equityAxel Reichert
  `* Re: Simplistic cube heuristics, Markov chains and undefined equityTimothy Chow
   +- Re: Simplistic cube heuristics, Markov chains and undefined equityMK
   `* Re: Simplistic cube heuristics, Markov chains and undefined equityAxel Reichert
    +* Re: Simplistic cube heuristics, Markov chains and undefined equityTimothy Chow
    |`* Re: Simplistic cube heuristics, Markov chains and undefined equityAxel Reichert
    | `* Re: Simplistic cube heuristics, Markov chains and undefined equityTimothy Chow
    |  `* Re: Simplistic cube heuristics, Markov chains and undefined equityAxel Reichert
    |   +* Re: Simplistic cube heuristics, Markov chains and undefined equityMK
    |   |`* Re: Simplistic cube heuristics, Markov chains and undefined equityAxel Reichert
    |   | `* Re: Simplistic cube heuristics, Markov chains and undefined equityMK
    |   |  `* Re: Simplistic cube heuristics, Markov chains and undefined equityAxel Reichert
    |   |   `* Re: Simplistic cube heuristics, Markov chains and undefined equityMK
    |   |    `* Re: Simplistic cube heuristics, Markov chains and undefined equityAxel Reichert
    |   |     `- Re: Simplistic cube heuristics, Markov chains and undefined equityMK
    |   `* Re: Simplistic cube heuristics, Markov chains and undefined equityTimothy Chow
    |    `* Re: Simplistic cube heuristics, Markov chains and undefined equityAxel Reichert
    |     `* Re: Simplistic cube heuristics, Markov chains and undefined equityTimothy Chow
    |      `* Re: Simplistic cube heuristics, Markov chains and undefined equityAxel Reichert
    |       `* Re: Simplistic cube heuristics, Markov chains and undefined equityTimothy Chow
    |        `- Re: Simplistic cube heuristics, Markov chains and undefined equityAxel Reichert
    `* Re: Simplistic cube heuristics, Markov chains and undefined equityPhilippe Michel
     `- Re: Simplistic cube heuristics, Markov chains and undefined equityAxel Reichert

1
Simplistic cube heuristics, Markov chains and undefined equity

<m21r3veohh.fsf@axel-reichert.de>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7389&group=rec.games.backgammon#7389

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mai...@axel-reichert.de (Axel Reichert)
Newsgroups: rec.games.backgammon
Subject: Simplistic cube heuristics, Markov chains and undefined equity
Date: Thu, 04 Nov 2021 19:59:22 +0100
Organization: A noiseless patient Spider
Lines: 111
Message-ID: <m21r3veohh.fsf@axel-reichert.de>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="37222425a7a351581a14696c488c5ca2";
logging-data="22704"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/mtC7OgMxudAhyXxRy9GLvuH0vZTu8MPs="
Cancel-Lock: sha1:zglPci6UZIvc1aOXN9zBevdhmuU=
sha1:Ctd1F/PVP5DM8L3q67QM7itGnBc=
 by: Axel Reichert - Thu, 4 Nov 2021 18:59 UTC

Hello,

after my (mostly unsuccessful) tries with the "Murat Mutant" cubing
strategy (an outcome which, of course, I expected) some questions were
raised. I will try a thought experiment for explanation.

Let's start without Jacoby, Beavers, Gammons, and Backgammons. In a
situation with the cube alive, the take point is 20 %, something every
beginner gets taught. Many beginners do not understand that they should
"double in", rather than wait until they can double the opponent out.

1. Imagine two bots with "Expert" checker play, but a simplistic cube
strategy as follows: Double above GWC of 0.80, take above GWC of
0.20. Pitted against each other, no double will be taken and all
games result in 1 point.

2. As 1., but now double above GWC of 0.79. A few "double, take"
decisions will be the result.

3. As 2., but now double above GWC of 0.5. Lots of "double, take" and
"redouble, take" cube decisions will be the outcome.

4. As 3., but now with Beavers and Raccoons allowed. The cube will now
be raised to the sky. One could say that it is no doubling cube any
more, but rather a "times 8" cube, since most doubles will result in
immediate Beavers and Raccoons.

5. As 4., but now one side does "reasonable" doubling according to the
best bots' assessment. This is essentially the setup for my "Murat
Mutant" experiments. It boils down to a "times 8" cube for the mutant
(since it will double prematurely, gets beavered and will raccoon)
while the reasonable bot still has the standard "times 2" cube.

My Null hypothesis was that this strategy has an expected net score of
zero against GNU Backgammon. However, while after 1000 games the
results were close to allowing me to reject this hypothesis,
continuing the session did not result in the mutant leaving the 2
sigma confidence interval. In fact, it looked ever more unlikely that
it would, because due to the extremely high variance the confidence
interval was blown up beyond all recognition, see the results below:

Histogram after 3000 games

| Frequency | Points |
|-----------+--------|
| 152 | 1 |
| 453 | 2 |
| 283 | 4 |
| 10 | 6 |
| 1105 | 8 |
| 4 | 12 |
| 632 | 16 |
| 17 | 24 |
| 199 | 32 |
| 3 | 48 |
| 36 | 64 |
| 3 | 96 |
| 63 | 128 |
| 24 | 256 |
| 1 | 384 |
| 6 | 512 |
| 5 | 1024 |
| 1 | 2048 |
| 3 | 4096 |

Average: 2.18933
Variance: 21576.6
Maximum allowed lead: 16091
Actual lead: 6568

So the Jury was still out.

Now, since the cube got very high indeed (around 100 of the 3000 games
resulted in more than 128 points, and I even got more than 1000 points
each in 9 games), this reminded me on the famous "eternal redouble"
position, see:

https://bkgm.com/rgb/rgb.cgi?view+366

After reading "Under-doubling dice",

https://bkgm.com/rgb/rgb.cgi?view+429

as well, I thought that maybe scenarios 4, 5 (and even 3) jack up the
cube so quickly that we suffer from the problem of not having equities
any more and get to a Peterburg Paradoxon.

I think that these scenarios could be analyzed using Markov chains,
with states setup similar to what Gary Wong described in

https://bkgm.com/rgb/rgb.cgi?view+674

Unfortunately I am not familiar enough with Markov chains (I tried to
kind of "merge" the information from "Under-doubling dice" and Gary's
post, but could wrap my head around the asymmetric doubling strategies
and I am neither sure what states/transitions would be needed in
total.

The question I would really like to answer is: How can a money session
be protected against "abuse" by maniac gambling/doubling strategies to
prevent a Peterburg Paradoxon from occurring? Is it sufficient to just
eliminate Beavers? Or does the cube need to be capped (say at 64,
which would be the most natural solution)?

If anyone could assist with the states for the Markov chain and the
asymmetry of the doubling behavior, I would be very happy to
provide/generate more data from my "mutant" experiments.

As usual, any thoughts most welcome!

Axel

Re: Simplistic cube heuristics, Markov chains and undefined equity

<sm3drq$rjj$1@dont-email.me>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7400&group=rec.games.backgammon#7400

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tchow12...@yahoo.com (Timothy Chow)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Fri, 5 Nov 2021 10:07:52 -0400
Organization: A noiseless patient Spider
Lines: 125
Message-ID: <sm3drq$rjj$1@dont-email.me>
References: <m21r3veohh.fsf@axel-reichert.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 5 Nov 2021 14:07:54 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="9a7166a7a7d24dda10fd62dee511e2c2";
logging-data="28275"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+M6eSVXuT33Au50AkcXEYIw5xb9Dbn01A="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:VVsdOmQNIMkWrWZL4INlQi2pmEE=
In-Reply-To: <m21r3veohh.fsf@axel-reichert.de>
Content-Language: en-US
 by: Timothy Chow - Fri, 5 Nov 2021 14:07 UTC

On 11/4/2021 2:59 PM, Axel Reichert wrote:
> My Null hypothesis was that this strategy has an expected net score of
> zero against GNU Backgammon. However, while after 1000 games the
> results were close to allowing me to reject this hypothesis,
> continuing the session did not result in the mutant leaving the 2
> sigma confidence interval.

I'm not sure exactly what you're doing, but it doesn't sound
statistically correct to me. Simply formulating a null hypothesis
that the strategy has an expected net score of zero doesn't allow
you to calculate the probability of observing what you observe
since you haven't specified anything about the probability
distribution.

The kind of thing you need here is a nonparametric test. For
example, the Mann-Whitney U test tests the null hypothesis that,
for randomly selected values X and Y from two populations, the
probability of X being greater than Y is equal to the probability
of Y being greater than X. No assumption is needed about the
shape of the probability distributions of X and Y, and you don't
calculate sample variances or anything like that.

Unfortunately, I don't think you want the Mann-Whitney test here,
because one can certainly imagine a skewed distribution that has
zero mean but not zero median.

As I said in my previous message, I don't think that you should be
thinking in terms of hypothesis testing here. What you're engaged
in here is nonparametric estimation: there's an unknown probability
distribution and you're trying to figure out something about it by
sampling from it. It's perfectly reasonable to calculate the sample
variance to get some sense of what's going on, but you should not be
using terminology such as "95% confidence interval" because that does
not make sense here.

> Histogram after 3000 games
>
> | Frequency | Points |
> |-----------+--------|
> | 152 | 1 |
> | 453 | 2 |
> | 283 | 4 |
> | 10 | 6 |
> | 1105 | 8 |
> | 4 | 12 |
> | 632 | 16 |
> | 17 | 24 |
> | 199 | 32 |
> | 3 | 48 |
> | 36 | 64 |
> | 3 | 96 |
> | 63 | 128 |
> | 24 | 256 |
> | 1 | 384 |
> | 6 | 512 |
> | 5 | 1024 |
> | 1 | 2048 |
> | 3 | 4096 |
>
> Average: 2.18933
> Variance: 21576.6
> Maximum allowed lead: 16091
> Actual lead: 6568
>
> So the Jury was still out.
>
> Now, since the cube got very high indeed (around 100 of the 3000 games
> resulted in more than 128 points, and I even got more than 1000 points
> each in 9 games), this reminded me on the famous "eternal redouble"
> position, see:
>
> https://bkgm.com/rgb/rgb.cgi?view+366

Yes. You're now thinking along similar lines to what I was thinking in
the "Expectation maximization versus Kelly criterion" thread. If one
wants to try to argue that "maximizing equity" a la GNU isn't the "best"
thing to do, then it is natural to consider situations where the cube
value increases without limit.

Your histogram is very interesting. I agree with you that the behavior
with the high cube values indicates that your histogram hasn't yet
"converged." If you have the patience, I would encourage you to keep
collecting more statistics to see if you can get the frequencies of
the high cube values to "settle down." That's where all the interesting
things are happening. Also I think that what you're doing here is new,
and could eventually lead to a publication in a backgammon magazine that
might attract considerable attention if your data are compelling enough.

> After reading "Under-doubling dice",
>
> https://bkgm.com/rgb/rgb.cgi?view+429
>
> as well, I thought that maybe scenarios 4, 5 (and even 3) jack up the
> cube so quickly that we suffer from the problem of not having equities
> any more and get to a Peterburg Paradoxon.
>
> I think that these scenarios could be analyzed using Markov chains,

I'd suggest forgetting about the mathematics of Markov chains, at least
at first, and focus on trying to making precise the phenomena that you
think you're observing. Start by writing down a verbal narrative that
describes how the cube gets higher and higher, and try to make that
narrative as precise as you can. So instead of just saying "lots of
double/take and redouble/take cube decisions," try to quantify it. How
often do you think GNU will offer a redouble in the course of a game?
How often does the mutant offer a redouble? Try to write down
some specific probabilities that lead to non-negligible probabilities
that the cube gets up to 2^n. If you develop a plausible story then
you can worry later about formalizing it with Markov chains.

> The question I would really like to answer is: How can a money session
> be protected against "abuse" by maniac gambling/doubling strategies to
> prevent a Peterburg Paradoxon from occurring? Is it sufficient to just
> eliminate Beavers? Or does the cube need to be capped (say at 64,
> which would be the most natural solution)?

I don't know why one would want to protect against such "abuse." The
only reason I can see is if you think someone is jacking up the cube but
isn't willing to cough up the money if he or she loses. But if you have
someone like that in your chouette then you have a problem that simple
rule changes aren't going to fix.

---
Tim Chow

Re: Simplistic cube heuristics, Markov chains and undefined equity

<m2v9164iyt.fsf@axel-reichert.de>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7401&group=rec.games.backgammon#7401

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mai...@axel-reichert.de (Axel Reichert)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Fri, 05 Nov 2021 18:20:58 +0100
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <m2v9164iyt.fsf@axel-reichert.de>
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="6266c4f68b4b9af1b4e5bf39684ae86f";
logging-data="19314"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9nDq/vnvQtFFPVL1/Z3S1mM5XxBI/UJ4="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin)
Cancel-Lock: sha1:yNVSJwsfcXqGsm9qh1HtjYoFmW0=
sha1:0YI0m3HnQ1eRvwt/T+ks41AZgZw=
 by: Axel Reichert - Fri, 5 Nov 2021 17:20 UTC

Timothy Chow <tchow12000@yahoo.com> writes:

> you haven't specified anything about the probability distribution

[...]

> there's an unknown probability distribution and you're trying to
> figure out something about it by sampling

O. K., thanks for explaining, I think I got your point.

> keep collecting more statistics to see if you can get the frequencies
> of the high cube values to "settle down."

I intended to do so, but there is a small problem: GNU Backgammon does
not allow a cube value higher than 4096. And depending on the mutant
strategy this will be reached occasionally (more easily with raccoons,
obviously).

> I'd suggest forgetting about the mathematics of Markov chains, at
> least at first

I had the idea of pursuing this path because it might avoid the capped
cube: Neither the mutant nor GNU Backgammon care about the absolute
value of the cube when redoubling/beavering/raccooning. So if I get a
rough estimate about how likely transitions from "mutant holds the cube
at x" to "gnubg holds the cube at 8x" are, I could work around the 4096
limit.

> How often do you think GNU will offer a redouble in the course of a
> game? How often does the mutant offer a redouble?

Perhaps I could get good quality results by forbidding beavers and later
adjust the histogram by assuming that most doubles of the mutant result
in raccoons.

[Preventing a Peterburg Paradoxon]

> I don't know why one would want to protect against such "abuse."

To avoid both accusations of gambling and attraction of gamblers.

> But if you have someone like that in your chouette then you have a
> problem that simple rule changes aren't going to fix.

That's of course right. (-:

Thanks for your comments!

Axel

Re: Simplistic cube heuristics, Markov chains and undefined equity

<sm4lii$gto$1@dont-email.me>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7405&group=rec.games.backgammon#7405

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tchow12...@yahoo.com (Timothy Chow)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Fri, 5 Nov 2021 21:25:36 -0400
Organization: A noiseless patient Spider
Lines: 49
Message-ID: <sm4lii$gto$1@dont-email.me>
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 6 Nov 2021 01:25:38 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="a9b7e3b3720a11a0db14331844b1bef8";
logging-data="17336"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jVRSs2o+QqwWX3zS7uVgqieBVEGoINI8="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:qd7BOk41YsCYDX6F+6AAlxq5Yx0=
In-Reply-To: <m2v9164iyt.fsf@axel-reichert.de>
Content-Language: en-US
 by: Timothy Chow - Sat, 6 Nov 2021 01:25 UTC

On 11/5/2021 1:20 PM, Axel Reichert wrote:
> Timothy Chow <tchow12000@yahoo.com> writes:
>> keep collecting more statistics to see if you can get the frequencies
>> of the high cube values to "settle down."
>
> I intended to do so, but there is a small problem: GNU Backgammon does
> not allow a cube value higher than 4096. And depending on the mutant
> strategy this will be reached occasionally (more easily with raccoons,
> obviously).

Ah, yes, that would be a problem. How hard is it to modify the code
to raise this ceiling?

>> I'd suggest forgetting about the mathematics of Markov chains, at
>> least at first
>
> I had the idea of pursuing this path because it might avoid the capped
> cube: Neither the mutant nor GNU Backgammon care about the absolute
> value of the cube when redoubling/beavering/raccooning. So if I get a
> rough estimate about how likely transitions from "mutant holds the cube
> at x" to "gnubg holds the cube at 8x" are, I could work around the 4096
> limit.

Yes, I understand. But my point is that if you aren't very fluent with
the mathematics of Markov chains, don't let that stop you. The crux of
the matter is spelling out in detail some scenario where the cube gets
very high. Figuring out this part doesn't require technical knowledge
so much as clear thinking. Once you get this far, the Markov chain math
should be relatively straightforward.

I will say, by the way, that my intuition is that even though 4096 seems
high, I doubt that the strategy you outlined will run into St.
Petersburg problems. After all, one side is standard GNU, so it's
probably not going to be jacking up the cube all that much. The
exception, though, might be superbackgames that GNU completely
misunderstands. Have you manually examined the 4096-cube games to
see if the positions are so wild that standard GNU has no idea what
is going on, and is beavering when it's losing?

>> I don't know why one would want to protect against such "abuse."
>
> To avoid both accusations of gambling and attraction of gamblers.

Oh, well, in that case, don't play money games. Just play matches.

---
Tim Chow

Re: Simplistic cube heuristics, Markov chains and undefined equity

<1680e853-84a8-439f-8b29-a25569177066n@googlegroups.com>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7412&group=rec.games.backgammon#7412

  copy link   Newsgroups: rec.games.backgammon
X-Received: by 2002:a05:620a:103c:: with SMTP id a28mr35254591qkk.271.1636184228524;
Sat, 06 Nov 2021 00:37:08 -0700 (PDT)
X-Received: by 2002:a4a:4085:: with SMTP id n127mr12117205ooa.8.1636184228320;
Sat, 06 Nov 2021 00:37:08 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: rec.games.backgammon
Date: Sat, 6 Nov 2021 00:37:08 -0700 (PDT)
In-Reply-To: <sm4lii$gto$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=172.58.44.106; posting-account=ZoOzZggAAADKiZinXeenHF1SgY613agP
NNTP-Posting-Host: 172.58.44.106
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1680e853-84a8-439f-8b29-a25569177066n@googlegroups.com>
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
From: mur...@compuplus.net (MK)
Injection-Date: Sat, 06 Nov 2021 07:37:08 +0000
Content-Type: text/plain; charset="UTF-8"
 by: MK - Sat, 6 Nov 2021 07:37 UTC

On November 5, 2021 at 7:25:40 PM UTC-6, Tim Chow wrote:

> On 11/5/2021 1:20 PM, Axel Reichert wrote:

>> To avoid both accusations of gambling and attraction of gamblers.

> Oh, well, in that case, don't play money games. Just play matches.

Indeed and, in fact, just play "cubeless!" matches at that... :))

I won't dare participate in your discussion yet since I don't understand
it all but I'm trying as best as I can.

On the other hand, I think you're trying to one-up the other uselessly
with increasingly complicated math arguments about a pink elephant.

It reminded of something, if you have 20 seconds to read. In 1980, I
was hired as a junior programmer before even I finished my first
semester taking English-101, Basic, Fortran and "computer math". I
was 6 months into developing an auto parts store software on a
Commodore PET. A guy nicknamed "genius" in that small company
had figured how to wire an IBM Selectric typewriter to a serial port.
It was the best ("LQ = Letter Quality") printing solution at the time.

The same guy had also devised a serial port dongle to copy protect
the software we would sell, also an impressive invention at the time.
They were going to patent it and market jointly with Commodore.

One they, while they were having a joint executive meeting about it,
I asked if they would attach one to a PET to see if I could break it.
They were polite enough to not laugh and only smile but they obliged.
In about 45 minutes I knocked on their door to give them the shocking
news. :)

They had invented and improved on all that overly technical complicated
stuff but were ignorant about a simple little feature of the PET operating
system and basic language. Two nifty functions called "peek" and "poke"
to directly read and write to the memory. After peeking and poking around
for a few minutes, I had located and defeated their encryption function. :)

Anyway, sorry for reminiscing publicly but I feel that this is what is going
on with the cube skill thing. You all are soaring so high that you can't
see the simplest logical argument that defeats all of your elaborate ones.

But please keep at it, though. It's much much more interesting to read
than your stupid position discussions.

MK

Re: Simplistic cube heuristics, Markov chains and undefined equity

<m2h7cp4m2o.fsf@axel-reichert.de>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7417&group=rec.games.backgammon#7417

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mai...@axel-reichert.de (Axel Reichert)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Sat, 06 Nov 2021 11:26:07 +0100
Organization: A noiseless patient Spider
Lines: 58
Message-ID: <m2h7cp4m2o.fsf@axel-reichert.de>
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="206327f29a0580ac1283eb9db0cf8b0e";
logging-data="22416"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/asUyRR0b4okmq8krbGVrLOFwfrTTVpgU="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin)
Cancel-Lock: sha1:ot3MUBjt/8da2LWdQmc/6Nr3BZY=
sha1:i821L+AzP39GPwLaPDJb+n0nquM=
 by: Axel Reichert - Sat, 6 Nov 2021 10:26 UTC

Timothy Chow <tchow12000@yahoo.com> writes:

> On 11/5/2021 1:20 PM, Axel Reichert wrote:
>>
>> I intended to do so, but there is a small problem: GNU Backgammon does
>> not allow a cube value higher than 4096. And depending on the mutant
>> strategy this will be reached occasionally (more easily with raccoons,
>> obviously).
>
> Ah, yes, that would be a problem. How hard is it to modify the code
> to raise this ceiling?

I don't write C, but tried to read it. Maybe Philippe Michel can comment
whether a re-compile with

#define MAX_CUBE ( 1 << 15 )

instead of 12 in backgammon.h might work (there are only 4 bits in the
match-id for log2 of the cube value, so going still higher would likely
be too large a surgery). This would give leeway for another raccoon,
perhaps sufficient to get a "converged" histogram.

> But my point is that if you aren't very fluent with the mathematics of
> Markov chains, don't let that stop you. The crux of the matter is
> spelling out in detail some scenario where the cube gets very high.
> Figuring out this part doesn't require technical knowledge so much as
> clear thinking. Once you get this far, the Markov chain math should
> be relatively straightforward.

Well, I have already gathered some states and transitions between
them. It is not as simple as in Gary's post that I linked previously,
though.

> I doubt that the strategy you outlined will run into St. Petersburg
> problems. After all, one side is standard GNU, so it's probably not
> going to be jacking up the cube all that much.

Yes, GNU Backgammon has a "times 2" cube (it will almost never be
beavered when playing against its own take/pass decisions), but if its
opponent essentially wields a "times 8" cube and a symmetric "times 3"
cube already gives rise to a Petersburg Paradoxon, then I am not so
sure.

> Have you manually examined the 4096-cube games to see if the positions
> are so wild that standard GNU has no idea what is going on, and is
> beavering when it's losing?

No, and by now the session files are gone, but thanks for the idea, I
will look out for this in my current tries (the runs continue ...)

> Oh, well, in that case, don't play money games. Just play matches.

Which is possible, but from a logistics point of view less flexible in a
chouette setting.

Best regards

Axel

Re: Simplistic cube heuristics, Markov chains and undefined equity

<sm5plt$iel$1@dont-email.me>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7418&group=rec.games.backgammon#7418

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tchow12...@yahoo.com (Timothy Chow)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Sat, 6 Nov 2021 07:41:46 -0400
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <sm5plt$iel$1@dont-email.me>
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 6 Nov 2021 11:41:49 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="a9b7e3b3720a11a0db14331844b1bef8";
logging-data="18901"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19yD+Sy26jAvAdNWmDqwQM7+xamzHIAIIE="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:s9uhJ+QshVifFZvGNh/uI3hEkIg=
In-Reply-To: <m2h7cp4m2o.fsf@axel-reichert.de>
Content-Language: en-US
 by: Timothy Chow - Sat, 6 Nov 2021 11:41 UTC

On 11/6/2021 6:26 AM, Axel Reichert wrote:
> Timothy Chow <tchow12000@yahoo.com> writes:
>> I doubt that the strategy you outlined will run into St. Petersburg
>> problems. After all, one side is standard GNU, so it's probably not
>> going to be jacking up the cube all that much.
>
> Yes, GNU Backgammon has a "times 2" cube (it will almost never be
> beavered when playing against its own take/pass decisions), but if its
> opponent essentially wields a "times 8" cube and a symmetric "times 3"
> cube already gives rise to a Petersburg Paradoxon, then I am not so
> sure.

The size of the cube doesn't have anything to do with it. It's all
about the frequency with which the "paradoxical" positions occur.
And it takes two to tango, so to speak; the cube won't get arbitrarily
high unless standard GNU is redoubling with sufficiently high
probability.
>> Oh, well, in that case, don't play money games. Just play matches.
>
> Which is possible, but from a logistics point of view less flexible in a
> chouette setting.

If you're worried about getting a reputation for gambling then don't
play in a chouette.

---
Tim Chow

Re: Simplistic cube heuristics, Markov chains and undefined equity

<smc8sf$nsa$1@dont-email.me>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7430&group=rec.games.backgammon#7430

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: philippe...@free.fr.invalid (Philippe Michel)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Mon, 8 Nov 2021 22:38:07 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <smc8sf$nsa$1@dont-email.me>
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de>
Injection-Date: Mon, 8 Nov 2021 22:38:07 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="6a644927c76e456a278d62516aa2ee20";
logging-data="24458"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+eSxpZH8dy5+o8ZKy6B+K2"
User-Agent: slrn/1.0.3 (FreeBSD)
Cancel-Lock: sha1:ceQWRWW/jIZ4Mic2kcJh4wxv8hQ=
 by: Philippe Michel - Mon, 8 Nov 2021 22:38 UTC

On 2021-11-06, Axel Reichert <mail@axel-reichert.de> wrote:

> Timothy Chow <tchow12000@yahoo.com> writes:

>> Ah, yes, that would be a problem. How hard is it to modify the code
>> to raise this ceiling?
>
> I don't write C, but tried to read it. Maybe Philippe Michel can comment
> whether a re-compile with
>
> #define MAX_CUBE ( 1 << 15 )
>
> instead of 12 in backgammon.h might work (there are only 4 bits in the
> match-id for log2 of the cube value, so going still higher would likely
> be too large a surgery). This would give leeway for another raccoon,
> perhaps sufficient to get a "converged" histogram.

The matchid is used only for copying and pasting positions. Internally a
different key is used and it doesn't depend on the cube value for money
play. See the EvalKey() function in eval.c.

Still, it's difficult to be sure the above change is harmless without
thorough checking.

Offhand, what I would try instead is to add something like:

if (ms.nCube > 64)
ms.nCube = ms.nCube / 64;

at the beginning of the ComputerTurn() function in play.c, and find the
final cube value in another way, for instance by counting the doubles in
the game log.

If this works, as a bonus, it would remove any limit to the cube level.

Re: Simplistic cube heuristics, Markov chains and undefined equity

<m2r1bp3qft.fsf@axel-reichert.de>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7437&group=rec.games.backgammon#7437

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mai...@axel-reichert.de (Axel Reichert)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Tue, 09 Nov 2021 23:38:30 +0100
Organization: A noiseless patient Spider
Lines: 120
Message-ID: <m2r1bp3qft.fsf@axel-reichert.de>
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de> <sm5plt$iel$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="a485affa13e537d9c8f67b8e0c1d7c0e";
logging-data="22807"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kJETu3+uX3kJLo1xWJQ38u3CeotD+wks="
Cancel-Lock: sha1:F4Vbi0y5eToHFoiYHY35CvESgcA=
sha1:B23omCduKGRsGVG42vtWWwuO+SE=
 by: Axel Reichert - Tue, 9 Nov 2021 22:38 UTC

Timothy Chow <tchow12000@yahoo.com> writes:

> On 11/6/2021 6:26 AM, Axel Reichert wrote:
>>
>> Yes, GNU Backgammon has a "times 2" cube (it will almost never be
>> beavered when playing against its own take/pass decisions), but if
>> its opponent essentially wields a "times 8" cube and a symmetric
>> "times 3" cube already gives rise to a Petersburg Paradoxon, then I
>> am not so sure.
>
> The size of the cube doesn't have anything to do with it. It's all
> about the frequency with which the "paradoxical" positions occur.

I am not necessarily talking about positions like "perpetual recube",
but about the usual swings in a "normal" game, with several moves in
between. If these swings occur frequently enough and at least one player
is rather cube-happy, then scenarios like

https://bkgm.com/rgb/rgb.cgi?view+429

seem plausible to me, at least with raccoons.

> the cube won't get arbitrarily high unless standard GNU is redoubling
> with sufficiently high probability.

Which it will do if it ends up in its normal doubling window after a
swing.

> If you're worried about getting a reputation for gambling then don't
> play in a chouette.

(-:

In the meantime, my little Markov chain program was ready and was fed
the probability data from two mutant sessions: I have run 10000 games
(0 beavers, no Jacoby) and then another session (1 beaver, no
Jacoby). From the second run (which luckily never reached GNU
Backgammon's maximum cube value of 4096), I could reasonably adapt the
transition probabilities (and the game values) to account for
raccoons: After getting beavered, the mutant would always racoon, and
I think I can safely assume that gnubg would take the raccoon.

Then I ran the Markov chain program several billion times with an ever
growing number of tries, for the transitions probabilities with 0
beavers, 1 beaver, and 2 beavers (raccoons) and monitored the expected
value per game to see whether it is growing or converging. Here are
the results:

| Number of games | 0 beavers | 1 beaver | 2 beavers |
|-----------------+-----------+----------+-----------|
| 1000 | 5.061 | 17.575 | 34.833 |
| 2000 | 4.688 | 15.190 | 60.086 |
| 5000 | 4.454 | 12.679 | 62.037 |
| 10000 | 4.709 | 18.704 | 54.358 |
| 20000 | 4.800 | 18.619 | 919.218 |
| 50000 | 4.263 | 16.019 | 81.098 |
| 100000 | 4.365 | 17.399 | 74.955 |
| 200000 | 4.337 | 15.342 | 110.093 |
| 500000 | 4.368 | 16.853 | 138.879 |
| 1000000 | 4.361 | 15.497 | 120.395 |
| 2000000 | 4.348 | 17.958 | 311.474 |
| 5000000 | 4.401 | 16.902 | 285.184 |
| 10000000 | 4.340 | 24.388 | 793.178 |
| 20000000 | 4.358 | 17.626 | 176.234 |
| 50000000 | 4.348 | 20.283 | 212.273 |
| 100000000 | 4.357 | 19.130 | 204.241 |
| 200000000 | 4.355 | 20.328 | 206.505 |
| 500000000 | 4.350 | 19.709 | 263.348 |

To me, this looks like convergence without beavers and divergence
(hence Petersburg Paradoxon) with raccoons. For one beaver it seems
unclear whether the outcome is stable or not. Of course it could be
that 500 million games are still to few to "prove" a stable outcome,
but this is certainly much more than I will be able to play in my
lifetime.

Maybe it is possible to come up with the parameters for a (geometric)
distribution in the histogram and proceed analytically from there, but
I have no idea how to fit the parameters from a histogram and so
provide them for others here:

Histogram after 10000 games:

| Points | 0 beavers | 1 beaver |
|--------+-----------+----------|
| 1 | 465 | 464 |
| 2 | 5198 | 1566 |
| 3 | 1 | 0 |
| 4 | 2908 | 4562 |
| 6 | 71 | 29 |
| 8 | 1017 | 2154 |
| 12 | 17 | 38 |
| 16 | 237 | 670 |
| 24 | 3 | 9 |
| 32 | 63 | 332 |
| 48 | 2 | 1 |
| 64 | 14 | 111 |
| 96 | 1 | 4 |
| 128 | 1 | 36 |
| 256 | 1 | 17 |
| 512 | 1 | 4 |
| 1024 | 0 | 2 |
| 2048 | 0 | 1 |

Following your recommendation, I checked the 3 games with a cube of at
least 1024. Nothing special, perfectly reasonable doubles by gnubg in
a garden variety of games, just a couple of swings.

Any hints on how to proceed to "prove" that beavers are stable or
unstable using this simplistic doubling "strategy"? In case someone
needs further information of data: I still have the complete session
files, a mere GB of ASCII text each. Lots of room for analysis using
sed, awk and the like. (-:

Feel free to throw your suggestions at me, I will be happy to follow
up where I can.

Best regards

Axel

Re: Simplistic cube heuristics, Markov chains and undefined equity

<m2pmr7y99u.fsf@axel-reichert.de>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7448&group=rec.games.backgammon#7448

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mai...@axel-reichert.de (Axel Reichert)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Wed, 10 Nov 2021 22:45:49 +0100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <m2pmr7y99u.fsf@axel-reichert.de>
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de> <smc8sf$nsa$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="b6574ca893a9d792a39597b4030a5600";
logging-data="20501"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18S+gPoRJUG39BY6WlR4ir74e4Y4yrsZeM="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin)
Cancel-Lock: sha1:XZk1955pUuBA8HeeJ/f6CduU39w=
sha1:i+q9vbEMQRxl9YdbAjKTUG/yAwA=
 by: Axel Reichert - Wed, 10 Nov 2021 21:45 UTC

Philippe Michel <philippe.michel7@free.fr.invalid> writes:

> Offhand, what I would try instead is to add something like:
>
> if (ms.nCube > 64)
> ms.nCube = ms.nCube / 64;
>
> at the beginning of the ComputerTurn() function in play.c, and find the
> final cube value in another way, for instance by counting the doubles in
> the game log.

Thanks for this very "hackish" idea! I will keep it in my notes. For the
time being I was lucky since in the 10000 games with beaver the 4096
cube limit was not reached, so my data are "clean" in this respect.

> If this works, as a bonus, it would remove any limit to the cube level.

Sure. I might come back to this. Thanks again!

Axel

Re: Simplistic cube heuristics, Markov chains and undefined equity

<smht4f$hui$1@dont-email.me>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7449&group=rec.games.backgammon#7449

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tchow12...@yahoo.com (Timothy Chow)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Wed, 10 Nov 2021 20:54:21 -0500
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <smht4f$hui$1@dont-email.me>
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de> <sm5plt$iel$1@dont-email.me>
<m2r1bp3qft.fsf@axel-reichert.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 11 Nov 2021 01:54:23 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="bbf8b9382940d428353e9ebd5e55efe2";
logging-data="18386"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lor49rM4OM9MENf36uSS/b6nwQkZ9YuQ="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:JV7+/3N4f6FVx4Gzi+45DICka/s=
In-Reply-To: <m2r1bp3qft.fsf@axel-reichert.de>
Content-Language: en-US
 by: Timothy Chow - Thu, 11 Nov 2021 01:54 UTC

On 11/9/2021 5:38 PM, Axel Reichert wrote:
> I am not necessarily talking about positions like "perpetual recube",
> but about the usual swings in a "normal" game, with several moves in
> between. If these swings occur frequently enough and at least one player
> is rather cube-happy, then scenarios like
>
> https://bkgm.com/rgb/rgb.cgi?view+429
>
> seem plausible to me, at least with raccoons.

I don't think I've ever seen that analysis before. Very interesting!

It leads me to wonder about the following scenario. Suppose two players
behave as follows. They play D/T every single turn. They move the
checkers the way a bot such as GNU does at DMP. For simplicity let
us say that gammons and backgammons don't count. Does it make sense to
talk about "expected payoff" in such a situation? Of course, by
symmetry, if the expected payoff exists then it must be zero. But it
is not immediately obvious that the expected value exists. If the
probability that a game lasts n rolls drops off slower than 1/2^n then
I think the expected payoff does not exist.

It still seems to me that if only one side is doubling this aggressively
then we're not going to get undefined expected values, but I see now
what you're suggesting.

By the way, I have some sad news to share about the author of that
old article. Bill Taylor died of a heart attack on July 27, 2021.

https://www.lambandhayward.co.nz/obituaries/william-bill-frank-chatterton-taylor/4013/

> In the meantime, my little Markov chain program was ready and was fed
> the probability data from two mutant sessions: I have run 10000 games
> (0 beavers, no Jacoby) and then another session (1 beaver, no
> Jacoby).

If it's not too complicated, can you post a description of your Markov
chain?

---
Tim Chow

Re: Simplistic cube heuristics, Markov chains and undefined equity

<m27ddev59h.fsf@axel-reichert.de>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7469&group=rec.games.backgammon#7469

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mai...@axel-reichert.de (Axel Reichert)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Thu, 11 Nov 2021 20:52:58 +0100
Organization: A noiseless patient Spider
Lines: 125
Message-ID: <m27ddev59h.fsf@axel-reichert.de>
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de> <sm5plt$iel$1@dont-email.me>
<m2r1bp3qft.fsf@axel-reichert.de> <smht4f$hui$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="6be95fb251c716cc019a441e3c90e46e";
logging-data="15645"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+jPAzoN1v91xDmB793lcCGpgXN1EeIjck="
Cancel-Lock: sha1:xDP5tQYXb7WYcmfP89qTmBxyoZU=
sha1:siTq07nMGZdvNAiFluTfcA3vs7w=
 by: Axel Reichert - Thu, 11 Nov 2021 19:52 UTC

Timothy Chow <tchow12000@yahoo.com> writes:

> Suppose two players behave as follows. They play D/T every single
> turn. They move the checkers the way a bot such as GNU does at DMP.
> For simplicity let us say that gammons and backgammons don't count.
> Does it make sense to talk about "expected payoff" in such a
> situation? Of course, by symmetry, if the expected payoff exists
> then it must be zero. But it is not immediately obvious that the
> expected value exists. If the probability that a game lasts n rolls
> drops off slower than 1/2^n then I think the expected payoff does
> not exist.

Fully agree. And I am very sure that this ends up in Peterburg.

> It still seems to me that if only one side is doubling this
> aggressively then we're not going to get undefined expected values,
> but I see now what you're suggesting.

In the meantime I could add three lines to my previous table:

| Number of games | 0 beavers | 1 beaver | 2 beavers |
|-----------------+-----------+----------+-----------|
| 1000 | 5.061 | 17.575 | 34.833 |
| 2000 | 4.688 | 15.190 | 60.086 |
| 5000 | 4.454 | 12.679 | 62.037 |
| 10000 | 4.709 | 18.704 | 54.358 |
| 20000 | 4.800 | 18.619 | 919.218 |
| 50000 | 4.263 | 16.019 | 81.098 |
| 100000 | 4.365 | 17.399 | 74.955 |
| 200000 | 4.337 | 15.342 | 110.093 |
| 500000 | 4.368 | 16.853 | 138.879 |
| 1000000 | 4.361 | 15.497 | 120.395 |
| 2000000 | 4.348 | 17.958 | 311.474 |
| 5000000 | 4.401 | 16.902 | 285.184 |
| 10000000 | 4.340 | 24.388 | 793.178 |
| 20000000 | 4.358 | 17.626 | 176.234 |
| 50000000 | 4.348 | 20.283 | 212.273 |
| 100000000 | 4.357 | 19.130 | 204.241 |
| 200000000 | 4.355 | 20.328 | 206.505 |
| 500000000 | 4.350 | 19.709 | 263.348 |
|-----------------+-----------+----------+-----------|
| 1000000000 | 4.353 | 18.755 | 639.952 |
| 2000000000 | 4.352 | 19.226 | 650.204 |
| 5000000000 | 4.354 | 18.862 | 356.384 |

Without beavers, the expectation has settled, and by now I think that
1 beaver does not cause a Petersburg paradoxon either. But for 2
beavers my results are still far away from stability or there is no
expectation any more. My gut feeling says the latter.

> can you post a description of your Markov chain?

Sure. The states and transition probabilities (for 1 beaver) are as
follows:

1. Single win (Terminal, winner gets 1 * cube value)

2. Gammon win (Terminal, winner gets 2 * cube value)

3. Backgammon win (Terminal, winner gets 3 * cube value)

4. Cube centered
- gnubg doubles, mutant takes (0.1104): Go to 5
- gnubg doubles, mutant beavers, gnubg takes (0.0000): Go to 5
- gnubg wins a single game, including drops (0.0418): Go to 1
- gnubg wins a gammon (0.0023): Go to 2
- gnubg wins a backgammon (0.0000): Go to 3
- mutant doubles, gnubg takes (0.1933): Go to 6
- mutant doubles, gnubg beavers, mutant takes (0.6476): Go to 6
- mutant wins a single game, including drops (0.0046): Go to 1
- mutant wins a gammon (0.0000): Go to 2
- mutant wins a backgammon (0.0000): Go to 3

5. Cube owned by mutant
- gnubg doubles, mutant takes (0.0000): Go to 5
- gnubg doubles, mutant beavers, gnubg takes (0.0000): Go to 5
- gnubg wins a single game, including drops (0.3807): Go to 1
- gnubg wins a gammon (0.1330): Go to 2
- gnubg wins a backgammon (0.0060): Go to 3
- mutant doubles, gnubg takes (0.1922): Go to 6
- mutant doubles, gnubg beavers, mutant takes (0.1867): Go to 6
- mutant wins a single game, including drops (0.1014): Go to 1
- mutant wins a gammon (0.0000): Go to 2
- mutant wins a backgammon (0.0000): Go to 3

6. Cube owned by GNU Backgammon
- gnubg doubles, mutant takes (0.3502): Go to 5
- gnubg doubles, mutant beavers, gnubg takes (0.0001): Go to 5
- gnubg wins a single game, including drops (0.2672): Go to 1
- gnubg wins a gammon (0.0205): Go to 2
- gnubg wins a backgammon (0.0012): Go to 3
- mutant doubles, gnubg takes (0.0000): Go to 6
- mutant doubles, gnubg beavers, mutant takes (0.0000): Go to 6
- mutant wins a single game, including drops (0.2554): Go to 1
- mutant wins a gammon (0.1014): Go to 2
- mutant wins a backgammon (0.0041): Go to 3

The many (redundant) 0 transition probabilities made it more general and
the coding simpler. Can you cope with Lisp?

Of course you need to do some book-keeping for the cube value for
states 5 and 6. In case of two beavers (= raccoons) allowed, I have
assumed that the mutant always raccoons after getting beavered and
gnubg always takes, so the transition probabilities do not change,
just the cube value for book-keeping. So with 1 beaver it is
multiplied by 4, with 2 beavers it is multiplied by 8. Without
beavers, the transition probabilities are of course different. Since I
consider this case to be settled, I have not listed them here, let me
know if you want/need them.

The transition probabilities come from my "real" games between the
mutant and gnubg, 10000 without beavers, 10000 with 1 beaver, all
below the cube limit of 4096. The mutant doubled with cubeless GWC >
0.5 and took all beavers. Other take decisions (2-ply) and checker
play (0-ply) like gnubg.

Please let me know if you need something else. I would be most
interested in your thoughts about the histograms (coming out of my real
games as well as out of the Markov chains), any fit of them to a
(geometric) distribution and then perhaps analytic results along the
lines of Bill Taylor.

Best regards

Axel

Re: Simplistic cube heuristics, Markov chains and undefined equity

<0b60290c-87ef-44bf-abc9-b598daae1d32n@googlegroups.com>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7513&group=rec.games.backgammon#7513

  copy link   Newsgroups: rec.games.backgammon
X-Received: by 2002:a0c:f992:: with SMTP id t18mr28423802qvn.37.1636887193928;
Sun, 14 Nov 2021 02:53:13 -0800 (PST)
X-Received: by 2002:a05:6830:2053:: with SMTP id f19mr23373476otp.295.1636887193726;
Sun, 14 Nov 2021 02:53:13 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: rec.games.backgammon
Date: Sun, 14 Nov 2021 02:53:13 -0800 (PST)
In-Reply-To: <m27ddev59h.fsf@axel-reichert.de>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:fb90:fd7:64bc:2558:2ea:6a2c:9eca;
posting-account=ZoOzZggAAADKiZinXeenHF1SgY613agP
NNTP-Posting-Host: 2607:fb90:fd7:64bc:2558:2ea:6a2c:9eca
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de> <sm5plt$iel$1@dont-email.me>
<m2r1bp3qft.fsf@axel-reichert.de> <smht4f$hui$1@dont-email.me> <m27ddev59h.fsf@axel-reichert.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0b60290c-87ef-44bf-abc9-b598daae1d32n@googlegroups.com>
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
From: mur...@compuplus.net (MK)
Injection-Date: Sun, 14 Nov 2021 10:53:13 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 28
 by: MK - Sun, 14 Nov 2021 10:53 UTC

On November 11, 2021 at 12:53:01 PM UTC-7, Axel Reichert wrote:

> ... Since I consider this case to be settled, I have not listed
> them here, let me know if you want/need them.

Can you translate all that to English?

> The transition probabilities come from my "real" games
> between the mutant and gnubg, 10000 without beavers,
> 10000 with 1 beaver, all below the cube limit of 4096.

Why is the need for substituting fantasy for fact? Lack of
needed CPU time? Or the writing on the wall?

> The mutant doubled with cubeless GWC 0.5 and took all
> beavers. Other take decisions (2-ply) and checker play
> (0-ply) like gnubg.

The mutant should take also at a lower GWC or else it
defeats the purpose of marginalizing the cube skill (in
this context, more specifically the value of the cube
ownership).

> Please let me know if you need something else.

Even though you're not asking me, how can I download
the text file of those 20,000 "real" games?

MK

Re: Simplistic cube heuristics, Markov chains and undefined equity

<smsjm4$i8n$1@dont-email.me>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7530&group=rec.games.backgammon#7530

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tchow12...@yahoo.com (Timothy Chow)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Sun, 14 Nov 2021 22:20:34 -0500
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <smsjm4$i8n$1@dont-email.me>
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de> <sm5plt$iel$1@dont-email.me>
<m2r1bp3qft.fsf@axel-reichert.de> <smht4f$hui$1@dont-email.me>
<m27ddev59h.fsf@axel-reichert.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 15 Nov 2021 03:20:36 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="7f99c91de81edb8b4a0bc7ec5a71b495";
logging-data="18711"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JX6Bg8Dtv0LAj5rJut535UHx0L1wn3hM="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:EuuLT8sdhpGoiY2O93BljUCZUdc=
In-Reply-To: <m27ddev59h.fsf@axel-reichert.de>
Content-Language: en-US
 by: Timothy Chow - Mon, 15 Nov 2021 03:20 UTC

On 11/11/2021 2:52 PM, Axel Reichert wrote:
> Timothy Chow <tchow12000@yahoo.com> writes:
>
>> Suppose two players behave as follows. They play D/T every single
>> turn. They move the checkers the way a bot such as GNU does at DMP.
>> For simplicity let us say that gammons and backgammons don't count.
>> Does it make sense to talk about "expected payoff" in such a
>> situation? Of course, by symmetry, if the expected payoff exists
>> then it must be zero. But it is not immediately obvious that the
>> expected value exists. If the probability that a game lasts n rolls
>> drops off slower than 1/2^n then I think the expected payoff does
>> not exist.
>
> Fully agree. And I am very sure that this ends up in Peterburg.

Yes, now that I think about it, the probability that a game lasts
n rolls has to be at least some constant times (25/36)^n, because
as soon as you get a position where both players are on the bar
against a five-point board, the probability that they keep dancing
is (25/36)^n.

> Without beavers, the expectation has settled, and by now I think that
> 1 beaver does not cause a Petersburg paradoxon either. But for 2
> beavers my results are still far away from stability or there is no
> expectation any more. My gut feeling says the latter.

Interesting. Your data certainly exhibit more "instability" than
I was expecting, so you might be right.

> > can you post a description of your Markov chain?
>
> Sure. The states and transition probabilities (for 1 beaver) are as
> follows:

Here's something I'm curious about. I don't know if it's easy to
answer this question with your data, but suppose you plot a histogram
that shows how frequently a game lasts n rolls. Does the histogram
coming from real games look close to the histogram you get from the
Markov chain? That would provide a sanity check as to whether the
Markov chain is a plausible model of the real game.

---
Tim Chow

Re: Simplistic cube heuristics, Markov chains and undefined equity

<m2ee7hrz2x.fsf@axel-reichert.de>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7538&group=rec.games.backgammon#7538

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mai...@axel-reichert.de (Axel Reichert)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Mon, 15 Nov 2021 20:36:06 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <m2ee7hrz2x.fsf@axel-reichert.de>
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de> <sm5plt$iel$1@dont-email.me>
<m2r1bp3qft.fsf@axel-reichert.de> <smht4f$hui$1@dont-email.me>
<m27ddev59h.fsf@axel-reichert.de>
<0b60290c-87ef-44bf-abc9-b598daae1d32n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="afa46d78f3374c8df1e66b4c2a4756e4";
logging-data="10949"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18VmtzzCReNBOvfNMCXdCO2hs2A0Xox4PI="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin)
Cancel-Lock: sha1:Jx5otAlRKLL8kFoywF0ULqFbeYE=
sha1:CSIsk92vCLacefCzWdB79FqIkM8=
 by: Axel Reichert - Mon, 15 Nov 2021 19:36 UTC

MK <murat@compuplus.net> writes:

> On November 11, 2021 at 12:53:01 PM UTC-7, Axel Reichert wrote:
>
> Why is the need for substituting fantasy for fact? Lack of needed CPU
> time?

This is not fantasy, but a rock-solid mathematical technique. And yes,
CPU time is the reason.

>> The mutant doubled with cubeless GWC 0.5 and took all beavers. Other
>> take decisions (2-ply) and checker play (0-ply) like gnubg.
>
> The mutant should take also at a lower GWC

I know, we have discussed this. The session with "Take if GWC > 0" is
still running.

> how can I download the text file of those 20,000 "real" games?

Sorry, I will not provide 2.5 GB of ASCII text.

Axel

Re: Simplistic cube heuristics, Markov chains and undefined equity

<m2a6i5rv0m.fsf@axel-reichert.de>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7541&group=rec.games.backgammon#7541

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mai...@axel-reichert.de (Axel Reichert)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Mon, 15 Nov 2021 22:03:53 +0100
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <m2a6i5rv0m.fsf@axel-reichert.de>
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de> <sm5plt$iel$1@dont-email.me>
<m2r1bp3qft.fsf@axel-reichert.de> <smht4f$hui$1@dont-email.me>
<m27ddev59h.fsf@axel-reichert.de> <smsjm4$i8n$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="afa46d78f3374c8df1e66b4c2a4756e4";
logging-data="20990"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18YE/jiVlQNxTW6pEIhnjKaAGy7v9G5t6Q="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin)
Cancel-Lock: sha1:mzqv1IGH3vw4ID5D/XD0L0326gg=
sha1:iKbnqKDbECC4VlbIKt1XwbN3L7A=
 by: Axel Reichert - Mon, 15 Nov 2021 21:03 UTC

Timothy Chow <tchow12000@yahoo.com> writes:

> plot a histogram that shows how frequently a game lasts n rolls

That would be a simple Unix command line for the "real" games. However
....

> Does the histogram coming from real games look close to the histogram
> you get from the Markov chain?

.... this information is not modelled in the states of the Markov chain,
since all wins are lumped together, no matter how long it took. I could
use a different organization of states, but this would of course require
different transition probabilities, to be extracted from the GNU
Backgammon session files.

> That would provide a sanity check

Any other ideas that I could check? Or would you be able to provide
estimates for how many "games" I should run the Markov chains? Or any
hints on how to fit my session histogram to a (geometric) distribution
in order to further pursue the analytical path?

Best regards

Axel

Re: Simplistic cube heuristics, Markov chains and undefined equity

<smv9tr$cl9$1@dont-email.me>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7546&group=rec.games.backgammon#7546

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tchow12...@yahoo.com (Timothy Chow)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Mon, 15 Nov 2021 22:52:25 -0500
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <smv9tr$cl9$1@dont-email.me>
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de> <sm5plt$iel$1@dont-email.me>
<m2r1bp3qft.fsf@axel-reichert.de> <smht4f$hui$1@dont-email.me>
<m27ddev59h.fsf@axel-reichert.de> <smsjm4$i8n$1@dont-email.me>
<m2a6i5rv0m.fsf@axel-reichert.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 16 Nov 2021 03:52:27 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="408a88dd941b4d913f0c3710e57ded2a";
logging-data="12969"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184VYqR+bqcxDOYftliuk6Q/cOUel5JW4A="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:NKgmEWcq5jGQ74m5soRPGXhIEuU=
In-Reply-To: <m2a6i5rv0m.fsf@axel-reichert.de>
Content-Language: en-US
 by: Timothy Chow - Tue, 16 Nov 2021 03:52 UTC

On 11/15/2021 4:03 PM, Axel Reichert wrote:
> Any other ideas that I could check? Or would you be able to provide
> estimates for how many "games" I should run the Markov chains? Or any
> hints on how to fit my session histogram to a (geometric) distribution
> in order to further pursue the analytical path?

Earlier you said there were some aspects of Markov chain theory that
you weren't familiar with. When I say something like, you should
diagonalize the transition matrix in order to compute stationary
probabilities, do you know what I mean? If not, I can walk you
through it.

What histogram exactly are you trying to fit to a geometric
distribution? In any case, one approach to fitting a geometric
distribution is to take the logarithms of the values, since these
should lie on a straight line, which you can estimate by doing a
least-squares fit.

---
Tim Chow

Re: Simplistic cube heuristics, Markov chains and undefined equity

<110c51c7-a1f9-4579-9406-220c7e00422dn@googlegroups.com>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7548&group=rec.games.backgammon#7548

  copy link   Newsgroups: rec.games.backgammon
X-Received: by 2002:a05:620a:4551:: with SMTP id u17mr4303931qkp.351.1637045304604;
Mon, 15 Nov 2021 22:48:24 -0800 (PST)
X-Received: by 2002:a54:4590:: with SMTP id z16mr4250125oib.67.1637045304339;
Mon, 15 Nov 2021 22:48:24 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: rec.games.backgammon
Date: Mon, 15 Nov 2021 22:48:24 -0800 (PST)
In-Reply-To: <m2ee7hrz2x.fsf@axel-reichert.de>
Injection-Info: google-groups.googlegroups.com; posting-host=172.58.44.205; posting-account=ZoOzZggAAADKiZinXeenHF1SgY613agP
NNTP-Posting-Host: 172.58.44.205
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de> <sm5plt$iel$1@dont-email.me>
<m2r1bp3qft.fsf@axel-reichert.de> <smht4f$hui$1@dont-email.me>
<m27ddev59h.fsf@axel-reichert.de> <0b60290c-87ef-44bf-abc9-b598daae1d32n@googlegroups.com>
<m2ee7hrz2x.fsf@axel-reichert.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <110c51c7-a1f9-4579-9406-220c7e00422dn@googlegroups.com>
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
From: mur...@compuplus.net (MK)
Injection-Date: Tue, 16 Nov 2021 06:48:24 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 29
 by: MK - Tue, 16 Nov 2021 06:48 UTC

On November 15, 2021 at 12:36:07 PM UTC-7, Axel Reichert wrote:

> MK <mu...@compuplus.net> writes:
>> Why is the need for substituting fantasy for fact? Lack of needed
>> CPU time?

> This is not fantasy, but a rock-solid mathematical technique. And
> yes, CPU time is the reason.

I guess I don't like it because I don't understand what all those
constants come from and what the results will prove??

>> The mutant should take also at a lower GWC

> I know, we have discussed this. The session with
> "Take if GWC > 0" is still running.

This is too drasctic but let's see what comes out of it anyway.

>> how can I download the text file of those 20,000 "real" games?

> Sorry, I will not provide 2.5 GB of ASCII text.

The size doesn't make sense. Even a long 1-pointer wouldn't be
more than 5K in text format. Two sets of 10,000 games should
be about 100Mb. Your 2.5Gb works out to 125K per game which
doesn't sound real. What am I missing?

MK

Re: Simplistic cube heuristics, Markov chains and undefined equity

<m235nvq5yi.fsf@axel-reichert.de>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7558&group=rec.games.backgammon#7558

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mai...@axel-reichert.de (Axel Reichert)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Tue, 16 Nov 2021 20:02:45 +0100
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <m235nvq5yi.fsf@axel-reichert.de>
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de> <sm5plt$iel$1@dont-email.me>
<m2r1bp3qft.fsf@axel-reichert.de> <smht4f$hui$1@dont-email.me>
<m27ddev59h.fsf@axel-reichert.de>
<0b60290c-87ef-44bf-abc9-b598daae1d32n@googlegroups.com>
<m2ee7hrz2x.fsf@axel-reichert.de>
<110c51c7-a1f9-4579-9406-220c7e00422dn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="373b10e7916a31b0d993399835baac29";
logging-data="8604"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HLBtPx77cMJNNnsUPRlZOlAeC8j9OQ/8="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin)
Cancel-Lock: sha1:RWpmZgwhv9BIoQFU8mRU942WD0k=
sha1:EUh/1ScPhoLt3SxbrkjPUojHs1o=
 by: Axel Reichert - Tue, 16 Nov 2021 19:02 UTC

MK <murat@compuplus.net> writes:

> Your 2.5Gb works out to 125K per game which doesn't sound real. What
> am I missing?

Run

gnubg -t

from the command line and play one game. Multiplied by 10000, this gives
my session file.

Axel

Re: Simplistic cube heuristics, Markov chains and undefined equity

<m2y25noqe8.fsf@axel-reichert.de>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7559&group=rec.games.backgammon#7559

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mai...@axel-reichert.de (Axel Reichert)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Tue, 16 Nov 2021 20:24:15 +0100
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <m2y25noqe8.fsf@axel-reichert.de>
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de> <sm5plt$iel$1@dont-email.me>
<m2r1bp3qft.fsf@axel-reichert.de> <smht4f$hui$1@dont-email.me>
<m27ddev59h.fsf@axel-reichert.de> <smsjm4$i8n$1@dont-email.me>
<m2a6i5rv0m.fsf@axel-reichert.de> <smv9tr$cl9$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="373b10e7916a31b0d993399835baac29";
logging-data="8604"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BSNWDbJgD40nzXsIqflHwDxkVh6lNO8c="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin)
Cancel-Lock: sha1:xRqbpeF0toLlhh7wUCdc5FC0a+s=
sha1:6HHFhO0iR7r31ybx7pqobEHU+C4=
 by: Axel Reichert - Tue, 16 Nov 2021 19:24 UTC

Timothy Chow <tchow12000@yahoo.com> writes:

> When I say something like, you should diagonalize the transition
> matrix in order to compute stationary probabilities, do you know what
> I mean?

Not quite, since my 6 states do not all have 6 transitions and I believe
that the transition matrix should be a square one. I have no idea, e.g.,
how to cope with the difference in my state 5 (mutant owns cube) and the
two transitions for a simple take versus a take with beaver and how to
ensure that the cube value is carried through the process. So yes, I
would be very happy if you could walk me through, especially since I
guess it is the stationary probabilities that we are after.

By the way, I think I understand what to with the terminals (1 on the
diagonal, 0 elsewhere), but again not how to keep track of the results.

> What histogram exactly are you trying to fit to a geometric
> distribution?

The one with the number of cubings per game, as in Bill Taylor's post:

[snip]
Then the number of cubings is a geometric random variable with

p_1 = (1-p) (p_0 = 0 as it must get to one of the K-points first),
p_2 = (1-p)p
p_3 = (1-p)p^2 etc. So the expected number of cubings is 1/(1-p).

For the standard M = 2; K = 0.8 , p = 1/4, E[#] = 4/3.
[snip]

With values for p and M from my Markov process my vague idea is to be
able to show whether the expectation gets infinite or not.

> In any case, one approach to fitting a geometric distribution is to
> take the logarithms of the values, since these should lie on a
> straight line, which you can estimate by doing a least-squares fit.

(Dumbfounded): Of course, I was losing the forest for the trees in my
thinking process. I should have known this. Thanks for the pointer!

Best regards

Axel

Re: Simplistic cube heuristics, Markov chains and undefined equity

<sn1qcb$kki$1@dont-email.me>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7565&group=rec.games.backgammon#7565

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tchow12...@yahoo.com (Timothy Chow)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Tue, 16 Nov 2021 21:45:29 -0500
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <sn1qcb$kki$1@dont-email.me>
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de> <sm5plt$iel$1@dont-email.me>
<m2r1bp3qft.fsf@axel-reichert.de> <smht4f$hui$1@dont-email.me>
<m27ddev59h.fsf@axel-reichert.de> <smsjm4$i8n$1@dont-email.me>
<m2a6i5rv0m.fsf@axel-reichert.de> <smv9tr$cl9$1@dont-email.me>
<m2y25noqe8.fsf@axel-reichert.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 17 Nov 2021 02:45:31 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8d28d8ebd4d5e9a965d3d947e307bc61";
logging-data="21138"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/v7d5VSdiBh+Kp7JtszImCmzoQQ83VOx4="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.1
Cancel-Lock: sha1:kAUaa8g2kxPwOc1gFfyXweJj4zc=
In-Reply-To: <m2y25noqe8.fsf@axel-reichert.de>
Content-Language: en-US
 by: Timothy Chow - Wed, 17 Nov 2021 02:45 UTC

On 11/16/2021 2:24 PM, Axel Reichert wrote:
> Timothy Chow <tchow12000@yahoo.com> writes:
>
>> When I say something like, you should diagonalize the transition
>> matrix in order to compute stationary probabilities, do you know what
>> I mean?
>
> Not quite, since my 6 states do not all have 6 transitions and I believe
> that the transition matrix should be a square one. I have no idea, e.g.,
> how to cope with the difference in my state 5 (mutant owns cube) and the
> two transitions for a simple take versus a take with beaver and how to
> ensure that the cube value is carried through the process. So yes, I
> would be very happy if you could walk me through, especially since I
> guess it is the stationary probabilities that we are after.

There is a straightforward way to handle this if you're willing to
deal with more states. For each of your 6 states, you need to create
a bunch of states, each with a different cube value. (There is a slight
annoyance here in that to keep things finite, you'll have to put a cap
on the cube value.)

Not having all transitions doesn't matter. That just means that the
transition probability is zero. The transition matrix is indeed square.
The value of A_{i,j} is the probability of transitioning from state i
to state j.

Depending on how high you let the cube get, your matrix will have
dozens, or maybe more than a hundred, rows, but this should not be a
big problem if you have some standard software package to do numerical
linear algebra. If you don't have access to such software then I can
probably do the computation for you if you send me the matrix.

---
Tim Chow

Re: Simplistic cube heuristics, Markov chains and undefined equity

<m2r1belh3g.fsf@axel-reichert.de>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7569&group=rec.games.backgammon#7569

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mai...@axel-reichert.de (Axel Reichert)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Wed, 17 Nov 2021 20:25:39 +0100
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <m2r1belh3g.fsf@axel-reichert.de>
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de> <sm5plt$iel$1@dont-email.me>
<m2r1bp3qft.fsf@axel-reichert.de> <smht4f$hui$1@dont-email.me>
<m27ddev59h.fsf@axel-reichert.de> <smsjm4$i8n$1@dont-email.me>
<m2a6i5rv0m.fsf@axel-reichert.de> <smv9tr$cl9$1@dont-email.me>
<m2y25noqe8.fsf@axel-reichert.de> <sn1qcb$kki$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="6db11ae94cfefdcb66d17014608e65e5";
logging-data="16546"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/NqiGgm9uKSVDewfuziaN0SGLfgY5icsc="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin)
Cancel-Lock: sha1:GZKWCa1DZog8mjVWpRKhU3bdJJg=
sha1:RRX9q2PRye5Coeuaqm6E49ox03Y=
 by: Axel Reichert - Wed, 17 Nov 2021 19:25 UTC

Timothy Chow <tchow12000@yahoo.com> writes:

> For each of your 6 states, you need to create a bunch of states, each
> with a different cube value. (There is a slight annoyance here in
> that to keep things finite, you'll have to put a cap on the cube
> value.)

Quite an annoyance! But I could of course use the same transition
probabilities from cube 2 to 4 as from cube 1048576 to 2097152. May
result in some lines of code to populate the transition matrix. But
100x100 should do.

> If you don't have access to such software then I can probably do the
> computation for you if you send me the matrix.

That would be great. Might take some time for me to come back to
you. Many thanks for your offer!

Best regards

Axel

Re: Simplistic cube heuristics, Markov chains and undefined equity

<e235bf81-42b7-403e-aeea-664de122279cn@googlegroups.com>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7577&group=rec.games.backgammon#7577

  copy link   Newsgroups: rec.games.backgammon
X-Received: by 2002:a05:6214:906:: with SMTP id dj6mr61360528qvb.11.1637228287972;
Thu, 18 Nov 2021 01:38:07 -0800 (PST)
X-Received: by 2002:a54:4590:: with SMTP id z16mr6468391oib.67.1637228287720;
Thu, 18 Nov 2021 01:38:07 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: rec.games.backgammon
Date: Thu, 18 Nov 2021 01:38:07 -0800 (PST)
In-Reply-To: <m235nvq5yi.fsf@axel-reichert.de>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:fb90:fd7:64bc:d82e:5d97:cbe8:d1b9;
posting-account=ZoOzZggAAADKiZinXeenHF1SgY613agP
NNTP-Posting-Host: 2607:fb90:fd7:64bc:d82e:5d97:cbe8:d1b9
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de> <sm5plt$iel$1@dont-email.me>
<m2r1bp3qft.fsf@axel-reichert.de> <smht4f$hui$1@dont-email.me>
<m27ddev59h.fsf@axel-reichert.de> <0b60290c-87ef-44bf-abc9-b598daae1d32n@googlegroups.com>
<m2ee7hrz2x.fsf@axel-reichert.de> <110c51c7-a1f9-4579-9406-220c7e00422dn@googlegroups.com>
<m235nvq5yi.fsf@axel-reichert.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e235bf81-42b7-403e-aeea-664de122279cn@googlegroups.com>
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
From: mur...@compuplus.net (MK)
Injection-Date: Thu, 18 Nov 2021 09:38:07 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 22
 by: MK - Thu, 18 Nov 2021 09:38 UTC

On November 16, 2021 at 12:03:26 PM UTC-7, Axel Reichert wrote:

> MK <mu...@compuplus.net> writes:
>> Your 2.5Gb works out to 125K per game which doesn't
>> sound real. What am I missing?

> Run
> gnubg -t
> from the command line and play one game. Multiplied by
> 10000, this gives my session file.

Oh, I see. I never ran Gnubg from comman line but you had
to in order to automate the process. And it sounds like the
text files you are talking about contain ascii representations
of all positions(??). If that's the case, can you export them
as game/match files made of only the dice rolls and moves
in text?

At least how about the first 1,000 or even 100 of each? I just
would like to see what they look like for myself.

MK

Re: Simplistic cube heuristics, Markov chains and undefined equity

<m2k0h59ock.fsf@axel-reichert.de>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7585&group=rec.games.backgammon#7585

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mai...@axel-reichert.de (Axel Reichert)
Newsgroups: rec.games.backgammon
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
Date: Thu, 18 Nov 2021 21:54:19 +0100
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <m2k0h59ock.fsf@axel-reichert.de>
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de> <sm5plt$iel$1@dont-email.me>
<m2r1bp3qft.fsf@axel-reichert.de> <smht4f$hui$1@dont-email.me>
<m27ddev59h.fsf@axel-reichert.de>
<0b60290c-87ef-44bf-abc9-b598daae1d32n@googlegroups.com>
<m2ee7hrz2x.fsf@axel-reichert.de>
<110c51c7-a1f9-4579-9406-220c7e00422dn@googlegroups.com>
<m235nvq5yi.fsf@axel-reichert.de>
<e235bf81-42b7-403e-aeea-664de122279cn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="a6e90d832063401d7e71a80fb3c268ae";
logging-data="27118"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/R5n+efLAv6RXTndJ9l9qMg5Kn1Mh2wx8="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin)
Cancel-Lock: sha1:iNCfCtfmJUHSc9PXIfyPIUzvyjM=
sha1:lAOgr/aTSjEQFJJtB6dsmGWm+lY=
 by: Axel Reichert - Thu, 18 Nov 2021 20:54 UTC

MK <murat@compuplus.net> writes:

> it sounds like the text files you are talking about contain ascii
> representations of all positions

Yes.

> can you export them as game/match files made of only the dice rolls
> and moves in text?

No, not any more, the sessions have been closed.

Axel

Re: Simplistic cube heuristics, Markov chains and undefined equity

<4ca65e35-0a8e-4d8d-8b40-3075a6adcdc4n@googlegroups.com>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=7587&group=rec.games.backgammon#7587

  copy link   Newsgroups: rec.games.backgammon
X-Received: by 2002:a05:620a:752:: with SMTP id i18mr26961925qki.453.1637309006065;
Fri, 19 Nov 2021 00:03:26 -0800 (PST)
X-Received: by 2002:a05:6808:209b:: with SMTP id s27mr3305407oiw.43.1637309005786;
Fri, 19 Nov 2021 00:03:25 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: rec.games.backgammon
Date: Fri, 19 Nov 2021 00:03:25 -0800 (PST)
In-Reply-To: <m2k0h59ock.fsf@axel-reichert.de>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:fb90:fd7:64bc:8504:5ea6:6a8:3b08;
posting-account=ZoOzZggAAADKiZinXeenHF1SgY613agP
NNTP-Posting-Host: 2607:fb90:fd7:64bc:8504:5ea6:6a8:3b08
References: <m21r3veohh.fsf@axel-reichert.de> <sm3drq$rjj$1@dont-email.me>
<m2v9164iyt.fsf@axel-reichert.de> <sm4lii$gto$1@dont-email.me>
<m2h7cp4m2o.fsf@axel-reichert.de> <sm5plt$iel$1@dont-email.me>
<m2r1bp3qft.fsf@axel-reichert.de> <smht4f$hui$1@dont-email.me>
<m27ddev59h.fsf@axel-reichert.de> <0b60290c-87ef-44bf-abc9-b598daae1d32n@googlegroups.com>
<m2ee7hrz2x.fsf@axel-reichert.de> <110c51c7-a1f9-4579-9406-220c7e00422dn@googlegroups.com>
<m235nvq5yi.fsf@axel-reichert.de> <e235bf81-42b7-403e-aeea-664de122279cn@googlegroups.com>
<m2k0h59ock.fsf@axel-reichert.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4ca65e35-0a8e-4d8d-8b40-3075a6adcdc4n@googlegroups.com>
Subject: Re: Simplistic cube heuristics, Markov chains and undefined equity
From: mur...@compuplus.net (MK)
Injection-Date: Fri, 19 Nov 2021 08:03:26 +0000
Content-Type: text/plain; charset="UTF-8"
 by: MK - Fri, 19 Nov 2021 08:03 UTC

On November 18, 2021 at 1:54:20 PM UTC-7, Axel Reichert wrote:

> MK <mu...@compuplus.net> writes:
>> it sounds like the text files you are talking about contain ascii
>> representations of all positions

> Yes.

Thanks for doing this experiment. I've been asking for years
for this kind of experiments. It wasn't exactly what I proposed
but it was close enough and the first/only one anyone has
ever done. Maybe we can come up with more ideas and run
short sessions not to prove something but just to get a peek
at "possibilities" to further explore. Maybe even other people
will get excited/interested to do similar experiments also.

>> can you export them as game/match files made of only the
>> dice rolls and moves in text?

> No, not any more, the sessions have been closed.

I hope you don't delete the files which are all we have of their
kind. They may be opened in gnubg and re-exported or they
may be converted using a simple program/macro. Someone
from the gnubg team may be able to help.

MK


interests / rec.games.backgammon / Re: Simplistic cube heuristics, Markov chains and undefined equity

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor