Sitemap
Pascal Bercker

Pascal Bercker

Philosophy | philosophy of science | logic | Bayesian networks and logic puzzles | keen on the use of Bayesian networks to solve Smullyan-type logic puzzles

An Unexpected Probability Result

From Stand-Up Maths (a very short read!)

3 min readApr 26, 2026

--

A surprising fact about probabilities sparked Matt Parker’s curiosity. The random distribution of the square root of X in the range {0, 1} gives the same distribution as the maximum of two random numbers! Let’s simulate that and see how that works:

Press enter or click to view image in full size
Gemini Pro
Press enter or click to view image in full size
Before compiling the equations and running simulation
100 samples is not really nearly enough

Let’s compare two simulation runs, with 100 samples vs. 10000 samples per cell:

Press enter or click to view image in full size
Only 100 samples on the left vs 10000 samples on the right which clearly shows the triangle distribution (one half of it actually)

Matt Parker (the Stand-up Math guy) then tried to find a way to simulate the same thing, with a set of dice. But how? Another surprising result!

Press enter or click to view image in full size
The ceiling of the square root of a D36 dice gives the same distribution as the max of two cide (d1, d2)

A nice little reminder: different mechanisms can hide the same distribution underneath.

Get Pascal Bercker’s stories in your inbox

Join Medium for free to get updates from this writer.

Grant Sanderson (3Blue1Brown) then left a comment adding the following interesting observation:

@3blue1brown

1 year ago

That was fun! For all you math whizzes, here’s the challenge mode puzzle. Sample three random values uniformly in [0, 1], call them x, y, and z. What distribution describes (xy)^z. Answer: It’s a uniform! This is wild to me, and even though I can prove it formally (and somewhat tediously), it still feels mysterious. If any of you can think of a good way to “see” it, feel free to send it my way and I’ll strongly consider making a video on it.

Let’s see: As usual, I run two samples, with just 100 and then 10000 samples per cell, to see the difference.

Press enter or click to view image in full size
Surprisingly (XY)^Z gives a uniform distribution

In his YouTube video, he left a public link to the ChatGPT discussion that helped spark his curiosity (see link below) and explains why this occurs.

--

--

Pascal Bercker
Pascal Bercker

Written by Pascal Bercker

Philosophy | philosophy of science | logic | Bayesian networks and logic puzzles | keen on the use of Bayesian networks to solve Smullyan-type logic puzzles