Write a program to simulate strategy

Assignment Help Basic Statistics
Reference no: EM13970156

Consider the two-armed bandit problem of Example 4.24. Bruce Barnes pro- posed the following strategy, which is a variation on the play-the-best-machine strategy.

The machine with the greatest probability of winning is played un- less the following two conditions hold: (a) the difference in the probabilities for winning is less than .08, and (b) the ratio of the number of times played on the more often played machine to the number of times played on the less often played machine is greater than 1.4. If the above two conditions hold, then the machine with the smaller probability of winning is played.

Write a program to simulate strategy. Have your program choose the initial payoff probabilities at random from the unit interval [0, 1], make 20 plays, and keep track of the number of wins. Repeat this experiment 1000 times and obtain the average number of wins per 20 plays.

Implement a second strategy-for example, play-the-best-machine or one of your own choice, and see how this second strategy compares with Bruce's on average wins.

Reference no: EM13970156

Questions Cloud

Write an essay on where the boys are : Write an essay on Where the Boys Are (1960). How does the sexual behavior of your age cohort compare to that of Americans of the same age from the 1940s through the 1980s?
What is the probability that he has a second ace : Assume that the person holding the hand is asked to "Name an ace in your hand" and answers "The ace of hearts." What is the probability that he has a second ace?
What ways is ngo influence reflected in israel : Based on the Cragg, Arnold, and Muchlinski article from the e-reserves ("Human Rights and Business"), when did "business and human rights" become an international topic? What explains the delay?
Discuss the factors that affect responsiveness : List at least three ways leaders can work with people who are less argumentative and people who are highly argumentative to enhance work communication.
Write a program to simulate strategy : Write a program to simulate strategy. Have your program choose the initial payoff probabilities at random from the unit interval [0, 1], make 20 plays, and keep track of the number of wins. Repeat this experiment 1000 times and obtain the average ..
Compute the average winning per 20 plays : Write a program to allow you to compare the strategies play-the-winner and play-the-best-machine for the two-armed bandit problem
Identify the range of healthcare facilities that exist in us : The healthcare system and the public health system mutually co-exist. They work in tandem to identify health threats, treat these health occurances, and to educate individuals on how to remain healthy. Identify the range of healthcare facilities th..
What is the probability that the drug will be successful : The drug is used on ten subjects and found to be successful in four out of the ten patients. What density should we now assign to the probability p? What is the probability that the drug will be successful the next time it is used?
Can medical research on animals be justified : If you are against the research would your opinion change if you knew the animals were treated with care while they were used for experiments? If you are pro-animal research does how they are treated matter to you?

Reviews

Write a Review

Basic Statistics Questions & Answers

  Construct a 99 confidence interval for the proportion of

the first internet bank wants to encourage its customers to do all their banking online. it offers higher interest to

  Sampling distribution of the sample mean

1) Describe the sampling distribution of the sample mean in terms of:

  Confidence interval for the proportion of the population

The insect then chooses one of the two branches. Suppose that 45 of 75 insects choose the pheromone branch. The 95% large-sample confidence interval for the proportion of the population that prefers the pheromone branch is:

  Conclusion-proportion of women physicians at university

Is there sufficient evidence at the 0.05 level of significance to conclude that the proportion of women physicians at the university health system exceeds 27.9%?

  Calculate the expected value for the data

He observes how many people play on each court on a particular day.  Compute the expected value for the data shown below.

  What is the mean of the sampling distribution

Consider a sample size of 2 without replacement. Find the mean of the variable x

  Deriving the regression equation

Deriving the regression equation, testing the model fit and obtains confidence interval for estimated values.

  Chocolate-coated sugar fun blast cereal is filled in boxes

chocolate-coated sugar fun blast cereal is filled in boxes by weight. the weight of the boxes is approximately normally

  A random sample of medical files is used to estimate the

a random sample of medical files is used to estimate the proportion p of all people who have blood type b.a if you have

  Let x be the number of successes in seven independent

let x be the number of successes in seven independent trials of a binomial experiment in which the probability of

  Concept of probability using poisson

What is the probability that a particular driver had exactly two speeding violations?

  Writing null and research hypotheses

Sixteen juvenile rats were treated with the drug Naloxone (pairs 1,3,7,8) or, as a placebo control, Saline (pairs 2,4,5,6) and then observed for their play and non-play behavior in an open field for 1.5 minutes.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd