Question

In: Statistics and Probability

For Exercises explain how each experiment can be simulated by using random numbers. Two players match pennies.

For Exercises explain how each experiment can be simulated by using random numbers.

Two players match pennies.

Solutions

Expert Solution

It is given that two players are playing the match the pennies game.

The game can be described as follows:

 

Both the players (A&B) toss coins. If both get Heads or if both get Tails, then the result is “Match”. If both the players get different outcomes, then the result is “Non-Match”. We need to create a simulation to represent this situation.

 

Step1: We first list the possible outcomes.

The results of the game can be divided into two categories based on the status of the outcome. They are either match or mismatch.

 

Step2: Assign the probabilities to each outcome.

The number of outcomes in “two-coins tossing experiment” is 4. Of these outcomes, two outcomes HH, TT are favorable to event “Match” and the other two HT and TH are favorable to “Non-Match”.

Therefore, P (match) = 0.5, P (non-match) = 0.5.

 

Step3: Set up a correspondence between the random numbers and the outcome.

Use random numbers 0 to 9. The even digits represent a match and odd digits represent a non-match.

 

Step4: Select random number from table and categorize based on the classification given

in the previous step. That is, if the random number is one among 0, 2, 4, 6, 8, then the result of the game is “Match”. Otherwise, the result is “non-match”.

 

Step5: Continue the procedure until we get the required number of trials

The results of the simulated experiment are as follows:

Outcome Result Outcome Result Outcome Result Outcome Result Outcome Result
6 M 7 N 5 N 4 M 3 N
0 M 8 M 2 M 5 N 4 M
1 N 8 M 6 M 2 M 6 M
5 N 3 N 5 N 5 N 6 M
6 M 1 N 0 M 7 N 3 N
7 N 6 M 5 N 7 N 2 M
0 M 4 M 3 N 6 M 7 N
6 M 5 N 1 N 7 N 1 N
3 N 6 M 2 M 0 M 8 M
4 M 9 N 6 M 0 M 2 M

 

From the above results, we can say that there exist 27 Matched games and 23 Non-Matched games.


From the above results, we can say that there exist 27 Matched games and 23 Non-Matched games.

Related Solutions

For Exercises explain how each could be simulated by using random numbers. Two players select a card from a deck with no face cards. The player who gets the higher card wins.
For Exercises explain how each could be simulated by using random numbers.Two players select a card from a deck with no face cards. The player who gets the higher card wins.
For Exercises use random numbers to simulate the experiments. The number in parentheses is the number of times the experiment should be done.
For Exercises use random numbers to simulate the experiments. The number in parentheses is the number of times the experiment should be done.Two coins are tossed. Find the average number of times two tails will appear. (40) 
1) What is a simple way conduction deafness can be simulated? Explain how this simulates conduction...
1) What is a simple way conduction deafness can be simulated? Explain how this simulates conduction deafness. Is there a simple way to simulate nerve deafness? Why or why not? 2) Compare nerve deafness to conduction deafness. 3) In your own words, describe how the procedure for the Rinne's Test differs from the procedure for the Weber's test. What type of a result would you see from each of these tests if an individual had normal hearing?
Generate 200 random numbers using each of the following continuous distributions and plot the histograms (a)...
Generate 200 random numbers using each of the following continuous distributions and plot the histograms (a) Uniform (use A = 3 and B = 7) (b) Exponential (use population mean = 0.2) (c) Gamma (use parameters 3 and 2) (d) Normal (use µ = 2 and σ = 5) Attach the histogram plots and reflect on what you observe. Hint: Use RAND() to generate uniform random numbers and use inverse CDF to generate random numbers for each distribution.
How to inhabit the int array num with random numbers using a function that you then...
How to inhabit the int array num with random numbers using a function that you then invoke from the main method. I already created a function that generates an array of 5 random integers. /* int i;   int arrayName[5];     for(i= 0;i < 6; i++ ){            //type arrayName[arraysize];            arrayName[i] = rand()% 200;       printf("array[%d] = %d\n",i,arrayName[i]); */ // use rand() % some_number to generate a random number int num[5]; int main(int argc, char **argv) { // hint // function invocation goes here...
List the players in a general immune response and explain each with one to two sentences.
List the players in a general immune response and explain each with one to two sentences.
Explain how firm and workers " match and mate" or " marry" each other in the...
Explain how firm and workers " match and mate" or " marry" each other in the labour market when there are many types of jobs offering various levels of risk to the worker. (a) Explain in detail what the slope of the hedonic wage function measure? Part (a) is a question on it's own.
In Exercises 1-38, solve each differential equation using variation of parameters. If an equation can be...
In Exercises 1-38, solve each differential equation using variation of parameters. If an equation can be solved using undetermined coefficients, do so. If both methods can be used to find Yp, which method is easier when both can be used? y"+2y'+50y=e^(-t)csc(7t)
(4) In this game, each of two players can volunteer some of their spare time planting...
(4) In this game, each of two players can volunteer some of their spare time planting and cleaning up the community garden. They both like a nicer garden and the garden is nicer if they volunteer more time to work on it. However, each would rather that the other person do the volunteering. Suppose that each player can volunteer 0, 1, 2, 3, or4 hours. If player 1 volunteers x hours and 2 volunteers y hours, then the resultant garden...
For this problem, you will write a program using two queues. Generate n random numbers between...
For this problem, you will write a program using two queues. Generate n random numbers between 10 and 100 (both inclusive), where n>9. The value of n should be taken as input from the user and n should be >9. The numbers could be duplicated. Enqueue all these numbers to the first queue. The objective is to find the numbers whose sum of digits is odd and enqueue them to the second queue. The remaining numbers (whose sum of digits...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT