Archive for games

broken random generators

Posted in Statistics with tags , , , , , , on July 22, 2026 by xi'an

Nothing exciting or catastrophic here! Just a Friday afternoon puzzle entry on the successor to The Riddler (which I had not visited for a long while)… The first riddle reads as follows:

A random number generator on my calculator should generate random numbers between 0 and 1. But my suspicion is that the calculator is “tanked,” meaning it only generates random numbers between 0 and some value 0 < a < 1. Beyond that, I have no knowledge regarding the value of a. At the moment, it’s equally likely to be any value from 0 to 1. As an experiment, I ask the calculator to generate one random number. It produces a value of exactly 0.5. Based on this result, what can I expect the value of a to be, on average?

This is a direct (Bayesian) calculation of a posterior expectation when a given x=0.5 (a Uniform (0,a) realisation) is distributed as 1/(a log(2)) over (½,1), with expectation 1/(2 log(2)), about 0.72.

The added riddle just modifies the conditioning event (bringing it closer to Bayes experiment):

A second calculator is similarly “tanked.” As before, every value of a between 0 and 1 is equally likely at first. A friend generates one random number and only reveals that it’s somewhere between 0 and 0.5. On average, what can I expect the value of a to be?

This is also a direct (Bayesian) calculation with a Bernoulli output z, with probability min(0.5,a)/a, which results in a posterior expectation of a equal to 3/(4*(1+log(2))), about 0.44. And… I happened to get selected for my (correct) answer to this question!

squid games

Posted in Books, pictures with tags , , , , , , , , , , on October 30, 2021 by xi'an

Following my son’s prodding, I watched the Korean series Squid Games a few weeks ago, before it became a worldwide phenomenon, as illustrated by the French national public radio, France Inter, hosting a talk show with a philosopher and a psychiatrist on the layers of the game! And the French Ministry of Education warning primary and secondary school headmasters of the dangers of copycats in the playgrounds… My overall impression was one of originality with comparison with other K drama series I had watched, even though the realistic early scenes of a deeply indebted and failed father reminded me of several of them, not to mention the beginning of Parasite. The switch to the game playground was much less convincing, with the military organisation of the guards rather caricaturesque, growing worse with the appearance of the fromt row (?) evilmaster, and hitting ludicrous levels with the depraved male clients from all over the World. It seems to me that the series was trying to mix too many layers in its motivations, from the Korean debt culture, to organ trafficking, to keeping family structures, which made the result unconclusive and unsatisfactory. It sounded too artificial to be really dystopic. And knowing most of the characters were going to die (sorry for the spoiler!) did not help in relating to them. But overall I fail to see why this easy twist of children games is such a danger for humanity. Or carrying any deep message to the World. After all, The Most Dangerous Game did not change the course of history!