Tanul Singh
BlogPapersProjectsAbout

notes/

Notes

Short notes capturing the intuitions that clicked while building things. Usually one question I had and what I figured out.

June 6, 2026
Is "expected value = probability" circular?

For a fair coin, the expected value of the flip equals the probability of heads. Defining probability through expected value seems circular — but it's actually a bridge between math and reality.

June 6, 2026
The arithmetic mean is expected value in disguise

The mean you learned in school is just expected value when every outcome is equally likely. Drop the uniform-probability assumption and you get a weighted sum — which leads directly to entropy.

June 6, 2026
Surprise and information are the same thing

Entropy measures how much you'll be surprised on average. Surprise measures how much information you gain. These are not two related concepts — they're literally identical.

June 6, 2026
Why UTF-8 doesn't compress anything

If every character gets 8 bits, you're implicitly assuming uniform probability — and uniform probability means zero compression.

© 2026 Tanul Singh. Built with curiosity.