Please use D2L to turn in both the HTML output and your R Markdown file in.

Q1. (20 pts)

Monte Carlo simulation is a useful technique for estimating probabilities.

a. Black Jack

Use simulation to estimate the probability of being dealt a hand that equals 21 in the game black jack. Note this would amount to being dealt an ace and either a face card or a 10.

b. Flush

Use simulation to estimate the probability of being dealt a flush (all of same suit) in a five card poker hand.

c. Extra Credit (5 points)

Use simulation to estimate the probability of being dealt a straight (all five cards in consecutive order.) For example, 7, 8, 9, 10, J would be a straight.