Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Statistics and Probability Expert

The dice game craps is played as follows. The player throws two dice, and if the sum is seven or eleven, then he wins. If the sum is two, three, or twelve, then he loses. If the sum is anything else, then he continues throwing until he either throws that number again (in which case he wins) or he throws a seven (in which case he loses).
Write a program to simulate a game of craps. You can use the following snippet of code to simulate the roll of two (fair) dice: x <- sum(ceiling(6*runif(2)))

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M9891208

Have any Question?


Related Questions in Statistics and Probability

Last year a technology company bought one million in shares

Last year a technology company bought one million in shares of a GM stock at €40 per share and sold it one year later at €50. The spot exchange rate one year ago was $1.40 = €1 and the spot rate prevailing at the end of ...

According to an article in the american heart associations

According to an article in the American Heart Association's publication Circulation, 24% of patients who had been hospitalized for an acute myocardial infarction, did not fill their cardiac medication by the seventh day ...

Lt x be a normally distributed random variable with mu

Let X be a normally distributed random variable with μ = 100 and σ = 10. Find the probability that X is between 80 and 105. (Round your answer to the nearest whole number percent and include the percent symbol.)

A coffee manufacturer is interested in the mean daily

A coffee manufacturer is interested in the mean daily consumption of regular-coffee drinkers and decaffeinated coffee drinkers. The random sample of 50 regular-coffee drinker show a mean of 3.84 cups per day. A sample of ...

You have two investments that either make money or lose

You have two investments that either make money or lose money. Each one has a 60 percent chance of making money, and a forty percent chance of losing money. There is a 30 percent chance that both investments make money. ...

Assume 20 of customers who enter a clothing store make a

Assume 20% of customers who enter a clothing store make a purchase and customers behave independently of one another. Ten customers enter the store in the next hour. The salesman on duty makes $20 per hour plus a $10 com ...

An urn contains 5 red and 10 blue balls balls are drawn

An urn contains 5 red and 10 blue balls. Balls are drawn sequentially from urn without replacement. Let X be the number of draws necessary in order to obtain exactly 4 red balls. Find probability mass function of X

The service manager for anbspcar dealership reviewed sales

The service manager for a car dealership reviewed sales records of the past 25 sales of new cars to determine the number of warranty repairs he will be called on to perform in the next 90 days. Corporate reports indicate ...

During a certain week the mean price of gasoline was 2719 a

During a certain week the mean price of gasoline was $2.719 a gallon. A ronadom sample of 32 stations is drwn. What is the probability that the mean price was between $2.695 and $2.716. Assume o=$0.048.

One hundred twenty-five marine recruits participated in a

One hundred twenty-five marine recruits participated in a study to assess the benefits of a strength training program. Each recruit was given a push-up test at the beginning and end of the program. The change in number o ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As