Question

In: Statistics and Probability

Suppose you play rock paper scissors against a computer: *you gain $1 for each win *you...

Suppose you play rock paper scissors against a computer:

*you gain $1 for each win

*you lose $1 for each lost

if it is a tie, nothing happens

you choose rock 50% of the time and the others 25% of the time

let x be a random variable that represents the amount of money you earn after one game.

(a) find the probability distribution of X

(b) what is your average payoff after 20 games?

(c) what is the standard deviation of the payoff after 20 games?

Solutions

Expert Solution

I am playing rock paper scissors against computer. I choose rock 50% of times and each of papar and scissors 25% of the time i.e. for me the probabilities of choosing rock is 1/2, paper is 1/4 and scissors is 1/4.

Since, nothing has been mentioned we assume computer has the equal probabilities of choosing these three i.e. for computer each probability is 1/3.

Again, if I gain, I win $1. If I lose, I lose $1 and if there is a tie nothing happens.

We are given, X = random variable that represents the amount of money I earn after one game.

Based on this, we prepare the probability distribution table:

I choose My probability (pm) Computer chooses Computer's probability (pc) Joint Probability = pm x pc Result X
Rock 1/2 Rock 1/3 1/6 Tie 0
Rock 1/2 Paper 1/3 1/6 I lose -1
Rock 1/2 Scissors 1/3 1/6 I win 1
Paper 1/4 Rock 1/3 1/12 I win 1
Paper 1/4 Paper 1/3 1/12 Tie 0
Paper 1/4 Scissors 1/3 1/12 I lose -1
Scissors 1/4 Rock 1/3 1/12 I lose -1
Scissors 1/4 Paper 1/3 1/12 I win 1
Scissors 1/4 Scissors 1/3 1/12 Tie 0
Total 1

(a) We combine the probabilities of the similar value of X and get the probability distribution of X is,

(b) The game is being played for 20 times.

My average or expected pay-off after one game is

= 0

Since, each game is independent of the other, therefore the average pay-off after 20 games

= 20 X 0 = 0

Answer: My average pay-off after 20 games is $0.

(c) We calculate the standard deviation of X by using,

We have E(X) = 0

Therefore,

Hence, the standard deviation of the pay-off after 20 games = 20 X 0.8165 = 16.33 (rounded to 2 decimal places)

Answer: The standard deviation of the pay-off after 20 games is $16.33.


Related Solutions

Problem Description: You have to play the rock-paper-scissors game against the computer for 100 times. You...
Problem Description: You have to play the rock-paper-scissors game against the computer for 100 times. You receive the following rewards each time you play the game:  You get $5 if you win  You get $2 if there is a tie  You get $-1 if you lose The computer randomly chooses rock, paper, or scissors in each game. Rather than deciding what to play (rock, paper or scissors) for each individual game, you decide to use the following...
1. You are playing rock, paper, scissors with a friend. Each time you win, your friend...
1. You are playing rock, paper, scissors with a friend. Each time you win, your friend gives you a dollar. Each time you lose, you pay your friend a dollar. Both of you play optimally with a mixed strategy of playing rock, paper, and scissors exactly one-third of the time each in a completely unpredictable way. Suddenly, a third person enters the room and offers to pay your friend (not you) 50 cents each time your friend throws a rock....
JAVA : Design and implement an application that plays the Rock-Paper-Scissors game against the computer. When...
JAVA : Design and implement an application that plays the Rock-Paper-Scissors game against the computer. When played between two people, each person picks one of three options (usually shown by a hand gesture) at the same time, and a winner is determined. In the game, Rock beats Scissors, Scissors beats Paper, and Paper beats Rock. The program should randomly choose one of the three options (without revealing it) and then prompt for the user’s selection. At that point, the program...
Design and implement an Android application that plays the Rock-Paper-Scissors game against the computer. When played...
Design and implement an Android application that plays the Rock-Paper-Scissors game against the computer. When played between two people, each person picks one of three options (usually shown by a hand gesture) at the same time, and a winner is determined. In the game, Rock beats Scissors, Scissors beats Paper, and Paper beats Rock. The program should randomly choose one of the three options (without revealing it) and then seek for the user’s selection (using your choice of an object...
Code the game of Rock, Paper, Scissors between a human player and the computer. You can...
Code the game of Rock, Paper, Scissors between a human player and the computer. You can check out the game on Wikipedia if you are not familiar with it. Create a 4 option menu with the human player choices, plus the option of exiting the game. Randomly determine the computer’s choice (although a great deal of AI research has gone in to determining the best computer move). • Loop the game until the human player exits. • Count the number...
Two players play a rock-paper-scissors game. The losing player will give $1 to the winning player....
Two players play a rock-paper-scissors game. The losing player will give $1 to the winning player. If it is a draw, no payment is made. The payoff to a player is the amount of money (s)he gets. Represent the situation in a matrix form. Find all the Nash equilibria.
Rock, Paper, Scissors Game Write a Python program rps.py that lets the user play the game...
Rock, Paper, Scissors Game Write a Python program rps.py that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows: You can set these constant global variables at the top outside of your main function definition: COMPUTER_WINS = 1 PLAYER_WINS = 2 TIE = 0 INVALID = 3 ROCK = 1 PAPER = 2 SCISSORS = 3 For this program 1 represents rock, 2 represents paper, and 3 represents scissors. In...
write a python script for rock scissors paper game
write a python script for rock scissors paper game
Please use Python 21. Rock, Paper, Scissors Game Write a program that let's the user play...
Please use Python 21. Rock, Paper, Scissors Game Write a program that let's the user play the game of rock, paper, scissors against the computer. The program should work as follows: 1. When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is 2, then the computer has chosen paper. If the number is 3, then the computer has chosen...
In the game Rock Paper Scissors, two players simultaneously choose one of three options: rock, paper,...
In the game Rock Paper Scissors, two players simultaneously choose one of three options: rock, paper, or scissors. If both players choose the same option, then the result is a tie. However, if they choose differently, the winner is determined as follows: • Rock beats scissors, because a rock can break a pair of scissors. • Scissors beats paper, because scissors can cut paper. • Paper beats rock, because a piece of paper can cover a rock. Create a game...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT