Expected Value and Variance

Transcription

1 Chapter 6 Expected Value and Variance 6.1 Expected Value of Discrete Random Variables When a large collection of numbers is assembled, as in a census, we are usually interested not in the individual numbers, but rather in certain descriptive quantities such as the average or the median. In general, the same is true for the probability distribution of a numerically-valued random variable. In this and in the next section, we shall discuss two such descriptive quantities: the expected value and the variance. Both of these quantities apply only to numerically-valued random variables, and so we assume, in these sections, that all random variables have numerical values. To give some intuitive justification for our definition, we consider the following game. Average Value A die is rolled. If an odd number turns up, we win an amount equal to this number; if an even number turns up, we lose an amount equal to this number. For example, if a two turns up we lose 2, and if a three comes up we win 3. We want to decide if this is a reasonable game to play. We first try simulation. The program Die carries out this simulation. The program prints the frequency and the relative frequency with which each outcome occurs. It also calculates the average winnings. We have run the program twice. The results are shown in Table 6.1. In the first run we have played the game 100 times. In this run our average gain is.57. It looks as if the game is unfavorable, and we wonder how unfavorable it really is. To get a better idea, we have played the game 10,000 times. In this case our average gain is We note that the relative frequency of each of the six possible outcomes is quite close to the probability 1/6 for this outcome. This corresponds to our frequency interpretation of probability. It also suggests that for very large numbers of plays, our average gain should be ( 1 ( 1 ( 1 ( 1 ( 1 ( 1 µ = ) 6) 6) 6) 6) 6) 225

2 226 CHAPTER 6. EXPECTED VALUE AND VARIANCE n = 100 n = Winning Frequency Relative Frequency Relative Frequency Frequency Table 6.1: Frequencies for dice game. = = 3 6 =.5. This agrees quite well with our average gain for 10,000 plays. We note that the value we have chosen for the average gain is obtained by taking the possible outcomes, multiplying by the probability, and adding the results. This suggests the following definition for the expected outcome of an experiment. Expected Value Definition 6.1 Let X be a numerically-valued discrete random variable with sample space Ω and distribution function m(x). The expected value E(X) is defined by E(X) = x Ω xm(x), provided this sum converges absolutely. We often refer to the expected value as the mean, and denote E(X) by µ for short. If the above sum does not converge absolutely, then we say that X does not have an expected value. Example 6.1 Let an experiment consist of tossing a fair coin three times. Let X denote the number of heads which appear. Then the possible values of X are 0, 1, 2 and 3. The corresponding probabilities are 1/8, 3/8, 3/8, and 1/8. Thus, the expected value of X equals ( ) ( ) ( ) ( ) = Later in this section we shall see a quicker way to compute this expected value, based on the fact that X can be written as a sum of simpler random variables. Example 6.2 Suppose that we toss a fair coin until a head first comes up, and let X represent the number of tosses which were made. Then the possible values of X are 1, 2,..., and the distribution function of X is defined by m(i) = 1 2 i.

3 6.1. EXPECTED VALUE 227 (This is just the geometric distribution with parameter 1/2.) Thus, we have E(X) = = i 1 2 i i=1 i=1 1 2 i i + i=2 = = 2. Example 6.3 (Example 6.2 continued) Suppose that we flip a coin until a head first appears, and if the number of tosses equals n, then we are paid 2 n dollars. What is the expected value of the payment? We let Y represent the payment. Then, for n 1. Thus, P (Y = 2 n ) = 1 2 n, E(Y ) = n=1 2 n 1 2 n, which is a divergent sum. Thus, Y has no expectation. This example is called the St. Petersburg Paradox. The fact that the above sum is infinite suggests that a player should be willing to pay any fixed amount per game for the privilege of playing this game. The reader is asked to consider how much he or she would be willing to pay for this privilege. It is unlikely that the reader s answer is more than 10 dollars; therein lies the paradox. In the early history of probability, various mathematicians gave ways to resolve this paradox. One idea (due to G. Cramer) consists of assuming that the amount of money in the world is finite. He thus assumes that there is some fixed value of n such that if the number of tosses equals or exceeds n, the payment is 2 n dollars. The reader is asked to show in Exercise 20 that the expected value of the payment is now finite. Daniel Bernoulli and Cramer also considered another way to assign value to the payment. Their idea was that the value of a payment is some function of the payment; such a function is now called a utility function. Examples of reasonable utility functions might include the square-root function or the logarithm function. In both cases, the value of 2n dollars is less than twice the value of n dollars. It can easily be shown that in both cases, the expected utility of the payment is finite (see Exercise 20).

4 228 CHAPTER 6. EXPECTED VALUE AND VARIANCE Example 6.4 Let T be the time for the first success in a Bernoulli trials process. Then we take as sample space Ω the integers 1, 2,... and assign the geometric distribution m(j) = P (T = j) = q j 1 p. Thus, Now if x < 1, then Differentiating this formula, we get so E(T ) = 1 p + 2qp + 3q 2 p + = p(1 + 2q + 3q 2 + ). 1 + x + x 2 + x 3 + = 1 1 x x + 3x 2 + = E(T ) = 1 (1 x) 2, p (1 q) 2 = p p 2 = 1 p. In particular, we see that if we toss a fair coin a sequence of times, the expected time until the first heads is 1/(1/2) = 2. If we roll a die a sequence of times, the expected number of rolls until the first six is 1/(1/6) = 6. Interpretation of Expected Value In statistics, one is frequently concerned with the average value of a set of data. The following example shows that the ideas of average value and expected value are very closely related. Example 6.5 The heights, in inches, of the women on the Swarthmore basketball team are 5 9, 5 9, 5 6, 5 8, 5 11, 5 5, 5 7, 5 6, 5 6, 5 7, 5 10, and 6 0. A statistician would compute the average height (in inches) as follows: = One can also interpret this number as the expected value of a random variable. To see this, let an experiment consist of choosing one of the women at random, and let X denote her height. Then the expected value of X equals Of course, just as with the frequency interpretation of probability, to interpret expected value as an average outcome requires further justification. We know that for any finite experiment the average of the outcomes is not predictable. However, we shall eventually prove that the average will usually be close to E(X) if we repeat the experiment a large number of times. We first need to develop some properties of the expected value. Using these properties, and those of the concept of the variance

5 6.1. EXPECTED VALUE 229 X Y HHH 1 HHT 2 HTH 3 HTT 2 THH 2 THT 3 TTH 2 TTT 1 Table 6.2: Tossing a coin three times. to be introduced in the next section, we shall be able to prove the Law of Large Numbers. This theorem will justify mathematically both our frequency concept of probability and the interpretation of expected value as the average value to be expected in a large number of experiments. Expectation of a Function of a Random Variable Suppose that X is a discrete random variable with sample space Ω, and φ(x) is a real-valued function with domain Ω. Then φ(x) is a real-valued random variable. One way to determine the expected value of φ(x) is to first determine the distribution function of this random variable, and then use the definition of expectation. However, there is a better way to compute the expected value of φ(x), as demonstrated in the next example. Example 6.6 Suppose a coin is tossed 9 times, with the result HHHT T T T HT. The first set of three heads is called a run. There are three more runs in this sequence, namely the next four tails, the next head, and the next tail. We do not consider the first two tosses to constitute a run, since the third toss has the same value as the first two. Now suppose an experiment consists of tossing a fair coin three times. Find the expected number of runs. It will be helpful to think of two random variables, X and Y, associated with this experiment. We let X denote the sequence of heads and tails that results when the experiment is performed, and Y denote the number of runs in the outcome X. The possible outcomes of X and the corresponding values of Y are shown in Table 6.2. To calculate E(Y ) using the definition of expectation, we first must find the distribution function m(y) of Y i.e., we group together those values of X with a common value of Y and add their probabilities. In this case, we calculate that the distribution function of Y is: m(1) = 1/4, m(2) = 1/2, and m(3) = 1/4. One easily finds that E(Y ) = 2.

6 230 CHAPTER 6. EXPECTED VALUE AND VARIANCE Now suppose we didn t group the values of X with a common Y -value, but instead, for each X-value x, we multiply the probability of x and the corresponding value of Y, and add the results. We obtain ( ) ( 1 8 ) + 3 ( 1 8 ) + 2 ( 1 8 ) + 2 ( 1 8 ) + 3 ( 1 8 ) + 2 ( 1 8 ) + 1 ( ) 1, 8 which equals 2. This illustrates the following general principle. If X and Y are two random variables, and Y can be written as a function of X, then one can compute the expected value of Y using the distribution function of X. Theorem 6.1 If X is a discrete random variable with sample space Ω and distribution function m(x), and if φ : Ω R is a function, then E(φ(X)) = x Ω φ(x)m(x), provided the series converges absolutely. The proof of this theorem is straightforward, involving nothing more than grouping values of X with a common Y -value, as in Example 6.6. The Sum of Two Random Variables Many important results in probability theory concern sums of random variables. We first consider what it means to add two random variables. Example 6.7 We flip a coin and let X have the value 1 if the coin comes up heads and 0 if the coin comes up tails. Then, we roll a die and let Y denote the face that comes up. What does X + Y mean, and what is its distribution? This question is easily answered in this case, by considering, as we did in Chapter 4, the joint random variable Z = (X, Y ), whose outcomes are ordered pairs of the form (x, y), where 0 x 1 and 1 y 6. The description of the experiment makes it reasonable to assume that X and Y are independent, so the distribution function of Z is uniform, with 1/12 assigned to each outcome. Now it is an easy matter to find the set of outcomes of X + Y, and its distribution function. In Example 6.1, the random variable X denoted the number of heads which occur when a fair coin is tossed three times. It is natural to think of X as the sum of the random variables X 1, X 2, X 3, where X i is defined to be 1 if the ith toss comes up heads, and 0 if the ith toss comes up tails. The expected values of the X i s are extremely easy to compute. It turns out that the expected value of X can be obtained by simply adding the expected values of the X i s. This fact is stated in the following theorem.

8 232 CHAPTER 6. EXPECTED VALUE AND VARIANCE X Y a b c 3 a c b 1 b a c 1 b c a 0 c a b 0 c b a 1 Table 6.3: Number of fixed points. It is easy to prove by mathematical induction that the expected value of the sum of any finite number of random variables is the sum of the expected values of the individual random variables. It is important to note that mutual independence of the summands was not needed as a hypothesis in the Theorem 6.2 and its generalization. The fact that expectations add, whether or not the summands are mutually independent, is sometimes referred to as the First Fundamental Mystery of Probability. Example 6.8 Let Y be the number of fixed points in a random permutation of the set {a, b, c}. To find the expected value of Y, it is helpful to consider the basic random variable associated with this experiment, namely the random variable X which represents the random permutation. There are six possible outcomes of X, and we assign to each of them the probability 1/6 see Table 6.3. Then we can calculate E(Y ) using Theorem 6.1, as ( 1 ( 1 ( 1 ( ) 6) 6) 6) ( 1 ( = 1. 6) 6) We now give a very quick way to calculate the average number of fixed points in a random permutation of the set {1, 2, 3,..., n}. Let Z denote the random permutation. For each i, 1 i n, let X i equal 1 if Z fixes i, and 0 otherwise. So if we let F denote the number of fixed points in Z, then Therefore, Theorem 6.2 implies that But it is easy to see that for each i, so F = X 1 + X X n. E(F ) = E(X 1 ) + E(X 2 ) + + E(X n ). E(X i ) = 1 n, E(F ) = 1. This method of calculation of the expected value is frequently very useful. It applies whenever the random variable in question can be written as a sum of simpler random variables. We emphasize again that it is not necessary that the summands be mutually independent.

9 6.1. EXPECTED VALUE 233 Bernoulli Trials Theorem 6.3 Let S n be the number of successes in n Bernoulli trials with probability p for success on each trial. Then the expected number of successes is np. That is, E(S n ) = np. Proof. Let X j be a random variable which has the value 1 if the jth outcome is a success and 0 if it is a failure. Then, for each X j, E(X j ) = 0 (1 p) + 1 p = p. Since S n = X 1 + X X n, and the expected value of the sum is the sum of the expected values, we have E(S n ) = E(X 1 ) + E(X 2 ) + + E(X n ) = np. Poisson Distribution Recall that the Poisson distribution with parameter λ was obtained as a limit of binomial distributions with parameters n and p, where it was assumed that np = λ, and n. Since for each n, the corresponding binomial distribution has expected value λ, it is reasonable to guess that the expected value of a Poisson distribution with parameter λ also has expectation equal to λ. This is in fact the case, and the reader is invited to show this (see Exercise 21). Independence If X and Y are two random variables, it is not true in general that E(X Y ) = E(X)E(Y ). However, this is true if X and Y are independent. Theorem 6.4 If X and Y are independent random variables, then E(X Y ) = E(X)E(Y ). Proof. Suppose that and Ω X = {x 1, x 2,...} Ω Y = {y 1, y 2,...}

10 234 CHAPTER 6. EXPECTED VALUE AND VARIANCE are the sample spaces of X and Y, respectively. Using Theorem 6.1, we have E(X Y ) = x j y k P (X = x j, Y = y k ). j But if X and Y are independent, P (X = x j, Y = y k ) = P (X = x j )P (Y = y k ). k Thus, E(X Y ) = x j y k P (X = x j )P (Y = y k ) j k = ( ) x j P (X = x j ) y k P (Y = y k ) j = E(X)E(Y ). k Example 6.9 A coin is tossed twice. X i = 1 if the ith toss is heads and 0 otherwise. We know that X 1 and X 2 are independent. They each have expected value 1/2. Thus E(X 1 X 2 ) = E(X 1 )E(X 2 ) = (1/2)(1/2) = 1/4. We next give a simple example to show that the expected values need not multiply if the random variables are not independent. Example 6.10 Consider a single toss of a coin. We define the random variable X to be 1 if heads turns up and 0 if tails turns up, and we set Y = 1 X. Then E(X) = E(Y ) = 1/2. But X Y = 0 for either outcome. Hence, E(X Y ) = 0 E(X)E(Y ). We return to our records example of Section 3.1 for another application of the result that the expected value of the sum of random variables is the sum of the expected values of the individual random variables. Records Example 6.11 We start keeping snowfall records this year and want to find the expected number of records that will occur in the next n years. The first year is necessarily a record. The second year will be a record if the snowfall in the second year is greater than that in the first year. By symmetry, this probability is 1/2. More generally, let X j be 1 if the jth year is a record and 0 otherwise. To find E(X j ), we need only find the probability that the jth year is a record. But the record snowfall for the first j years is equally likely to fall in any one of these years,

11 6.1. EXPECTED VALUE 235 so E(X j ) = 1/j. Therefore, if S n is the total number of records observed in the first n years, E(S n ) = n. This is the famous divergent harmonic series. It is easy to show that E(S n ) log n as n. A more accurate approximation to E(S n ) is given by the expression log n + γ + 1 2n, where γ denotes Euler s constant, and is approximately equal to Therefore, in ten years the expected number of records is approximately ; the exact value is the sum of the first ten terms of the harmonic series which is Craps Example 6.12 In the game of craps, the player makes a bet and rolls a pair of dice. If the sum of the numbers is 7 or 11 the player wins, if it is 2, 3, or 12 the player loses. If any other number results, say r, then r becomes the player s point and he continues to roll until either r or 7 occurs. If r comes up first he wins, and if 7 comes up first he loses. The program Craps simulates playing this game a number of times. We have run the program for 1000 plays in which the player bets 1 dollar each time. The player s average winnings were.006. The game of craps would seem to be only slightly unfavorable. Let us calculate the expected winnings on a single play and see if this is the case. We construct a two-stage tree measure as shown in Figure 6.1. The first stage represents the possible sums for his first roll. The second stage represents the possible outcomes for the game if it has not ended on the first roll. In this stage we are representing the possible outcomes of a sequence of rolls required to determine the final outcome. The branch probabilities for the first stage are computed in the usual way assuming all 36 possibilites for outcomes for the pair of dice are equally likely. For the second stage we assume that the game will eventually end, and we compute the conditional probabilities for obtaining either the point or a 7. For example, assume that the player s point is 6. Then the game will end when one of the eleven pairs, (1, 5), (2, 4), (3, 3), (4, 2), (5, 1), (1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1), occurs. We assume that each of these possible pairs has the same probability. Then the player wins in the first five cases and loses in the last six. Thus the probability of winning is 5/11 and the probability of losing is 6/11. From the path probabilities, we can find the probability that the player wins 1 dollar; it is 244/495. The probability of losing is then 251/495. Thus if X is his winning for

13 6.1. EXPECTED VALUE 237 a dollar bet, ( 244 E(X) = ) + ( 1) = ( 251 ) 495 The game is unfavorable, but only slightly. The player s expected gain in n plays is n(.0141). If n is not large, this is a small expected loss for the player. The casino makes a large number of plays and so can afford a small average gain per play and still expect a large profit. Roulette Example 6.13 In Las Vegas, a roulette wheel has 38 slots numbered 0, 00, 1, 2,..., 36. The 0 and 00 slots are green, and half of the remaining 36 slots are red and half are black. A croupier spins the wheel and throws an ivory ball. If you bet 1 dollar on red, you win 1 dollar if the ball stops in a red slot, and otherwise you lose a dollar. We wish to calculate the expected value of your winnings, if you bet 1 dollar on red. Let X be the random variable which denotes your winnings in a 1 dollar bet on red in Las Vegas roulette. Then the distribution of X is given by m X = ( /38 18/38 and one can easily calculate (see Exercise 5) that E(X) We now consider the roulette game in Monte Carlo, and follow the treatment of Sagan. 1 In the roulette game in Monte Carlo there is only one 0. If you bet 1 franc on red and a 0 turns up, then, depending upon the casino, one or more of the following options may be offered: (a) You get 1/2 of your bet back, and the casino gets the other half of your bet. (b) Your bet is put in prison, which we will denote by P 1. If red comes up on the next turn, you get your bet back (but you don t win any money). If black or 0 comes up, you lose your bet. (c) Your bet is put in prison P 1, as before. If red comes up on the next turn, you get your bet back, and if black comes up on the next turn, then you lose your bet. If a 0 comes up on the next turn, then your bet is put into double prison, which we will denote by P 2. If your bet is in double prison, and if red comes up on the next turn, then your bet is moved back to prison P 1 and the game proceeds as before. If your bet is in double prison, and if black or 0 come up on the next turn, then you lose your bet. We refer the reader to Figure 6.2, where a tree for this option is shown. In this figure, S is the starting position, W means that you win your bet, L means that you lose your bet, and E means that you break even. 1 H. Sagan, Markov Chains in Monte Carlo, Math. Mag., vol. 54, no. 1 (1981), pp ),

14 238 CHAPTER 6. EXPECTED VALUE AND VARIANCE W S L E E P 1 L P L 1 P1 P 2 P L 2 L L L Figure 6.2: Tree for 2-prison Monte Carlo roulette. It is interesting to compare the expected winnings of a 1 franc bet on red, under each of these three options. We leave the first two calculations as an exercise (see Exercise 37). Suppose that you choose to play alternative (c). The calculation for this case illustrates the way that the early French probabilists worked problems like this. Suppose you bet on red, you choose alternative (c), and a 0 comes up. Your possible future outcomes are shown in the tree diagram in Figure 6.3. Assume that your money is in the first prison and let x be the probability that you lose your franc. From the tree diagram we see that Also, x = P (you lose your franc your franc is in P 2). P (you lose your franc your franc is in P 2 ) = x. So, we have x = ( ) 37 x. Solving for x, we obtain x = 685/1351. Thus, starting at S, the probability that you lose your bet equals x = To find the probability that you win when you bet on red, note that you can only win if red comes up on the first turn, and this happens with probability 18/37. Thus your expected winnings are =

15 6.1. EXPECTED VALUE 239 L 18/37 P 1 18/37 W L 1/37 19/37 P 2 18/37 P 1 Figure 6.3: Your money is put in prison. It is interesting to note that the more romantic option (c) is less favorable than option (a) (see Exercise 37). If you bet 1 dollar on the number 17, then the distribution function for your winnings X is ( ) 1 35 P X =, 36/37 1/37 and the expected winnings are = Thus, at Monte Carlo different bets have different expected values. In Las Vegas almost all bets have the same expected value of 2/38 =.0526 (see Exercises 4 and 5). Conditional Expectation Definition 6.2 If F is any event and X is a random variable with sample space Ω = {x 1, x 2,...}, then the conditional expectation given F is defined by E(X F ) = j x j P (X = x j F ). Conditional expectation is used most often in the form provided by the following theorem. Theorem 6.5 Let X be a random variable with sample space Ω. If F 1, F 2,..., F r are events such that F i F j = for i j and Ω = j F j, then E(X) = j E(X F j )P (F j ).

16 240 CHAPTER 6. EXPECTED VALUE AND VARIANCE Proof. We have E(X F j )P (F j ) = j j = j = k = k x k P (X = x k F j )P (F j ) k x k P (X = x k and F j occurs) k x k P (X = x k and F j occurs) j x k P (X = x k ) = E(X). Example 6.14 (Example 6.12 continued) Let T be the number of rolls in a single play of craps. We can think of a single play as a two-stage process. The first stage consists of a single roll of a pair of dice. The play is over if this roll is a 2, 3, 7, 11, or 12. Otherwise, the player s point is established, and the second stage begins. This second stage consists of a sequence of rolls which ends when either the player s point or a 7 is rolled. We record the outcomes of this two-stage experiment using the random variables X and S, where X denotes the first roll, and S denotes the number of rolls in the second stage of the experiment (of course, S is sometimes equal to 0). Note that T = S + 1. Then by Theorem 6.5 E(T ) = 12 j=2 E(T X = j)p (X = j). If j = 7, 11 or 2, 3, 12, then E(T X = j) = 1. If j = 4, 5, 6, 8, 9, or 10, we can use Example 6.4 to calculate the expected value of S. In each of these cases, we continue rolling until we get either a j or a 7. Thus, S is geometrically distributed with parameter p, which depends upon j. If j = 4, for example, the value of p is 3/36 + 6/36 = 1/4. Thus, in this case, the expected number of additional rolls is 1/p = 4, so E(T X = 4) = = 5. Carrying out the corresponding calculations for the other possible values of j and using Theorem 6.5 gives ( 12 ) ( E(T ) = ) ( )( 36 4 ) )( 36 ( )( 5 ) ( )( 5 ) ( )( 4 ) ( )( 3 ) =

17 6.1. EXPECTED VALUE 241 Martingales We can extend the notion of fairness to a player playing a sequence of games by using the concept of conditional expectation. Example 6.15 Let S 1, S 2,..., S n be Peter s accumulated fortune in playing heads or tails (see Example 1.4). Then E(S n S n 1 = a,..., S 1 = r) = 1 2 (a + 1) + 1 (a 1) = a. 2 We note that Peter s expected fortune after the next play is equal to his present fortune. When this occurs, we say the game is fair. A fair game is also called a martingale. If the coin is biased and comes up heads with probability p and tails with probability q = 1 p, then E(S n S n 1 = a,..., S 1 = r) = p(a + 1) + q(a 1) = a + p q. Thus, if p < q, this game is unfavorable, and if p > q, it is favorable. If you are in a casino, you will see players adopting elaborate systems of play to try to make unfavorable games favorable. Two such systems, the martingale doubling system and the more conservative Labouchere system, were described in Exercises and Unfortunately, such systems cannot change even a fair game into a favorable game. Even so, it is a favorite pastime of many people to develop systems of play for gambling games and for other games such as the stock market. We close this section with a simple illustration of such a system. Stock Prices Example 6.16 Let us assume that a stock increases or decreases in value each day by 1 dollar, each with probability 1/2. Then we can identify this simplified model with our familiar game of heads or tails. We assume that a buyer, Mr. Ace, adopts the following strategy. He buys the stock on the first day at its price V. He then waits until the price of the stock increases by one to V + 1 and sells. He then continues to watch the stock until its price falls back to V. He buys again and waits until it goes up to V + 1 and sells. Thus he holds the stock in intervals during which it increases by 1 dollar. In each such interval, he makes a profit of 1 dollar. However, we assume that he can do this only for a finite number of trading days. Thus he can lose if, in the last interval that he holds the stock, it does not get back up to V + 1; and this is the only way he can lose. In Figure 6.4 we illustrate a typical history if Mr. Ace must stop in twenty days. Mr. Ace holds the stock under his system during the days indicated by broken lines. We note that for the history shown in Figure 6.4, his system nets him a gain of 4 dollars. We have written a program StockSystem to simulate the fortune of Mr. Ace if he uses his sytem over an n-day period. If one runs this program a large number

18 242 CHAPTER 6. EXPECTED VALUE AND VARIANCE Figure 6.4: Mr. Ace s system. of times, for n = 20, say, one finds that his expected winnings are very close to 0, but the probability that he is ahead after 20 days is significantly greater than 1/2. For small values of n, the exact distribution of winnings can be calculated. The distribution for the case n = 20 is shown in Figure 6.5. Using this distribution, it is easy to calculate that the expected value of his winnings is exactly 0. This is another instance of the fact that a fair game (a martingale) remains fair under quite general systems of play. Although the expected value of his winnings is 0, the probability that Mr. Ace is ahead after 20 days is about.610. Thus, he would be able to tell his friends that his system gives him a better chance of being ahead than that of someone who simply buys the stock and holds it, if our simple random model is correct. There have been a number of studies to determine how random the stock market is. Historical Remarks With the Law of Large Numbers to bolster the frequency interpretation of probability, we find it natural to justify the definition of expected value in terms of the average outcome over a large number of repetitions of the experiment. The concept of expected value was used before it was formally defined; and when it was used, it was considered not as an average value but rather as the appropriate value for a gamble. For example recall, from the Historical Remarks section of Chapter 1, Section 1.2, Pascal s way of finding the value of a three-game series that had to be called off before it is finished. Pascal first observed that if each player has only one game to win, then the stake of 64 pistoles should be divided evenly. Then he considered the case where one player has won two games and the other one. Then consider, Sir, if the first man wins, he gets 64 pistoles, if he loses he gets 32. Thus if they do not wish to risk this last game, but wish

19 6.1. EXPECTED VALUE Figure 6.5: Winnings distribution for n = 20. to separate without playing it, the first man must say: I am certain to get 32 pistoles, even if I lose I still get them; but as for the other 32 pistoles, perhaps I will get them, perhaps you will get them, the chances are equal. Let us then divide these 32 pistoles in half and give one half to me as well as my 32 which are mine for sure. He will then have 48 pistoles and the other Note that Pascal reduced the problem to a symmetric bet in which each player gets the same amount and takes it as obvious that in this case the stakes should be divided equally. The first systematic study of expected value appears in Huygens book. Like Pascal, Huygens find the value of a gamble by assuming that the answer is obvious for certain symmetric situations and uses this to deduce the expected for the general situation. He does this in steps. His first proposition is Prop. I. If I expect a or b, either of which, with equal probability, may fall to me, then my Expectation is worth (a + b)/2, that is, the half Sum of a and b. 3 Huygens proved this as follows: Assume that two player A and B play a game in which each player puts up a stake of (a + b)/2 with an equal chance of winning the total stake. Then the value of the game to each player is (a + b)/2. For example, if the game had to be called off clearly each player should just get back his original stake. Now, by symmetry, this value is not changed if we add the condition that the winner of the game has to pay the loser an amount b as a consolation prize. Then for player A the value is still (a + b)/2. But what are his possible outcomes 2 Quoted in F. N. David, Games, Gods and Gambling (London: Griffin, 1962), p C. Huygens, Calculating in Games of Chance, translation attributed to John Arbuthnot (London, 1692), p. 34.

20 244 CHAPTER 6. EXPECTED VALUE AND VARIANCE for the modified game? If he wins he gets the total stake a + b and must pay B an amount b so ends up with a. If he loses he gets an amount b from player B. Thus player A wins a or b with equal chances and the value to him is (a + b)/2. Huygens illustrated this proof in terms of an example. If you are offered a game in which you have an equal chance of winning 2 or 8, the expected value is 5, since this game is equivalent to the game in which each player stakes 5 and agrees to pay the loser 3 a game in which the value is obviously 5. Huygens second proposition is Prop. II. If I expect a, b, or c, either of which, with equal facility, may happen, then the Value of my Expectation is (a + b + c)/3, or the third of the Sum of a, b, and c. 4 His argument here is similar. Three players, A, B, and C, each stake (a + b + c)/3 in a game they have an equal chance of winning. The value of this game to player A is clearly the amount he has staked. Further, this value is not changed if A enters into an agreement with B that if one of them wins he pays the other a consolation prize of b and with C that if one of them wins he pays the other a consolation prize of c. By symmetry these agreements do not change the value of the game. In this modified game, if A wins he wins the total stake a + b + c minus the consolation prizes b + c giving him a final winning of a. If B wins, A wins b and if C wins, A wins c. Thus A finds himself in a game with value (a + b + c)/3 and with outcomes a, b, and c occurring with equal chance. This proves Proposition II. More generally, this reasoning shows that if there are n outcomes a 1, a 2,..., a n, all occurring with the same probability, the expected value is a 1 + a a n n In his third proposition Huygens considered the case where you win a or b but with unequal probabilities. He assumed there are p chances of winning a, and q chances of winning b, all having the same probability. He then showed that the expected value is E = p p + q a +. q p + q b. This follows by considering an equivalent gamble with p + q outcomes all occurring with the same probability and with a payoff of a in p of the outcomes and b in q of the outcomes. This allowed Huygens to compute the expected value for experiments with unequal probabilities, at least when these probablities are rational numbers. Thus, instead of defining the expected value as a weighted average, Huygens assumed that the expected value of certain symmetric gambles are known and deduced the other values from these. Although this requires a good deal of clever 4 ibid., p. 35.

Chapter 6 Expected Value and Variance 6.1 Expected Value of Discrete Random Variables When a large collection of numbers is assembled, as in a census, we are usually interested not in the individual numbers,

36 Odds, Expected Value, and Conditional Probability What s the difference between probabilities and odds? To answer this question, let s consider a game that involves rolling a die. If one gets the face

The Casino Lab Casinos rely on the laws of probability and expected values of random variables to guarantee them profits on a daily basis. Some individuals will walk away very wealthy, while others will

Probability and Expected Value This handout provides an introduction to probability and expected value. Some of you may already be familiar with some of these topics. Probability and expected value are

6.42/8.62J Mathematics for Computer Science Srini Devadas and Eric Lehman May 3, 25 Lecture otes Expected Value I The expectation or expected value of a random variable is a single number that tells you

Expectation Statistics and Random Variables Math 425 Introduction to Probability Lecture 4 Kenneth Harris kaharri@umich.edu Department of Mathematics University of Michigan February 9, 2009 When a large

V. RANDOM VARIABLES, PROBABILITY DISTRIBUTIONS, EXPETED VALUE A game of chance featured at an amusement park is played as follows: You pay $ to play. A penny and a nickel are flipped. You win $ if either

Unit 19: Probability Models Summary of Video Probability is the language of uncertainty. Using statistics, we can better predict the outcomes of random phenomena over the long term from the very complex,

What does it mean for something to be random? An event is called random if the process which produces the outcome is sufficiently complicated that we are unable to predict the precise result and are instead

Week 5: Expected value and Betting systems Random variable A random variable represents a measurement in a random experiment. We usually denote random variable with capital letter X, Y,. If S is the sample

A P S T A T S A Fabulous PROBABILITY C A S I N O L A B AP Statistics Casino Lab 1 AP STATISTICS CASINO LAB: INSTRUCTIONS The purpose of this lab is to allow you to explore the rules of probability in the

Expected Value and the Game of Craps Blake Thornton Craps is a gambling game found in most casinos based on rolling two six sided dice. Most players who walk into a casino and try to play craps for the

Chapter 4 & 5 practice set. The actual exam is not multiple choice nor does it contain like questions. MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Basics of Probability August 27 and September 1, 2009 1 Introduction A phenomena is called random if the exact outcome is uncertain. The mathematical study of randomness is called the theory of probability.

Combinatorics: The Fine Art of Counting Week 7 Lecture Notes Discrete Probability Continued Note Binomial coefficients are written horizontally. The symbol ~ is used to mean approximately equal. The Bernoulli

Probability, statistics and football Franka Miriam Bru ckler Paris, 2015 Please read this before starting! Although each activity can be performed by one person only, it is suggested that you work in groups

LIVE ROULETTE The game of roulette is played by throwing a small ball onto a rotating wheel with thirty seven numbered sectors. The ball stops on one of these sectors. The aim of roulette is to predict

How Not to Win a Million Dollars: A Counterexample to a Conjecture of L. Breiman Thomas P. Hayes arxiv:1112.0829v1 [math.pr] 5 Dec 2011 Abstract Consider a gambling game in which we are allowed to repeatedly

238 CHAPTER 3. DISCRETE DYNAMICAL SYSTEMS WITH MANY VARIABLES 3.2 Roulette and Markov Chains In this section we will be discussing an application of systems of recursion equations called Markov Chains.

Gaming the Law of Large Numbers Thomas Hoffman and Bart Snapp July 3, 2012 Many of us view mathematics as a rich and wonderfully elaborate game. In turn, games can be used to illustrate mathematical ideas.

MATH 10: Elementary Statistics and Probability Chapter 4: Discrete Random Variables Tony Pourmohamad Department of Mathematics De Anza College Spring 2015 Objectives By the end of this set of slides, you

Lecture 13 Understanding Probability and Long-Term Expectations Thinking Challenge What s the probability of getting a head on the toss of a single fair coin? Use a scale from 0 (no way) to 1 (sure thing).

Chapter 7 Sums of Independent Random Variables 7.1 Sums of Discrete Random Variables In this chapter we turn to the important question of determining the distribution of a sum of independent random variables

Section 7C: The Law of Large Numbers Example. You flip a coin 00 times. Suppose the coin is fair. How many times would you expect to get heads? tails? One would expect a fair coin to come up heads half

1 University of Waterloo Faculty of Mathematics Centre for Education in Mathematics and Computing Grade 7/8 Math Circles Fall 2012 Probability Probability is one of the most prominent uses of mathematics

MATH 11008: Probability Chapter 15 Definitions: experiment: is the act of making an observation or taking a measurement. outcome: one of the possible things that can occur as a result of an experiment.

222 CHAPTER 6. PROBABILITY 6.3 Conditional Probability and Independence Conditional Probability Two cubical dice each have a triangle painted on one side, a circle painted on two sides and a square painted

The Math Suppose there are n experiments, and the probability that someone gets the right answer on any given experiment is p. So in the first example above, n = 5 and p = 0.2. Let X be the number of correct

Pascal s wager So far we have discussed a number of arguments for or against the existence of God. In the reading for today, Pascal asks not Does God exist? but Should we believe in God? What is distinctive

AMS 5 CHANCE VARIABILITY The Law of Averages When tossing a fair coin the chances of tails and heads are the same: 50% and 50%. So if the coin is tossed a large number of times, the number of heads and

STUDENT MODULE 12.1 GAMBLING PAGE 1 Standard 12: The student will explain and evaluate the financial impact and consequences of gambling. Risky Business Simone, Paula, and Randy meet in the library every

IMPORTANT: This document contains 100% FREE gambling systems designed specifically for ROULETTE, and any casino game that involves even money bets such as BLACKJACK, CRAPS & POKER. Please note although

Problem sets for BUEC 333 Part 1: Probability and Statistics I will indicate the relevant exercises for each week at the end of the Wednesday lecture. Numbered exercises are back-of-chapter exercises from

Can Baccarat be Beaten By Card Counting George Joseph Las Vegas CAN "BACCARAT" BE BEATEN BY CARD COUNTING Both Baccarat and the game of 21 (Blackjack) are dealt from decks of cards which are not shuffled

Discrete Math in Computer Science Homework 7 Solutions (Max Points: 80) CS 30, Winter 2016 by Prasad Jayanti 1. (10 points) Here is the famous Monty Hall Puzzle. Suppose you are on a game show, and you

Ch. 4 Discrete Probability Distributions 4.1 Probability Distributions 1 Decide if a Random Variable is Discrete or Continuous 1) State whether the variable is discrete or continuous. The number of cups

Chapter 8 Discrete probability and the laws of chance 8.1 Introduction In this chapter we lay the groundwork for calculations and rules governing simple discrete probabilities. These steps will be essential

How to Play You receive five cards to make your best four-card poker hand. A four-card Straight is a Straight, a four-card Flush is a Flush, etc. Player vs. Dealer Make equal bets on the Ante and Super

Chapter 3 Prediction Markets, Fair Games and Martingales Prediction markets...... are speculative markets created for the purpose of making predictions. The current market prices can then be interpreted

. Expected Value Objectives. Understand the meaning of expected value. 2. Calculate the expected value of lotteries and games of chance.. Use expected value to solve applied problems. Life and Health Insurers

26 Applications of Probability The Binomial Distribution The binomial distribution is as important as any distribution in probability. It is quite simply the description of the outcome of throwing a coin

Teacher s Guide Getting Started Shereen Khan & Fayad Ali Trinidad and Tobago Purpose In this two-day lesson, students develop different strategies to play a game in order to win. In particular, they will

LOOKING FOR A GOOD TIME TO BET LAURENT SERLET Abstract. Suppose that the cards of a well shuffled deck of cards are turned up one after another. At any time-but once only- you may bet that the next card

Introduction to the Rebate on Loss Analyzer Contact: JimKilby@usa.net 702-436-7954 One of the hottest marketing tools used to attract the premium table game customer is the "Rebate on Loss." The rebate

The Mathematician s Wastebasket Volume 1, Issue 4 Stephen Devereaux April 28, 2013 Beating Roulette? An analysis with probability and statistics. Every time I watch the film 21, I feel like I ve made the

AP Stats - Probability Review Multiple Choice Identify the choice that best completes the statement or answers the question. 1. I toss a penny and observe whether it lands heads up or tails up. Suppose

AP Statistics 5.1 Reading Guide Name Directions: Read the following pages and then answer the questions at the end. We ll have a short mini-quiz over this material (for Mastery) when we return from Thanksgiving

JANUARY TERM 2012 FUN and GAMES WITH DISCRETE MATHEMATICS Module #9 (Geometric Series and Probability) Author: Daniel Cooney Reviewer: Rachel Zax Last modified: January 4, 2012 Reading from Meyer, Mathematics

REWARD System For Even Money Bet in Roulette By Izak Matatya By even money betting we mean betting on Red or Black, High or Low, Even or Odd, because they pay 1 to 1. With the exception of the green zeros,

How to Play Craps: Craps is a dice game that is played at most casinos. We will describe here the most common rules of the game with the intention of understanding the game well enough to analyze the probability

Bayesian Tutorial (Sheet Updated 20 March) Practice Questions (for discussing in Class) Week starting 21 March 2016 1. What is the probability that the total of two dice will be greater than 8, given that

Week 2: Conditional Probability and Bayes formula We ask the following question: suppose we know that a certain event B has occurred. How does this impact the probability of some other A. This question

The Queensland Responsible Gambling Strategy Responsible Gambling Education Unit: Mathematics A & B Outline of the Unit This document is a guide for teachers to the Responsible Gambling Education Unit:

The Easy Roulette System Please note that all information is provided as is and no guarantees are given whatsoever as to the amount of profit you will make if you use this system. Neither the seller of

Recall: Ch5: Discrete Probability Distributions Section 5-1: Probability Distribution A variable is a characteristic or attribute that can assume different values. o Various letters of the alphabet (e.g.

Introduction and Overview Probability and Statistics is a topic that is quickly growing, has become a major part of our educational program, and has a substantial role in the NCTM Standards. While covering

The Kelly Betting System for Favorable Games. Thomas Ferguson, Statistics Department, UCLA A Simple Example. Suppose that each day you are offered a gamble with probability 2/3 of winning and probability

33 Probability: Some Basic Terms In this and the coming sections we discuss the fundamental concepts of probability at a level at which no previous exposure to the topic is assumed. Probability has been

You are about to learn the very best method there is to beat an even-money bet ever devised. This works on almost any game that pays you an equal amount of your wager every time you win. Casino games are