subject
Mathematics, 24.06.2020 06:01 kolbehoneyman

You are playing a game where a fair die is rolled first and then a fair coin is tossed a number of times equal to the face of the die (e. g. if the die shows three, the coin is tossed three times, and this combination is considered as one game). . a) Let X be the number of heads(H) you can get in any game.
• Write down the probability mass function of X. (this part is not a simulation question. Calculate ALL the probabilities and produce a table that represents the pmf)
• Calculate E[X] using your pmf.
b) Write an R code that will simulate this game 100,000 times.
• save the outputs from your simulation (no need to print the outputs).
• Use these outputs to calculate an estimate of E[X].
c) Suppose you are told that if the number on the die is odd you get a dollar value equivalent to the corresponding X value(e. g. the die shows three, the coin is tossed three times, if there are two heads you get $2) But if the number on the die is even, you have to pay a dollar value equivalent to X.
• Calculate an estimate of your expected gain from each game (You can use numeric calculations as you have done in part(a) or you can use your simulation from part(b) to answer this question).

ansver
Answers: 2

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 15:10, teamzomaxx6584
What is the equation of the graph below? y=sec(x)-4
Answers: 3
image
Mathematics, 21.06.2019 20:30, Korkot7633
Which inequality statement describes the two numbers on a number line? "? 7 and a number 5 units to the right of ? 7"
Answers: 2
image
Mathematics, 22.06.2019 02:30, selenaK9514
Yuto solved the equation below. what is the solution to yuto’s equation?
Answers: 2
image
Mathematics, 22.06.2019 07:30, Boris1002
Determining unknown angle measures ln is tangent to circle o at point m and qm is a diameter. determine the measure of the following angles. the measure of zqml is degrees. the measure of zpmn is degrees. n what is the measure of qml
Answers: 3
You know the right answer?
You are playing a game where a fair die is rolled first and then a fair coin is tossed a number of t...

Questions in other subjects: