<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pprof on Bobby's page</title><link>https://bobbyphilip.github.io/blog/pprof/</link><description>Recent content in Pprof on Bobby's page</description><generator>Hugo</generator><language>en</language><copyright>Copyright © 2026, Bobby Alex Philip.</copyright><lastBuildDate>Mon, 08 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://bobbyphilip.github.io/blog/pprof/index.xml" rel="self" type="application/rss+xml"/><item><title>Calculating π from random numbers</title><link>https://bobbyphilip.github.io/calculating-%CF%80-from-random-numbers/</link><pubDate>Mon, 08 Jun 2026 00:00:00 +0000</pubDate><guid>https://bobbyphilip.github.io/calculating-%CF%80-from-random-numbers/</guid><description>&lt;p&gt;Matt Parker of &lt;a href="https://www.youtube.com/@standupmaths"&gt;Stand-up Maths&lt;/a&gt; fame has a yearly series where he tries to calculate π by various,(sometimes ridiculous) techniques. &lt;a href="https://www.youtube.com/watch?v=lmgCgzjlWO4"&gt;This&lt;/a&gt; is a personal favourite, where he uses Avogadro&amp;rsquo;s number and it was more accurate than I would have expected.
The rest of this post is based on &lt;a href="https://www.youtube.com/watch?v=RZBhSi_PwHU"&gt;this&lt;/a&gt; video from 2017 and basically boils down to the fact that the probability of two random numbers being co-prime is 6/ π^2. This comes from a famous problem in mathematical analysis called the &lt;a href="https://en.wikipedia.org/wiki/Basel_problem"&gt;Basel Problem&lt;/a&gt; and was solved by Euler&lt;/p&gt;</description></item></channel></rss>