Calculate summary stats of amount left

Assignment Help Applied Statistics
Reference no: EM132218008

Project - The Martingale betting system is an old betting strategy from 18th century France. The strategy had the gambler double his/her bet after every loss, so that the first win would recover all previous losses plus win a profit equal to the original stake.

For example, consider a game which have you bet either red or black, where each has 50% chance of winning. The betting system is as follow, first start the game by betting amount c and after a win, always bet c dollars again in the next round. But after every loss, double the previous amount bet. So, after 2 consecutive losses, you would bet 4c and after 3 consecutive losses, the amount would be 8c and so on so forth.

In a roulette game, there are 36 numbers in addition to 0 and 00. Except 0 and 00, which are green, half the numbers are black, and half are red.

Suppose you start with $650 and playing the game by keep betting black. Preform following two simulations.

Simulation 1:

1) Using the martingale betting system and the initial betting amount is $5.

2) Stop if run out of money to continue this betting system (not enough money to place the next bet), or after 100 rounds, whichever occurs first.

3) Repeat (1) and (2) for 200 times and save the iteration number and the amount of money left for each iteration.

Simulation 2:

1) Betting $5 every round.

2) Stop if all money is lost or after 100 rounds, whichever occurs first.

3) Repeat (1) and (2) for 200 times and save the iteration number and the amount of money left for each iteration.

Build R functions for both simulation 1 and 2, that have input values m, c, n and I,

m = initial amount of money

c = amount betted to start

n = maximum number of rounds in one iteration

I = number of iterations

and output a dataset with two columns, iteration number and amount left.

For both simulations, calculate summary stats of amount left (mean, median, variance min and max) and plot histograms of the amount left.

Attachment:- Project Assignment File.rar

Reference no: EM132218008

Questions Cloud

Was the collaboration in person or in a virtual environment : How did the team work through differing opinions or challenging behaviors? How did the diversity of the team influence your collaboration?
What type of community has been created in the barbershop : What type of community has been created in the barbershop? How did the intervention use the following concepts about communities to engage participants.
Imposes criminal penalties upon the production : The United States Congress passes a bill that imposes criminal penalties upon the production and use of cannabis (marijuana).
Some methods used to hold executives accountable : What are some methods used to hold Executives accountable?
Calculate summary stats of amount left : For both simulations, calculate summary stats of amount left (mean, median, variance min and max) and plot histograms of the amount left
Improve the productivity of your machinist : On your staff, you have an industrial engineer who is an efficiency expert. You want her to improve the productivity of your machinist.
What were your five highest strengths : What were your five highest strengths? Describe how these strengths are expressed in your daily life. Are there any you do not exercise regularly?
Should you believe everything posted on social media : Does social media cause hotel ratings to be overlooked? Should you believe everything posted on social media?
What is the specific behavior you want to change : Choose a goal you want to achieve or a behavior you want to change. For example, it could be a specific behavior, such as an eating habit, managing anger.

Reviews

Write a Review

Applied Statistics Questions & Answers

  The random variable of interest

Kevin Durant and Russell Westbrook are in a team 3 point shooting contest representing the Oklahoma City Thunder. They will alternate 3 point attempts and will continue to shoot until they miss a shot - ie when Kevin Durant misses he stops and ..

  Explain the properties that must be satisfied by probability

Define the following terms: experiment, event, probability, sample space. Explain the properties that must be satisfied by a probability.

  What are the limitations

It can be from medicine, sports, your job, your other classes, or from any other direction you choose. You need to describe the use of stats - what is new here? How is it helping? What are the limitations? Where might this go next - how wil..

  Should the cbc hire celebrities for movies

Use data from all networks, not just CBC movies and how well does this regression analysis explain the ratings?

  Jane wants to setup a photo shop the cost to rent an office

jane wants to setup a photo shop. the cost to rent an office is 150 per week. the variable cost of making one photo is

  Produce five simple linear regression models

ASSIGNMENT: Data Mining, Analytics and Visualisation with EXCEL. QUESTION ONE: Produce five simple linear regression models

  What is the probability of getting 6 in 4 throws

A fair die is thrown 10 times. What is the probability of getting 6 in 4 throws?

  Calculate the standard deviation for the sample mean

Calculate the standard deviation for the sample mean

  Let a1 and a2 be two events related to an experiment

Let A1 and A2 be two events related to an experiment. Given P(A1)= 1/2, P(A2)= 1/3, P(A1 ∩A2)= 1/4. Find the following probabilities (a) P(A1 ∪ A2) (b) P(A1c ∪ A2c)

  Calculate the pooled estimate of variance

Sample sizes and standard deviations from the PROC TTEST printout and calculate the pooled estimate of variance

  One major company is known to be normally distributed

The shelf life of a battery produced by one major company is known to be Normally distributed, with a mean life of 4 years and a standard deviation of 1 years.

  What factors influence the annual income

Would like to know what factors influence the annual income of a person. What are some of the variables you will look for? How would you collect data on these variables? Is the data qualitative or quantitative? Remember that for each person you find ..

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