PinnedRuimin PanThe Curious Case of Poisson Noise and MATLAB ‘imnoise’ CommandThe curious scaling of ‘imnoise’11 min read·Apr 13, 2023----
PinnedRuimin PanThe Juggling Algorithm1. The ‘back to the future’ operation14 min read·Apr 15, 2023----
Ruimin PanThe broken stick problemI was asked a question recently: if you break a stick in three segments, what’s the probability that the three segments can form a…9 min read·May 17, 2024----
Ruimin PanThe differences between a mathematician and a software engineer: how you can tell with a simple…What are the differences (yes, plural) between a mathematician and a software engineer when it comes to coding? I have been asked this…7 min read·Mar 12, 2024----
Ruimin PanOne girl policyAs someone from the ‘one child policy’ era (roughly from 1980 to 2015) in China, I had for a long time believed that this policy will give…4 min read·Jul 8, 2023----
Ruimin PanSimple dynamic programming with diceIf you play any kind of boardgames, you’d be familiar with dice. They generally look like this:5 min read·Jul 7, 2023----
Ruimin PanWhat about two dice?Everyone knows how to calculate the chance of getting a 6 from throwing a standard die with numbers from 1 to 6 on its 6 faces. “But what…4 min read·Jul 5, 2023----