Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6. The game of craps is begun by rolling an ordinary pair of dice. If the sum of the dice is 2,3, or 12, the

image text in transcribed
6. The game of craps is begun by rolling an ordinary pair of dice. If the sum of the dice is 2,3, or 12, the player loses. If it is 7 or 11, the player wins. If it is any other number, say i (the point), the player continues to roll the dice until the sum is either 7 or i. If it turns out to be 7, the player loses; if it is i, the player wins. (a) Write the MatLab function condprob=conditional Prob(point). This function should estimate the conditional probability of winning based on 100.000 rolls, given the point. You should use the roll2Dice function from the last homework. (b) Analytically determine the PMF for the sum of the dice on the first roll. (c) In a MatLab script, use (a) and (b) and the theorem of total probability to estimate the probability of winning

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions