TL;DR
Shannon Entropy and Optimal Binary Codes: A canonical quantitative trading interview question at intermediate difficulty. Commonly asked at Two Sigma, DE Shaw, Citadel.
By Valenke Exam Prep Team·Last updated 2026-06-01
intermediateInformation & Entropy
Shannon Entropy and Optimal Binary Codes
Asked at: Two Sigma, DE Shaw, Citadel
Problem
A source emits symbols with probabilities . Compute the Shannon entropy. Construct an optimal prefix-free binary code and verify it achieves the entropy bound.
Related concepts
Ready to practice for the Valenke Finance Exam?
Adaptive practice powered by Item Response Theory targets your weak areas. Start with 3 free sessions.
Start free practice →