> It's not clear why there are minus signs in the following line:
> = -9/14 log2 9/14 - 5/14 log2 5/14 = 0.947 bits
Because the log of numbers less than one is negative. The - makes the result positive. Technically, the definition of entropy includes the minus:
Sum ( - p log p)
More information about formatting options
> It's not clear why there
> It's not clear why there are minus signs in the following line:
> = -9/14 log2 9/14 - 5/14 log2 5/14 = 0.947 bits
Because the log of numbers less than one is negative. The - makes the result positive. Technically, the definition of entropy includes the minus:
Sum ( - p log p)