Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Sampling a categorical: more than meets the eye (msmetko.xyz)
3 points by incognito124 on Jan 4, 2025 | hide | past | favorite | 1 comment


I explored three ways to sample from a categorical random variable and wrote code to experiment with runtime performance. The math is made concrete with graphs and ideas with code. It turned out that added complexity is not always worth it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: