Archive for tournament

a journal of the Hugo year (ter)

Posted in Books, Kids, Mountains, pictures, Running, Travel, University life, Wines with tags , , , , , , , , , , , , , , , , , , , , , , , , on July 21, 2026 by xi'an

Read part of another Hugo best novel contender, Death of the Author by Nnedi Okorafor, which is about a writer getting suddenly famous for an original novel of (voluntarily) rusty robots, but this was too much of an infinite mirror (and too little speculative fiction) that I gave up a third of the way, before anything speculative happened…. And the Hugo (hopeful) novella The Summer War by Naomi Novik, nice tale à la Grimm if not particularly deep. And another Hugo nominated novel The Incandescent by Emily Tesh, a magical boarding school à la Harry Potter, enjoyable enough if missing in villeins besides demons! However, the constant whine of the head teacher about her duties, the glorification of the English boarding school model, and the fixation on the A levels and on getting to Oxford are weighting down my vote… And the Hugo novelette The Girl That My Mother Is Leaving Me For by Cameron Reed, with little appeal. Lots of books, thanks to this long-lasting spell of jetlag!

Cooked cold soba noodles for the week in Nagoya, And (alas!) enjoyed eels in the local histumabashi format. Alas because I discovered afterwards that eels are dramatically threatened to extinction. Given that the fisheries rely on wild eels for the most part.

Watched the whole season of A Knight of the Seven Kingdoms in the plane to Tokyo, set in the Game of Thrones universe and quite engaging, even though the (edge) knight’s naïvety is exaggerated, while the scenario shifts suspend belief way too much and too often. The absurd brutality of medieval jousts and tournaments is rendered in strongest terms (but I did not faint!). Reminding me of Scott’s Last Duel.

 

a journal of the Hugo year (bis)

Posted in Books, Kids, Mountains, pictures, Running, Travel, University life, Wines with tags , , , , , , , , , , , , , , , , , , , , , , , , on July 12, 2026 by xi'an


R
ead another Hugo best novel contender, A Drop of Corruption, by  Robert Jackson Bennett, although I had to buy it since it was not part of the LACon package. (At a negligible price for Kindles on Amazon.) Even had it been out of the shortlist, I would have read this book as soon as I became aware of its existence! At this stage of my reading through the shortlisted novels, it figures at the top. It continues on the highly original construct in volume #1, with enough originality in the structure of the land, the organisation of the Empire, the role of leviathans as providers of drugs and treatments, and the past story of both investigators, Ana and Din. The idea of the Shroud is brilliant and having to wait for hundreds of pages to get an insider’s view so frustrating! The hunt for the central villain runs the entire book and the omniscient character feels a bit over-stretched at times, with much infodump, but the final impressions I got from this fantastic book remain highly positive and I am eagerly looking forward the incoming third volume.

Cooked mostly cold salads to cope with the heat waves, except for a batch of vegetable samosas to make use of leftover filo pastry and ageing potatoes. And repeated bowls of rhubarb preserve since this is the time of year when they are readily available at the local market. On said market, my favourite fishmonger gave me a monkfish liver just to try and it proved quite the delicacy, while easy to prepare.

Watched Season 3 of Night Agent, the Bournesque Secret Service action series, which is as addictive as a bowl of peanuts!, despite the many suspensions of belief required by the convenient coïncidences and the repeated red herrings. Possibly better than Season 2 thanks to the depth of several characters.

Elo rating systems via Markov Chains

Posted in pictures, Running, Statistics, University life with tags , , , , , , , , , , , on December 18, 2025 by xi'an

In preparation for meeting with a national sport association towards a Bayesian approach to ranking (I can only confirm this not for volleyball!), I was searching for advanced studies of the Elo (not ELO!) rating system and came across this 2024 arXival by Sam Olesker-Taylor (U Warwick) and Luca Zanetti. Where they analyse the online behaviour of the player ratings and their convergence (in Wasserstein distance), with fairly intricate proofs.

“Elo is not a reversible Markov chain and, while it has a unique stationary distribution, assuming a minor and natural condition, it does not converge to it in total variation.”

The analysis is based on the Bradley–Terry–Luce model of the probability of player i winning a game against player j. Which amounts to a logit or sigmoïd transform of the difference between the players’ true ratings. The practical Elo updates amounts to one stochastic gradient step for the associated likelihood. The authors also propose a random allocation of players into pairs that achieves optimal convergence to the true rating, by maximising the spectral gap of the allocation matrix. Although I did not spot how to derive it in practice.

Le Monde puzzle [#1157]

Posted in Books, Kids, R with tags , , , , , , on October 1, 2020 by xi'an

The weekly puzzle from Le Monde is an empty (?) challenge:

Kimmernaq and Aputsiaq play a game where Kimmernaq picks ten different integers between 1 and 100, and Aputsiaq must find a partition of these integers into two groups with identical sums. Who is winning?

Indeed, if the sums are equal, then the sum of their sums is even, meaning the sum of the ten integers is even. Any choice of these integers such that the sum is odd is a sure win for Kimmernaq. End of the lame game (if I understood its wording correctly!). If some integers can be left out of the groups, then both solutions seem possible: calling the R code

P=1;M=1e3
while (P<M){
a=sample(1:M,10);P=Q=0
while((P<M)&(!Q)){
t=sample(1:7,1)     #size of subset
o=1         #total sum must be even
while(!!(s<-sum(o))%%2)o=sample(a,10-t)
Q=max(2*cumsum(b<-sample(o))==s)
P=P+1}}

I found no solution (i.e. exiting the outer while loop) for M not too large…  So Aputsiaq is apparently winning. Le Monde solution considers the 2¹⁰-1=1023 possible sums made out of 10 integers, which cannot exceed 955, hence some of these sums must be equal (and the same applies when removing the common terms from both sums!). When considering the second half of the question

What if Kimmernaq picks 6 distinct integers between 1 and 40, and Aputsiaq must find a partition of these integers into two groups with identical sums. Who is winning?

recycling the above R code produced subsets systematically hitting the upper bound M, for much larger values. So Kimmernaq should have a mean to pick 6 integers such that any subgroup cannot be broken into two parts with identical sums. One of the outcomes being

 
> a
[1] 36 38 30 18  1 22

one can check that all the possible sums differ:

aa=a
for(i in 2:5){
 bb=NULL
 while(length(bb)<choose(6,i))bb=unique(c(bb,sum(sample(a,i))))
 aa=c(aa,bb)}
unique(aa)

and the outcome is indeed of length 2⁶-2=62!

As an aside, a strange [to me at least] R “mistake” was that when recycling the variable F in a code-golfing spirit, since it is equal to zero by default, rather than defining a new Q:

while((P<M)&(!F)){
...
F=max(2*cumsum(b<-sample(o))==s)
P=P+1}

the counter P was not getting updated!

Le Monde puzzle [#1155]

Posted in Books, Kids, R with tags , , , , , , , on September 26, 2020 by xi'an

The weekly puzzle from Le Monde is another Sudoku challenge:

Anahera and Wiremu play a game for T rounds. They successively pick a digit between 1 and 3, never repeating the previous one, and sum these digits. The last to play wins if the sum is a multiple of 3. Who is the winner for an optimal strategy?

By a simple dynamic programming of the optimal strategy at each step

N=3
A=matrix(-1,20,N)
A[1,1:N]=1:N
for (T in 2:20)
for (i in 1:N) A[T,i]=i+ifelse(!T%%2, #parity check
max((i+A[T-1,-i])%%3), #avoid zero
min((i+A[T-1,-i])%%3)) #seek zero

the first to play can always win the game. Not fun!