Sunday Times Teaser 3210 – Random Rabbit
by Mark Valentine
Published Friday March 29 2024 (link)
Every year Easter Bunnies must pass a series of demanding tests, the most important being the double jump. Rabbits perform a single jump comprising two hops, with the total distance scoring. For both hops, Max knows he has an equal chance of jumping any distance between two limits. For the first hop, the limits are 80 and 100cm. For his weaker second hop, these limits decrease but keep the same proportion.
However, the instructors have increased the required standard from 152 to 163cm. Max is worried; he can still pass, but his chance is half what it was before.
What, as a percentage, is his chance of passing this year?
4 Comments
Leave one →
Wow!
All this (probability density function, probabability bins, Aitken) was already part of your tool kit?
Hi Frits,
Yes, from my youth but very rusty now – it took me a long time to resurrect it! And my reference books are in Worcester while I am in Cambridge at the moment.
The code is fairly brittle since some of the parameters are finely tuned to balance accuracy and speed.
I like Jim’s approach (which is effectively 2D integration) but it is hard to duplicate it without just copying his A(t,f) function.
Brian
Hi Brian,
Can you elobarate on the probability bins and the “aitken” function?
If I choose for the number of probability bins (20, 50, 100) an incorrect answer is given.
If I use “aitken = lambda a, b, c: c” with this set up it does give a correct answer.
I also noticed that when I use a tolerance of 1e-5 your “aitken” function sometimes returns values outside 0…1.