SOLUTION TO EXAM NO. 1 Problem No. 1: Entropy Calculations Let p(x, y) be given by: (a) Compute H(X) and H(Y). H(X) is given by: And H(Y) is given by: We need to find p(x) and p(y) from p(x, y) given in the problem statement. Now that we have all the marginal probabilities, we can calculate H(X) and H(Y) according to the formulas given above (repeated here). (b) Compute H(X, Y). H(X, Y) is given by: (c) Compute H(Y/X). We need p(y/x) to calculate for H(Y/X). (d) Justify any differences between H(X,Y) and H(Y/X). Note that this doesn't require that the anaswers to parts (a)-(c) are correct. By definition, H(X, Y) = H(X) + H(Y/X) Also look at the Venn diagram of the above definition given below: H(X, Y) is the entropy of X and Y which is the sum of the entropy of X and Y if X and Y are independent. If X and Y are dependent as in the Venn diagram, then H(X, Y) is the sum of the entropy of X and the entropy of Y given that X is known. Problem No. 2: Professional Golf Jack Nicklaus and Tiger Woods decide to play a series of matches to decide who is the best golfer in the world (of course, everyone knows it is Arnold Palmer). Tiger Woods, being a Stanford graduate, recalls the Information Theory course he took from Prof. Cover and decides to put what he learned to good use. In discussing the format of the match with Jack Nicklaus (who didn't take Information Theory), Mr. Woods obviously would like to choose a format that maximizes his chances of winning. It is a given tht the longer they play, the more Jack Nicklaus will tire (hence, the better chance Tiger Woods has to win). Let's suppose the probability of Tiger Woods winning a given match is P(A)= 1-1/n, where A is the event that Tiger Woods wins and n is the match number. Obviously, they won't play indefinitely, so let's assume 1<=n<=8. (a) Using concepts discussed in this course, determine what strategy Tiger Woods should use in deciding the number and format of matches to be played. We want Tiger Woods to win. Tiger Wood is more likely to win if p(A) > 0.5. So if he plans to play for one game, he will lose p(A)=0. If he plans to play for two games, Nicklaus will win the first game, and they both have equal chances of winning the second game so Nicklaus is still in better shape than Woods. If Woods plans to play for three games, Nicklaus still wins the first game, they both have equal chance of winning the second game, but Woods will have a better chance of winning the third game. So Woods should plan to play at least three games to have a chance of beating Nicklaus. (b) If I want to bet on this match, obviously I would like to maximize my chances of winning. Using the concepts discussed in this course, develop and prove an optimal betting strategy. In other words, under what conditions should I bet? If they play for one game, you should bet a lot of money on Nicklaus since we know for sure he will win. If they play for two games and if you are poor, don't bet on this match since either has equal chance of winning. If they play for three games, bet on Woods since he has better chance to win the match. If they play more and more games per match, bet on Woods. Problem No. 3: The Browsing Dog A dog walks on the integers, possibly reversing direction at each step with probability p = 0.1. Let Xo = 0. The first step is equally likely to be positive of negative. A typical walk might look like this: (a) Prove the chain rule for entropy. Let be drawn according to . Then Proof: By repeated application of the two-variable expansion rule for entropies, we have . . . (b) Find . Since We know Xo = 0 The dog can take one of two directions (c) Find the entropy rate of the browsing dog. Entropy rate is given by: (d) What is the expected number of steps the dog takes before reversing direction? Let n be the number of steps taken before reversing. g(n) is a function of n, g(n) = n. where a=same direction and b=change direction Since The dog takes 10 steps before reversing. It reverses on the 11th step.