Question

2. You play a game of rolling a dice at Casino. There are 6 possible outcomes: 1, 2, 3, 4, 5, 6. Each particular number has e

0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: If you have any queries related the answer please do comment. I would be very happy to resolve all your queries.

clc%clears screen
clear all%clears history
close all%closes all files
format long
for n=[100,1000,10000]
v=randi([1,6],1,n);
P=sum(v==2|v==5)/n;
fprintf('Probability for n=%d is %f\n',n,P);
end

- O X Pradeep do E C . Search Documentation MATLAB R2018a HOME +s o New Open Save PLOTS la Find Files 3 Compare - Print 3 D ]

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
2. You play a game of rolling a dice at Casino. There are 6 possible outcomes:...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Problem 9 A single game of craps (a dice game) consists of at most two rolls...

    Problem 9 A single game of craps (a dice game) consists of at most two rolls of a pair of six sided dice. The ways to win are as follows: Win-the first roll of the pair of dice sums to either 7 or 1 (you win, game over, no second roll Win the first roll of the pair of dice does NOT sum to either 7 or 1 but the sum of the second roll is equal to the sum...

  • 2. "Craps" is a game played by rolling two fair dice. To play one round of...

    2. "Craps" is a game played by rolling two fair dice. To play one round of this game, the player rolls the dice and the outcome is determined by the following rules: If the total number of dots is 7 or 11 (a "natural"), then the player wins. If the total number of dots is 2, 3, or 12 C'craps"), then the player loses. If the total number of dots is 4, 5, 6,8,9, or 10, then this number is...

  • 2. (25 points) Sekora International Casino (SIC) is launching a new game making use of fair 6-sided dice . In phase 1, roll two 6-sided dice and compute the difference between the rolls. Call thi...

    2. (25 points) Sekora International Casino (SIC) is launching a new game making use of fair 6-sided dice . In phase 1, roll two 6-sided dice and compute the difference between the rolls. Call this difference . In phase 2, roll r dice, and add up the total of the rolls. This is the payout in dollars of the game. (with the numbers 1-6 on the sides). The game proceeds in two phases as follows: (a) (5 points) In the...

  • You and a friend are rolling a set of 6 dice. The game works such that...

    You and a friend are rolling a set of 6 dice. The game works such that if a die shows the values 1, 2, or 3 you will get a point for that die. Each die that shows 4, 5, or 6 your friend will get a point for. Construct a probability model for a single roll of the dice then answer the following. A)What is the probability you made 2 points? B)What is the probability that your friend will...

  • You are on a TV show. You have been asked to either play a dice game...

    You are on a TV show. You have been asked to either play a dice game or accept a $50 bill. The dice game works like this: You roll four dice. For each dice; if you roll a 1, 2, or 3, you win $60. If you roll a 4 or 5, you lose $30. If you roll a 6, you lose $70. Determine expected value of the dice game? Do you play the game, or take the money? Explain...

  • A street hustler offers you the following game: Each play you roll 2 dice. Each play...

    A street hustler offers you the following game: Each play you roll 2 dice. Each play costs $1 If you roll an even number you win that amount If you roll an odd number you lose that amount in addition to the $1. 1) Calculate the probabilities P(X 1+X 2-3) 2) write the reward function, rie), where s -X + X, in the following form r(e)-a 3) What is the expected reward? Should you take up the bet?

  • 2. A game of chance costs $5 to play and consists of rolling a five fair...

    2. A game of chance costs $5 to play and consists of rolling a five fair dice. If at least four of the dice shows a number (strictly) greater than 2 then the player wins $10. (a) What is the expected net winnings from one game? (b) Suppose that a gambler plans to keep playing this game until he has lost a total of four games, what is his expected net loss or net winnings under this strategy?

  • PYTHON: Dice Rolling Write a script that takes input for the number of dice to roll...

    PYTHON: Dice Rolling Write a script that takes input for the number of dice to roll and for the number of sides for the dice. Roll that many n-sided dice and store the values an array. Take the number of sides of the dice and the number of dice as typed inputs from the user. Output should be a comma separated list of the die numbers with no spaces like this: 6,4,1,3,1 Write a script that will simulate the roll...

  • You and a friend are rolling a set of 7 dice. The game works such that...

    You and a friend are rolling a set of 7 dice. The game works such that if a die shows the values 1, 2, 3, or 4 you will get a point for that die. Each die that shows 5 or 6 your friend will get a point for. Construct a probability model for a single roll of the dice then answer the following. A)If we play a second round of this game, what is the probability that you will...

  • You play a game in which you roll a number n of dice. You win if...

    You play a game in which you roll a number n of dice. You win if you roll at least one 6, but no 1s or 2s; and, otherwise, you lose. What is the optimal number of dice to roll in this situation? Choose the best answer. A) 1 B) 2 C) 3 D) 4

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT