Source: https://www.princeton.edu/~cuff/ele201/kulkarni_text/frequency.pdf