Random fact of the day: imagine you have weights a₁,...,aₙ≥0 and want to sample according to these weights. What's an efficient way to do so? You may say Huffman coding, etc. Yes, but... there's a way that's more fun: the Gumbel trick!
35 likes 2 replies
?