Probability - Chapter 6 / Section 1

  1. A card is drawn at random from a deck consisting of cards numbered 2 through 10. A player wins 1 dollar if the number on the card is odd and loses 1 dollar if the number if even. What is the expected value of his winnings?

cat("The expected value is:\nE(X) = 4/9 - 5/9 =", 4/9 - 5/9)
## The expected value is:
## E(X) = 4/9 - 5/9 = -0.1111111