|
|
|
|
|
by _wldu
1380 days ago
|
|
One example I like to use (when talking about entropy): A four digit numeric PIN (that we know) has 0 bits of entropy. There is no uncertainty about what the PIN actually is. A randomly selected one (that we do not know) has just over 13 bits. print(math.log(10)/math.log(2)*4) 13.28771237954945 The more entropy, the more uncertain we are. However, humans are not random. We use the year we were born, some keyboard sequence or some other predictable number as our PIN. We don't know exactly how much entropy these PINS have (there is some degree of uncertainty), but we do know they are significantly less than 13 bits. |
|
[1]: https://blog.kardas.org/post/entropy/ (Average Code Length section)