In information theory, Shannon entropy measures the average amount of information or uncertainty in a probability distribution.