|
|
|
|
|
Back to : Text, Bytes and Videotape Main Page
Text, Bytes and VideotapeTask 2: Supporting notesGo to calculating logs Formula for calculating entropy
This formula can be rewritten in the form:
Start by making sure you see how this expanded form relates to the formula above. Remember the The first situation you are going to find the entropy for is the coin toss. Here we only have two events, so we just need to consider s = 1 and s = 2. The term p(s) is the probability of term s, so for the coin toss this means the probability of the two possible events, getting a head or a tail. This means that p(1) = 1/2 and p(2) = 1/2 also. We then have to work out log2 p(s) for each outcome, so at this point, we need to consider what the 'log' terms mean. Return to Task 3 to work through a question to help you with this, and use the answers to Task 3 to check what you get for this first section of Task 3, if this is new to you. Finding logs to the base of 2log 100 or log10100 (which means the same thing) is
the power to which 10 has to be raised to give 100, ie. 2. So we can say log10100
= 2, or, equivalently 102 = 100. The log function is the inverse
of the function which raises a base number to a power. This is fine where we want to find the logs corresponding to exact powers of 2, but it only gives us a starting point for finding things like log22/3 or log21/3, as you have to do in question 5 of Task 3. We can get a starting point for both these by noting that log21 = 0 (since 20 = 1), log21/2 = -1 and log21/4 = -2. This tells us that log22/3 is between -1 and 0, and that log21/3 is between -2 and -1. We can use a spreadsheet to get a more exact value for these
If you read the x value corresponding to the 2x value as close to 2/3 as possible you can see that log22/3 is around -0.6, and similarly that log21/3 is around -1.6. You can get more accurate values by decreasing the intervals between x values. An exact way to find values for logs to base 2, is to use the
properties of relationships involving powers. We can use this relationship to change the base of a log.
This gives us: These are both values which can be found using a calculator. Check your values of log22/3 and log21/3 using this method. Bookmakers' oddsOdds of 1/2 on an outcome mean that the bookmaker thinks the ratio of the probability that it won't happen to the probability that it will happen is 1:2. This means that he thinks there is a 1/3 chance it won't happen and a 2/3 chance it will. Odds of 3/2 mean the bookmaker thinks the probability it will happen is 2/5, and the probability that it won't happen is 3/5.
Return to top Return to Text, Bytes, and Videotape homepage. Back to : Text, Bytes and Videotape Main Page contact | accessibility © 2002 Millennium Mathematics Project, University of Cambridge
|
||||||||||||||||||||