Question

In: Math

Roll two ordinary dice and let X be their sum. Draw the pmf and cmf for...

Roll two ordinary dice and let X be their sum. Draw the pmf and cmf for X. Compute the mean and standard deviation of X. Solve using R studio coding.

Solutions

Expert Solution

Here we have sampling with replacement. There are outcomes each with equal probability .

The sample space being .

The random variable representing the sum of the numbers on the balls has values from 2 to 12.

The PMF of is

The CMF is

The R code for plotting PMF and CMF given below.

plot(1:1)
dev.new()
X <- seq(2,12,1)
PX <- c(1,2,3,4,5,6,5,4,3,2,1)/36
plot(X,PX, type="h", col="blue", lwd=2, xlab="X", ylab = "P(X=x)", main="PMF of X")
plot(1:1)
dev.new()
X <- seq(2,12,1)
FX <- c(1,3,6,10,15,21,26,30,33,35,36)/36
plot(X,FX, type="h", col="blue", lwd=2, xlab="X", ylab = "F(X=x)", main="CMF of X")

The PMF is plotted below.

The CMF is plotted below.

The mean is

R code below.
X <- seq(2,12,1)
PX <- c(1,2,3,4,5,6,5,4,3,2,1)/36
EX <- sum(X*PX)
EX

The standard deviation is

R code below.

X <- seq(2,12,1)
PX <- c(1,2,3,4,5,6,5,4,3,2,1)/36
EX2 <- sum(X^2*PX)
EX2
sqrt(EX2-7^2)


Related Solutions

Let X be the sum of rolling 2 dice. a) Plot the CDF and PMF of...
Let X be the sum of rolling 2 dice. a) Plot the CDF and PMF of X. b) Determine P(5 < X <=8 | x<=10) c) Determine the median, mean and variance of X d) Bonus: Compute the correlation between X and Y = the number on the first dice.
You roll two fair dice. Let A be the event that the sum of the dice...
You roll two fair dice. Let A be the event that the sum of the dice is an even number. Let B be the event that the two results are different. (a) Given B has occurred, what is the probability A has also occurred? (b) Given A has occurred, what is the probability B has also occurred? (c) What is the probability of getting a sum of 9? (d) Given that the sum of the pair of dice is 9...
Roll two dice simultaneously once. Let A be the event that the sum of the two...
Roll two dice simultaneously once. Let A be the event that the sum of the two dice is 8 and B be the event that at least one of the dice is odd. a) Find P(A) and P(B). Express your answer as a FRACTION. b) Find P(A given B) and P(B given A). Express your answer as FRACTIONS. Are A and B independent? Explain. c) Find P(A and B). Express your answer as a FRACTION. d) Find P(A or B)....
Consider some 8-sided dice. Roll two of these dice. Let X be the minimum of the...
Consider some 8-sided dice. Roll two of these dice. Let X be the minimum of the two values that appear. Let Y denote the maximum.   a) Find the joint mass p_X,Y (x,y). b) Compute p_X│Y (x│y) in all cases. Express your final answer in terms of a table.
Roll two dice at the same time, and define a random variable X as the sum...
Roll two dice at the same time, and define a random variable X as the sum of the two faces observed. Determine the CDF and PMF of X. Sketch the CDF.
2. Roll a pair of unbiased dice. Let X be the maximum of the two faces...
2. Roll a pair of unbiased dice. Let X be the maximum of the two faces and Y be the sum of the two faces. What is the joint density of X and Y ?
suppose two dice are tossed. let x= the sum of the on the top faces of...
suppose two dice are tossed. let x= the sum of the on the top faces of the two dice. find the probability distribution of X
You roll 3 standard fair dice. Let A be the event that the sum is odd....
You roll 3 standard fair dice. Let A be the event that the sum is odd. Let B be the event that the sum is more than 14. Let C be the event that the sum is more than 9. All probabilities to the thousandths place. Find the probability of the basic events: A, B, C Find the probability of the intersection events: A∩B, A∩C, B∩C, A∩B∩C Find the probability of the union events:AUB,AUC,BUC,AUBUC Find the probability of the conditional...
For a roll with two dice, the following events are considered: A: The sum of eyes...
For a roll with two dice, the following events are considered: A: The sum of eyes is greater than 7. B: Exactly one of the two numbers is a 5. C: No 1 is rolled. a) Calculate the probabilities P (A), P (B), P (C), P (A ∩ B), P (A ∩ C), P (B ∩ C), P (A ∪ B), P (A | B), P (A | C), P (C | A), P (B | C). b) Are events...
For a roll with two dice, the following events are considered: A: The sum of eyes...
For a roll with two dice, the following events are considered: A: The sum of eyes is greater than 7. B: Exactly one of the two numbers is a 5. C: No 1 is rolled. a) Calculate the probabilities P (A), P (B), P (C), P (A ∩ B), P (A ∩ C), P (B ∩ C), P (A ∪ B), P (A | B), P (A | C), P (C | A), P (B | C). b) Are events...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT