Suppose a friend of yours asks you to play a game.  The game is the following: You have to pay your friend $25 to play the game (remember this) Your friend has a number (1 through 5) printed on each of 5 index cards as shown below:     You friend shuffles these cards and places them face-down (i.e., you cannot see any of the numbers) on a table in front of you.  You now are invited to turn over a card one at a time until you get the number 5.  The game ends once you find the card with the number “5”  You win the following amounts, based on how many cards you turned over until you find the card with the number 5:   You first card turned over is “5”         – you win $100  Your second card turned over is “5”   – you win $50 Your third card turned over is “5”       – you win $20 Your fourth card turned over is “5”     – you win $10 Your fifth card turned over is “5”        – you win $5   You decide to pay $25 to play the game.  However, before doing so, you are wondering about how much money you will win or lose (keep in mind it cost you $25 each time you play the game), on average, if you played this game many times.     You decide to run a simulation to address this question, where a single game is considered a trial.  For your simulation, run 25 trials, and record how much you won (or lost) on each trial.  You must show your results for all 25 trials and the random numbers you used for each trial.  Finally, based on your simulation, what is your estimate of the average amount you would win or lose per game played?

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Topic Video
Question
100%

Suppose a friend of yours asks you to play a game.  The game is the following:

  • You have to pay your friend $25 to play the game (remember this)
  • Your friend has a number (1 through 5) printed on each of 5 index cards as shown below:

   






  • You friend shuffles these cards and places them face-down (i.e., you cannot see any of the numbers) on a table in front of you. 
  • You now are invited to turn over a card one at a time until you get the number 5.  The game ends once you find the card with the number “5” 
  • You win the following amounts, based on how many cards you turned over until you find the card with the number 5:

 

  1. You first card turned over is “5”         – you win $100 
  2. Your second card turned over is “5”   – you win $50
  3. Your third card turned over is “5”       – you win $20
  4. Your fourth card turned over is “5”     – you win $10
  5. Your fifth card turned over is “5”        – you win $5

 

You decide to pay $25 to play the game.  However, before doing so, you are wondering about how much money you will win or lose (keep in mind it cost you $25 each time you play the game), on average, if you played this game many times.  

 

You decide to run a simulation to address this question, where a single game is considered a trial.  For your simulation, run 25 trials, and record how much you won (or lost) on each trial.  You must show your results for all 25 trials and the random numbers you used for each trial.  Finally, based on your simulation, what is your estimate of the average amount you would win or lose per game played?     

Suppose a friend of yours asks you to play a game. The game is the following:
You have to pay your friend $25 to play the game (remember this)
• Your friend has a number (1 through 5) printed on each of 5 index cards as shown
below:
1
3
4
• You friend shuffles these cards and places them face-down (i.e., you cannot see
any of the numbers) on a table in front of you.
• You now are invited to tum over a card one at a time until you get the number 5.
The game ends once you find the card with the number "S"
• You win the following amounts, based on how many cards you turned over until
you find the card with the number 5:
- you win $100
a) You first card turned over is "5"
b) Your second card turned over is "5" -you win $50
c) Your third card turned over is "5"
d) Your fourth card turned over is "5" -you win $10
e) Your fifth card turned over is "5"
- you win $20
- you win $5
You decide to pay $25 to play the game. However, before doing so, you are wondering
about how much money you will win or lose (keep in mind it cost you $25 each time you
play the game), on average, if you played this game many times.
You decide to run a simulation to address this question, where a single game is
considered a trial. For your simulation, run 25 trials, and record how much you won (or
lost) on each trial. You must show your results for all 25 trials and the random numbers
you used for each trial. Finally, based on your simulation, what is your estimate of the
average amount you would win or lose per game played?
Transcribed Image Text:Suppose a friend of yours asks you to play a game. The game is the following: You have to pay your friend $25 to play the game (remember this) • Your friend has a number (1 through 5) printed on each of 5 index cards as shown below: 1 3 4 • You friend shuffles these cards and places them face-down (i.e., you cannot see any of the numbers) on a table in front of you. • You now are invited to tum over a card one at a time until you get the number 5. The game ends once you find the card with the number "S" • You win the following amounts, based on how many cards you turned over until you find the card with the number 5: - you win $100 a) You first card turned over is "5" b) Your second card turned over is "5" -you win $50 c) Your third card turned over is "5" d) Your fourth card turned over is "5" -you win $10 e) Your fifth card turned over is "5" - you win $20 - you win $5 You decide to pay $25 to play the game. However, before doing so, you are wondering about how much money you will win or lose (keep in mind it cost you $25 each time you play the game), on average, if you played this game many times. You decide to run a simulation to address this question, where a single game is considered a trial. For your simulation, run 25 trials, and record how much you won (or lost) on each trial. You must show your results for all 25 trials and the random numbers you used for each trial. Finally, based on your simulation, what is your estimate of the average amount you would win or lose per game played?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Permutation and Combination
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman