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

Another question on Mathematics

question
Mathematics, 20.06.2019 18:04
30 points! i am confused. what does it mean by game time? you can use a table of random numbers or a random number generator to create random samples. also, you can obtain random samples directly using wolframalpha.com. for example, typing in randomsample[{1,2,3,4,5},2] will give you a sample of size 2 from the list {1,2,3,4,5}. a sample result is {1,5}. refreshing the page will generate a new random sample of size 2. 2. create five random samples of size two from the population. record the game times for the samples and calculate the mean game time of each sample. 3. create 5 random samples of size 11 from the population. record the game times for the samples and calculate the mean game time of each sample.
Answers: 2
question
Mathematics, 21.06.2019 17:00
Scarlet bought three pairs of sunglasses and two shirts for $81 and paula bought one pair of sunglasses and five shirts for $105 what is the cost of one pair of sunglasses and one shirt?
Answers: 2
question
Mathematics, 21.06.2019 19:30
If 2(a^2+b^2)=(a+b)^2 then, > a+b=0, > ab=0, > a=b, > 2a=b
Answers: 1
question
Mathematics, 21.06.2019 23:00
The sum of 5consecutive even numbers is 100. what is the first number in this sequence?
Answers: 1
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
question
Mathematics, 19.11.2020 19:00
question
Biology, 19.11.2020 19:00
question
Arts, 19.11.2020 19:00
Questions on the website: 13722362