Why is the minus sign removed in information entropy calculations?

  • Thread starter Thread starter dervast
  • Start date Start date
  • Tags Tags
    Entropy
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
5 replies · 9K views
dervast
Messages
132
Reaction score
1
Hey to the nice community. I am reading about information entropy a size that can be calculated by the H(x)=-Sum[p(x)log(2)p(x)]
then i want to calculate the entropy for the following problem. Consider a random variable that has a uniform distribution over 32 outcomes and i want to find the entroyp
H(x)=-Sum(1/32*log(1/32) and i ll sum 32 times the quantity before . /the problem is that the result is -5 and the book says that the entropy is 5 bits. Why do we remoive the minus sign fromentropy calculations?
 
Physics news on Phys.org
My excel calculates the =LOG(1/32;0.5)
for 5 and not for -5 as u mention
 
Thx a lot for your reply
now i need something more
Why in a binary symetric channel the channel is calculated for
C=1+plogp+(1-p)log(1-p)

I only know that the channel is denoted as C=maxI(X;Y)
btw what ; means in X;Y?
Unfortunately my book doesn't mention these things so if u can reply me or provide me with some good links that will be rezlly nice
 
LOG(1/32;0.5)? Isn't that the log base 1/2? Thought you wanted log base 2? Why not LOG(1/32;2)? As for your followup question - I don't know!? You might want to start a new thread and see if you can find someone who does.
 
Thx a lot.. u are right i have used the function log incorrectly. As for my 2nd question i ll wait to see if someone will reply.
Thx a lot for help though