Entropy is formally defined as the expected surprise of a random variable . It is calculated using the formula , where is the probability mass function of .
Conditions: is a discrete random variable.; The summation runs over all possible values of .; is the probability mass function, satisfying and .; Using logarithm base two yields entropy measured in bits.
Entropy is formally defined as the expected surprise of a random variable . It is calculated using the formula , where is the probability mass function of .
Conditions: is a discrete random variable.; The summation runs over all possible values of .; is the probability mass function, satisfying and .; Using logarithm base two yields entropy measured in bits.