Hi nivis!
I will assume here that the random number is drawn from a uniform
distribution, and that only an integer number con be drawn or chosen
in the first place. So any integer between 0 and 19 has the same
probability of being chosen. If this assumption is not correct, please
request a clarification.
In order to find the expected gain of playing this game, let's
consider what can happen. Given that you choose any one number, there
will be only one number among the 20 (19 plus the zero) that will win
you 6. There are two number that will win you 4. And all the other
numbers (17 numbers) will make you loose 1.
For example, if you choose 14; then you would win 6 with a 14, you
would win 4 with either a 13 or 15, and you would win -1 with any
other number. This is the same with any number you can choose, even
for 19 or 0, because they are considered to differ by one.
Given that there are twenty numbers that can be randomly drawn, there
is one chance in twenty that you win 6, two in twenty that you win 4,
and 17 in twenty that you win -1. Therefore, the expected gain of this
game is:
(1/20)*6 + (2/20)*4 +(17/20)*(-1) = -0.15
That is, the expected LOSS from this game is 0.15. If you want to
learn more about expected value, please visit the following link
http://math.gmu.edu/~tlim/expect.htm
Google search strategy:
expected value
://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=expected+value
I hope this helps! If there's anything unclear about my answer, please
don't hesitate to request a clarification before rating it. Otherwise,
I await your rating and final comments.
Best wishes!
elmarto |