Why is the minus sign removed in information entropy calculations?

  • Thread starter Thread starter dervast
  • Start date Start date
  • Tags Tags
    Entropy
Click For Summary

Homework Help Overview

The discussion revolves around the concept of information entropy, specifically the calculation of entropy for a uniform distribution and the interpretation of the results. Participants are exploring the mathematical formulation of entropy and its implications in information theory.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants are attempting to calculate entropy for a random variable with a uniform distribution and questioning the removal of the minus sign in the final result. There is also a discussion about the logarithmic base used in calculations and its relevance to the entropy value.

Discussion Status

The discussion is active, with participants providing insights and clarifications regarding the calculations. Some participants are questioning the use of logarithmic functions and their bases, while others are seeking further information on related concepts such as binary symmetric channels.

Contextual Notes

There is mention of a specific problem involving a uniform distribution over 32 outcomes, and participants are navigating through potential misunderstandings regarding logarithmic calculations and notation. The original poster expresses a need for additional resources and clarification on certain terms not covered in their textbook.

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
The result is 5. log(1/32)=(-5).
 
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
 

Similar threads

Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
5
Views
2K
Replies
6
Views
12K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
5K
Replies
2
Views
14K
  • · Replies 17 ·
Replies
17
Views
3K
Replies
3
Views
2K