Re: Shannon's information theory
From: Erik Trulsson (ertr1013_at_student.uu.se)
Date: 12/21/04
- Next message: Ralph Hartley: "Re: Zenkin's paper on Cantor (reply of Dr. Zenkin)"
- Previous message: Thomas B.: "Shannon's information theory"
- In reply to: Thomas B.: "Shannon's information theory"
- Next in thread: r.e.s.: "Re: Shannon's information theory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 21 Dec 2004 13:25:10 GMT
Thomas B. <thetom@unixisnot4dummies.org> wrote:
> Hello.
> I have a question about calculating the entropy of an integer
> value (32 bit).
>
> Let's call the value x. x's range is 0-(2^32-1).
> I make a meassure of x. I got 5 samples and x is
> 100 everytime.
> I repeat this experiment to verify my results,
> everytime x is 5 times 100.
>
> Therefore my mind tells me: no entropy.
>
> But what about the formula? How should I set
> the probability?
>
> If I set p to 5/5 = 1 then entropy is 0.
> (5 times occurence, 5 samples)
> But this looks wrong, because x can be
> every value from 0 to 2^32-1.
But is every value equally probable?
>From your description above it seems unlikely.
> Therefore p = 5/2^32 which leads to an entropy > 0.
>
> So what does matter:
> a) the number of theoretically possible values
> x can have?
> b) the number of different values that really
> occur?
Both. What actually matters is the probability for each possible
value to occur.
(Note: Just taking a small number of samples from some random
distribution of values will not enable you to make an accurate
calculation of the entropy of the distribution, only to make a
reasonable guess. To calculate the entropy you need to know what the
distribution looks like.)
-- <Insert your favourite quote here.> Erik Trulsson ertr1013@student.uu.se
- Next message: Ralph Hartley: "Re: Zenkin's paper on Cantor (reply of Dr. Zenkin)"
- Previous message: Thomas B.: "Shannon's information theory"
- In reply to: Thomas B.: "Shannon's information theory"
- Next in thread: r.e.s.: "Re: Shannon's information theory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|