Interactive visualisations here https://visual-candles-cake.apps.sjtrny.com
Suppose that you have a Battenburg cake, which is 1 unit long.
You then:
- place two candles at random positions along the length
- randomly cut the cake across the length
What is the probability that the knife cuts between the two candles?
When the candles and knife are uniformly distributed the probability that the knife is between both candles is
Full working is provided in the main notebook.
A live version of the notebook can be launched on mybinder.org.
An alternative solution using two dependent variables is presented in the dependent-alternative notebook.