Question

In: Math

Playing Roulette In the game of roulette, a wheel consists of 38 slots numbered 0, 00,...

Playing Roulette In the game of roulette, a wheel consists of 38 slots numbered 0, 00, 1, 2, . . . , 36. To play the game, a ball is spun around the wheel and is allowed to fall into on of the numbered slots. If the number of the slot the ball falls into matches the number you select, you win $35; otherwise you lose $1.

1. Construct a probability distribution for the random variable X, the winnings of each spin.

2. Determine the mean and standard deviation of the random variable X.

3. Suppose that you play the game 100 times, simulate at least 5 possible outcomes. Describe the pattern.

4. Imagine a person who plays the game 1000 times a day, for 365 days. Simulate such a scenario. What is the frequency distribution of that person’s winnings and losings?

5. Suppose that you play the game 1000 times. Describe the sampling distribution of the mean amount won per game.

6. What is the probability of being ahead after playing the game 100 times?

7. What is the probability of being ahead after playing the game 200 times?

8. What is the probability of being ahead after playing the game 1000 times?

9. Based on your investigation, what lesson does this teach you? Write an essay to inform your gambler friend.

Hint: To find the mean and standard deviation:

x <- c(35, -1)
p <- c(1/38, 37/38)

(mu.X <- sum(x*p))
## [1] -0.05263158
(sigma.X <- sqrt(sum((x - mu.X)^2*p)))
## [1] 5.762617

We simulate two possible outcomes if a person plays the game 100 times.

sample(x, 100, replace = TRUE, p)
##   [1] -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
##  [24] -1 -1 -1 -1 35 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
##  [47] -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
##  [70] -1 35 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 35 -1 -1
##  [93] -1 -1 -1 -1 -1 -1 -1 -1
sample(x, 100, replace = TRUE, p)
##   [1] -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
##  [24] -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 35 -1 -1 -1 -1 -1 -1 -1 -1
##  [47] -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
##  [70] -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
##  [93] -1 -1 -1 -1 -1 -1 -1 -1

Repeat this simulation many times and describe the pattern.

Imagine a person who plays the game n=100n=100 times a day, for 365 days. We examine the sum:

day <- 365
daily.sum <- replicate(day,
                       sum(sample(x, 100, replace = TRUE, p)))
(tb <- table(daily.sum))
## daily.sum
## -100  -64  -28    8   44   80  116  152  188 
##   27   63   78   84   62   33   14    2    2
plot(tb)

As the number of games nn increase, the sums follow a normal distribution N(nμ,nσ2)N(nμ,nσ2). With n=1000n=1000 and class width 36,

day <- 365
daily.sum <- replicate(day,
                       sum(sample(x, 1000, replace = TRUE, p)))
(tb <- table(daily.sum))
## daily.sum
## -568 -532 -460 -424 -388 -352 -316 -280 -244 -208 -172 -136 -100  -64  -28 
##    1    1    4    4    4   12   16   16   23   17   27   26   26   24   25 
##    8   44   80  116  152  188  224  260  296  332  368  440 
##   32   19   26   16   12   11    5    4    7    3    1    3
plot(tb/day/36)
curve(dnorm(x, 1000*mu.X, sqrt(1000)*sigma.X), add = TRUE)

The distribution of sample means has a standard deviation of σ/n−−√σ/n:

daily.mean <- daily.sum/1000
hist(daily.mean, probability = TRUE,
     xlim = c(-2, 2), ylim = c(0, 2.5))
curve(dnorm(x, mu.X, sigma.X/sqrt(1000)),
      xlim = c(-2, 2), add = TRUE)

Play 100 times. What is the probability of being ahead?

n1 <- 100
curve(dnorm(x, mu.X, sigma.X/sqrt(n1)), xlim = c(-2, 2),
      ylim = c(0, 2.5), main = "n=100", ylab = "pdf")
abline(v = mu.X)
coord.x <- c(0, seq(0, 2, 0.01), 2)
coord.y <- c(0, dnorm(seq(0, 2, 0.01), mu.X, sigma.X/sqrt(n1)), 0)
polygon(coord.x, coord.y, density = 10)
1 - pnorm(0, mu.X, sigma.X/sqrt(n1))
## [1] 0.4636141

Play 200 times:

n2 <- 200
curve(dnorm(x, mu.X, sigma.X/sqrt(n2)), xlim = c(-2, 2),
      ylim = c(0, 2.5), main = "n=200", ylab = "pdf")
abline(v = mu.X)
coord.x <- c(0, seq(0, 2, 0.01), 2)
coord.y <- c(0, dnorm(seq(0, 2, 0.01), mu.X, sigma.X/sqrt(n2)), 0)
polygon(coord.x, coord.y, density = 10)
1 - pnorm(0, mu.X, sigma.X/sqrt(n2))
## [1] 0.4486139

Play 1000 times:

n3 <- 1000
curve(dnorm(x, mu.X, sigma.X/sqrt(n3)), xlim = c(-2, 2),
      ylim = c(0, 2.5), main = "n=1000", ylab = "pdf")
abline(v = mu.X)
coord.x <- c(0, seq(0, 2, 0.01), 2)
coord.y <- c(0, dnorm(seq(0, 2, 0.01), mu.X, sigma.X/sqrt(n3)), 0)
polygon(coord.x, coord.y, density = 10)
1 - pnorm(0, mu.X, sigma.X/sqrt(n3))
## [1] 0.3863597

