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

  Hypothesis testing

What assumptions about the number of pedestrians passing the location in an hour are necessary for your hypothesis test to be valid?

  Calculate the maximum reduction in the standard deviation

Calculate the maximum reduction in the standard deviation

  Calculate the expected value, variance, and standard deviati

Calculate the expected value, variance, and standard deviation of the total income

  Determine the impact of social media use on student learning

Research paper examines determine the impact of social media use on student learning.

  Unemployment survey

Find a statistics study on Unemployment and explain the five-step process of the study.

  Statistical studies

Locate the original poll, summarize the poling procedure (background on how information was gathered), the sample surveyed.

  Evaluate the expected value of the total number of sales

Evaluate the expected value of the total number of sales

  Statistic project

Identify sample, population, sampling frame (if applicable), and response rate (if applicable). Describe sampling technique (if applicable) or experimental design

  Simple data analysis and comparison

Write a report on simple data analysis and comparison.

  Analyze the processed data in statistical survey

Analyze the processed data in Statistical survey.

  What is the probability

Find the probability of given case.

  Frequency distribution

Accepting Manipulation or Manipulating

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