Skip to main content

Section A.4 Chapter 4: Probability

Subsection A.4.1 Exercise 4.1

  1. Consult TableΒ 4.6.1. The probabilities of the different values of \(Y\) are \(\{p, 2p, \ldots, 6p\}\text{.}\) These probabilities sum to 1, consequently
    \begin{equation*} p + 2p + 3 p + 4 p + 5 p + 6p = (1+2+3+4+5+6)p = 21 p = 1 \Longrightarrow p = 1/21\;. \end{equation*}
  2. The event \(\{Y < 3\}\) contains the values 0, 1 and 2. Therefore,
    \begin{equation*} \Prob(Y < 3) = \Prob(Y=0) + \Prob(Y=1) + \Prob(Y=2) = \frac{1}{21} + \frac{2}{21} + \frac{3}{21} = \frac{6}{21}= 0.2857\;. \end{equation*}
  3. The event \(\{Y = \mbox{odd}\}\) contains the values 1, 3 and 5. Therefore,
    \begin{equation*} \Prob(Y = \mbox{odd}) = \Prob(Y=1) + \Prob(Y=3) + \Prob(Y=5) = \frac{2}{21} + \frac{4}{21} + \frac{6}{21} = \frac{12}{21}= 0.5714\;. \end{equation*}
  4. The event \(\{1 \leq Y < 4\}\) contains the values 1, 2 and 3. Therefore,
    \begin{equation*} \Prob(1 \leq Y < 4) = \Prob(Y=1) + \Prob(Y=2) + \Prob(Y=3) = \frac{2}{21} + \frac{3}{21} + \frac{4}{21} = \frac{9}{21}= 0.4286\;. \end{equation*}
  5. The event \(\{|Y -3| < 1.5\}\) contains the values 2, 3 and 4. Therefore,
    \begin{equation*} \Prob(|Y -3| < 1.5) = \Prob(Y=2) + \Prob(Y=3) + \Prob(Y=4) = \frac{3}{21} + \frac{4}{21} + \frac{5}{21} = \frac{12}{21}= 0.5714\;. \end{equation*}
  6. The values that the random variable \(Y\) obtains are the numbers 0, 1, 2, …, 5, with probabilities \(\{1/21, 2/21, \ldots, 6/21\}\text{,}\) respectively. The expectation is obtained by the multiplication of the values by their respective probabilities and the summation of the products. Let us carry out the computation in R:
    Y.val <- c(0,1,2,3,4,5)
    P.val <- c(1,2,3,4,5,6)/21
    E <- sum(Y.val*P.val)
    E
    
    We obtain an expectation \(\Expec(Y) = 3.3333\text{.}\)
  7. The values that the random variable \(Y\) obtains are the numbers 0, 1, 2, …, 5, with probabilities \(\{1/21, 2/21, \ldots, 6/21\}\text{,}\) respectively. The expectation is equal to \(\Expec(Y) = 3.333333\text{.}\) The variance is obtained by the multiplication of the squared deviation from the expectation of the values by their respective probabilities and the summation of the products. Let us carry out the computation in R:
    Var <- sum((Y.val-E)^2*P.val)
    
    We obtain a variance \(\Var(Y) = 2.2222\text{.}\)
  8. The standard deviation is the square root of the variance: \(\sqrt{\Var(Y)} = \sqrt{2.2222} = 1.4907\text{.}\)

Subsection A.4.2 Exercise 4.2

  1. An outcome of the game of chance may be represented by a sequence of length three composed of the letters β€œH" and β€œT". For example, the sequence β€œTHHβ€œ corresponds to the case where the first toss produced a ”Tail", the second a β€œHead" and the third a β€œHead".
    With this notation we obtain that the possible outcomes of the game are \(\{\mbox{HHH}, \mbox{THH},\mbox{HTH}, \mbox{TTH},\mbox{HHT}, \mbox{THT},\mbox{HTT}, \mbox{TTT}\}\text{.}\) All outcomes are equally likely. There are 8 possible outcomes and only one of which corresponds to winning. Consequently, the probability of winning is 1/8.
  2. Consider the previous solution. One looses if any other of the outcomes occurs. Hence, the probability of loosing is 7/8.
  3. Denote the gain of the player by \(X\text{.}\) The random variable \(X\) may obtain two values: 10-2 = 8 if the player wins and -2 if the player looses. The probabilities of these values are {1/8, 7/8}, respectively. Therefore, the expected gain, the expectation of \(X\) is:
\begin{equation*} \Expec(X) = 8 \times \frac{1}{8} + (-2) \times \frac{7}{8} =-0.75\;. \end{equation*}