Solutions

Expert Solution

We see the probability of win is and loss is .

a) The  probability distribution for the random variable , the winnings of each spin is

b) The mean of RV is

Standard deviation is

c) The game is simulated 100 times below.

[1] -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 35 -1 -1 35 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
[37] 35 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
[73] -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1

35 occurred only thrice. The win in this game is very rare.

d) The replications of 100 games on 365 days are plotted below. (Histogram).

e) The replications of 1000 games on 365 days are plotted below overlayed by the approximating normal distribution.

According to CLT, the approximating normal PDF is

We are required to solve only 4 parts. Please post the remaining questions as another post.


Related Solutions

In the game of​ roulette, a wheel consists of 38 slots numbered​ 0, 00,​ 1, 2,...,...
In the game of​ roulette, a wheel consists of 38 slots numbered​ 0, 00,​ 1, 2,..., 36. To play the​ game, a metal ball is spun around the wheel and is allowed to fall into one of the numbered slots. If the number of the slot the ball falls into matches the number you​ selected, you win​ $35; otherwise you lose​ $1. Complete parts ​(a) through ​(g) below (a) Construct a probability distribution for the random variable​ X, the winnings...
A roulette wheel has 38 slots, numbered 0, 00, and 1 to 36. The slots 0...
A roulette wheel has 38 slots, numbered 0, 00, and 1 to 36. The slots 0 and 00 are colored green, 18 of the others are red, and 18 are black.The dealer spins the wheel and at the same time rolls a small ball along the wheel in the opposite direction. The wheel is carefully balanced so that the ball is equally likely to land in any slot when the wheel slows. Gamblers can bet on various combinations of numbers...
In a certain game of? chance, a wheel consists of 42 slots numbered? 00, 0,? 1,...
In a certain game of? chance, a wheel consists of 42 slots numbered? 00, 0,? 1, 2,..., 40. To play the? game, a metal ball is spun around the wheel and is allowed to fall into one of the numbered slots. Complete parts? (a) through? (c) below. ?(a) Determine the sample space. Choose the correct answer below. A. The sample space is? {00}. B. The sample space is? {00, 0,? 1, 2,..., 40?}. C. The sample space is? {00, 0}....
In the game of roulette, there is a wheel with 37 slots numbered with the integers...
In the game of roulette, there is a wheel with 37 slots numbered with the integers from 0 to 36, inclusive. A player bets $3 and chooses a number. The wheel is spun and a ball rolls on the wheel. If the ball lands in the slot showing the chosen number, the player receives $3 plus 100$. Otherwise, the player loses the $3 bet. Assume that all numbers are equally likely. Determine the variance of the gain or loss per...
In the popular American game of roulette, the roulette wheel has 38 spaces that are numbered...
In the popular American game of roulette, the roulette wheel has 38 spaces that are numbered 0, 00, and 1 through 36, 0. Find the probability of getting the following: a) A number that is less than 15, not counting 0 and 00; b) A number that is a multiple of 3 or 5, not counting 0 and 00; c) An odd number that is less than 15, not counting 0 and 00; d) A number that is between 1...
The game of roulette involves spinning a wheel with 38 slots: 18 red, 18 black, and...
The game of roulette involves spinning a wheel with 38 slots: 18 red, 18 black, and 2 green. A ball is spun onto the wheel and will eventually land in a slot, where each slot has an equal chance of capturing the ball. (a) You watch a roulette wheel spin 4 consecutive times and the ball lands on a black slot each time. What is the probability that the ball will land on a block slot on the next spin?...
The roulette wheel has 38 slots. Two of the slots are green, 18 are red, and...
The roulette wheel has 38 slots. Two of the slots are green, 18 are red, and 18 are black. A ball lands at random in one of the slots. A casino offers the following game. Pay $1 to enter the game. If the ball falls on black, you don’t get anything, if the ball falls on green, you get a dollar, if the ball falls on red, you get $1.95. Bob plays this game 100 times, and of course, the...
Task 1: Roulette wheel simulation A roulette wheel has 38 slots of which 18 are red,...
Task 1: Roulette wheel simulation A roulette wheel has 38 slots of which 18 are red, 18 are black, and 2 are green. If a ball spun on to the wheel stops on the color a player bets, the player wins. Consider a player betting on red. Winning streaks follow a Geometric(p = 20/38) distribution in which we look for the number of red spins in a row until the first black or green. Use the derivation of the Geometric...
Ex. 2.40 European roulette. The game of European roulette involves spinning a wheel with 37 slots:...
Ex. 2.40 European roulette. The game of European roulette involves spinning a wheel with 37 slots: 18 red, 18 black, and 1 green. A ball is spun onto the wheel and will eventually land in a slot, where each slot has an equal chance of capturing the ball. Gamblers can place bets on red or black. If the ball lands on their colour, they double their money. If it lands on another colour, they lose their money. (a) Suppose you...
On a roulette wheel, the pockets are numbered from 0 to 36. The colours of the...
On a roulette wheel, the pockets are numbered from 0 to 36. The colours of the pockets are as follows: • Pocket 0 is green. • For pockets 1 through 10, the odd-numbered pocketsare red and the even-numberedpockets are black. • For pockets 11 through 18, the odd-numberedpocketsare black and the even-numbered pockets are red. • For pockets 19 through 28, the odd-numberedpocketsare red and the even-numberedpockets are black. • For pockets 29 through 36, the odd-numberedpocketsare black and the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT