document.write( "Question 1151739: In a state lottery a seven-digit integer is selected at random. If a player
\n" ); document.write( "bets 1 dollar on a particular number, the payoff (if that number is selected)
\n" ); document.write( "is $600 minus the $1 paid for the ticket. Let X equal the payoff to the better.
\n" ); document.write( "Find the expected value of X.
\n" ); document.write( "

Algebra.Com's Answer #773569 by jim_thompson5910(35256)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Let's say we had 7 slots A,B,C,D,E,F,G
\n" ); document.write( "The slots will represent the digits of the 7-digit number.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We have 9 choices to fill for slot A. We can choose anything from {1,2,3,4,5,6,7,8,9}
\n" ); document.write( "We have 10 choices to fill for slot B. We can choose anything from {0,1,2,3,4,5,6,7,8,9}
\n" ); document.write( "Slots C through G will have the same number of choices as slot B.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Here are the number of choices we have for slots A through G
\n" ); document.write( "9, 10, 10, 10, 10, 10, 10\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "There are 9*10*10*10*10*10*10 = 9,000,000 different seven-digit numbers
\n" ); document.write( "The smallest of which is 1,000,000 and the largest is 9,999,999
\n" ); document.write( "This figure of 9,000,000 can also be found by subtracting the endpoints (1,000,000 and 9,999,999) and then adding 1
\n" ); document.write( "9,999,999 - 1,000,000 + 1 = 8,999,999 + 1 = 9,000,000\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "----------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Whichever method you use, there are 9,000,000 different seven-digit numbers\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "There is only one winning ticket\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The probability of winning is
\n" ); document.write( "1/(9,000,000) = 0.000000111 approximately\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The probability of losing is
\n" ); document.write( "1-0.000000111 = 0.999999889 approximately\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\n" ); document.write( "
OutcomeNet Payoff XP(X)X*P(X)
Win5990.0000001110.000066489
Lose-10.999999889-0.999999889

\n" ); document.write( "Adding up the X*P(X) values gets us
\n" ); document.write( "0.000066489 + (-0.999999889) = -0.9999334
\n" ); document.write( "which rounds to -1.00\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "On average, the person playing the lottery will lose $1
\n" ); document.write( "This is effectively the same as saying \"on average, the person playing the lottery will not win the jackpot\" since the price to play the game is $1.
\n" ); document.write( "
\n" ); document.write( "
\n" );