Home /
Expert Answers /
Computer Science /
answers-for-r-studio-so-language-r-1-i-roll-a-fair-dice-two-times-let-the-random-variable-x-b-pa529
(Solved): Answers for R studio - so language R \# 1. I roll a fair dice two times. Let the random variable X b ...
Answers for R studio - so language R
\# 1. I roll a fair dice two times. Let the random variable X be the maximum of the \# two numbers rolled, and let the random variable Y be the difference of the two numbers \# (larger value minus smaller value). \# a. Calculate and graph the probability mass function of X. Calculate the Expected value of X and its variance.| b. Calculate and graph the probability mass function of Y. Plot it. Calculate the Expected value of Y and its variance.
a. To calculate the probability mass function of X, we need to consider all possible outcomes of rolling a dice two times. There are six possible outcomes for each roll, so the total number of outcomes is 6 x 6 = 36.The maximum of the two numbers rolled can take the values 1, 2, 3, 4, 5, or 6. The probability of getting a particular value of X is the probability that both rolls are less than or equal to X, minus the probability that both rolls are less than or equal to X-1 (since X is the maximum of the two numbers rolled). So, we can calculate the probability mass function of X as follows: