Publications by xi'an

Le Monde puzzle [#1088]

28.03.2019

A board (Ising!) Le Monde mathematical puzzle in the optimisation mode, again: On a 7×7 board, what is the maximal number of locations that one can occupy when imposing at least two empty neighbours ? Which I tried to solve by brute force and simulated annealing (what else?!), first defining a target targ=function(tabz){ sum(tabz[-c(1,9),-c...

1356 sym R (871 sym/3 pcs) 2 img

no country for old liars

29.03.2019

A puzzle from the Riddler about a group of five persons, A,..,E, where all and only people strictly older than L are liars, all making statements about others’ ages: A: B>20 and D>16 B: C>18 and E<20 C: D<22 and A=19 D: E≠20 and B=20 E: A>21 and C<18 The Riddler is asking for the (integer value of L and the ranges or values of A,…,E. Afte...

1526 sym R (1242 sym/4 pcs)

BayesComp 20 [full program]

15.04.2019

The full program is now available on the conference webpage of BayesComp 20, next 7-10 Jan 2020. There are eleven invited sessions, including one j-ISBA session, and a further thirteen contributed sessions were selected by the scientific committee. Calls are still open for tutorials on Tuesday 07 January (with two already planed on Nimble and Aut...

880 sym 2 img

survivalists [a Riddler’s riddle]

21.04.2019

A neat question from The Riddler on a multi-probability survival rate: Nine processes are running in a loop with fixed survivals rates .99,….,.91. What is the probability that the first process is the last one to die? Same question with probabilities .91,…,.99 and the probability that the last process is the last one to die. The first quest...

1391 sym 10 img

Le Monde puzzle [#1094]

22.04.2019

A rather blah number Le Monde mathematical puzzle: Find all integer multiples of 11111 with exactly one occurrence of each decimal digit.. Which I solved by brute force, by looking at the possible range of multiples (and  borrowing stringr:str_count from Robin!) > combien=0 > for (i in 90001:900008){ j=i*11111 combien=combien+(min(strin...

958 sym R (138 sym/1 pcs) 2 img

Le Monde puzzle [#1099]

27.04.2019

A simple 2×2 Le Monde mathematical puzzle: Arielle and Brandwein play a game out of two distinct even integers between 1500 and 2500,  and y. Providing one another with either the pair (x/2,y+x/2) or the pair (x+y/2,y/2) until they run out of even possibilities or exceed 6 rounds. When x=2304, what is the value of y that makes Brandwein win? ...

1141 sym R (209 sym/1 pcs) 2 img

visualising bias and unbiasedness

28.04.2019

A question on X validated led me to wonder at the point made by Christopher Bishop in his Pattern Recognition and Machine Learning book about the MLE of the Normal variance being biased. As it is illustrated by the above graph that opposes the true and green distribution of the data (made of two points) against the estimated and red distribution....

1357 sym 8 img

a perfectly normally distributed sample

08.05.2019

When I saw this title on R-bloggers, I was wondering how “more perfect” a Normal sample could be when compared with the outcome of rnorm(n). Hence went checking the original blog on bayestestR in search of more information. Which was stating nothing more than how to generate a sample is perfectly normal by using the rnorm_perfect function. St...

1358 sym

easy Riddler

09.05.2019

The riddle of the week is rather standard probability calculus If N points are generated at random places on the perimeter of a circle, what is the probability that you can pick a diameter such that all of those points are on only one side of the newly halved circle? Since it is equivalent to finding the range of N Uniform variates less than ½. ...

933 sym 6 img

an attempt at code golf

14.05.2019

Having discovered codegolf on Stack Exchange a few weeks ago, I spotted a few interesting puzzles since then but only got the opportunity at a try over a quiet and rainy weekend (and Robin being on vacation)! The challenge was to write an R code for deciding whether or not a given integer n is congruent or not, when congruent means that it is the...

1783 sym R (334 sym/2 pcs) 2 img