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

  The national safety council released the following data on

the national safety council released the following data on the incidence rates for fatal or lost-work time injuries

  Effect of changing the confidence level

Use this poll result to give 70%, 80%, 90% and 99% confidence intervals for the proportion of all adults who feel this way. What do your results show about the effect of changing the confidence level? (Use Excel)

  Information about hypothesis problem

A recent national survey found that high school students watched an average (mean) of 6.8 videos per month. A random sample of 36 college students revealed that the mean number of videos watched last month was 6.2

  Write the equation of the multiple regression linear model

Write the equation of the multiple regression linear model for the case of 2 and k independent or explanatory variables.

  The mean television viewing time for americans is 15 hours

1. the mean television viewing time for americans is 15 hours per week money november2003. suppose a sample of 60

  Which of the following methods could lead to stronger

which of the following methods could lead to stronger evidence for the outcome of a nonparametric test?a. ensure that

  The lengths in minutes of a random selection of popular

the lengths in minutes of a random selection of popular childrens animated films are listed below. estimate the true

  Probability of obtaining four ones in a row when rolling die

What is the probability of obtaining 4 ones in a row when rolling a fair, six-sided die? Interpret this probability. Suppose that E and F are two events and that P(E and F) = 0.21 and P(E) = 0.4. What is P(FE)?

  The mean annual cost of automobile insurance is 939 cnbc

the mean annual cost of automobile insurance is 939 cnbc 2232006 with a standard deviation of 245.what is the

  Problem regarding the power relationship

It is thought that x and y are related by a power relationship, that is, a function of the form y=ax^b. Perform power regression on these data, and then choose the one option describing a situation which these data could represent.

  Four types of solar energy collectors were collected the

four types of solar energy collectors were collected. the data is in the accompanying file.a construct an anova table.b

  A banking consultant is investigating if the proportion of

a banking consultant is investigating if the proportion of households with saving above 20000 has increased from last

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