Here are the rules of NALGO: after the first card is placed on the table, each new card must have a higher number than the previous card. If it does, this new card remains on the table. If the new card is lower in value, then this card is removed from the table and the game is immediately over. Your final score is the number of cards that are placed on the table. For example, if n = 3, then there are six possible scenarios, each of them equally likely to occur. The cards placed on the table are marked in bold. First Card Second Card Third Card 1 2 3 1 3 2 1 3 1 2 2 3 3 2 3 1 2 1 Cards on Table 1, 2, 3 1, 3 2 2, 3 3 3 Points 3 2 1 2 1 1 Thus, if there are n = 3 cards in the deck, then you score 1 point with probability, 2 points with probability, and the maximum 3 points with probability. And so, the expected value of your final score is 1 x + 2x +3× = ¹0 = 1.666. (a) If there are n = 4 cards in the deck, determine the expected value of your final score. Show your calculations. (b) Prove that for all positive integers n ≥3, if there are n cards in the deck, you score exactly 1 point with probability and exactly 2 points with probability. (c) Prove that for all positive integers n and k with n>k, if there are n cards in the deck, you score exactly k points with probability(+1! (Hint: convince yourself that (k+1)! = (+1)!). (d) If there are infinitely many cards in the deck (i.e., n→ ∞o), determine the expected value of your final score. Hint: you will find it helpful to use the identity e² = 1 + + + + + +=+ Recall that e = 2.71828..., the base of the natural logarithm. ....

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
Question
You are given a deck of n cards, which are numbered 1 through n. After the n cards are randomly
shuffled, the cards are dealt face up on the table, one card at a time.
Here are the rules of NALGO: after the first card is placed on the table, each new card must have a
higher number than the previous card. If it does, this new card remains on the table. If the new card is
lower in value, then this card is removed from the table and the game is immediately over.
Your final score is the number of cards that are placed on the table.
For example, if n = 3, then there are six possible scenarios, each of them equally likely to occur. The
cards placed on the table are marked in bold.
First Card Second Card Third Card
1
2
3
1
3
2
2
2
3
3
1
3
1
2
3
1
2
1
Cards on Table
1, 2, 3
1, 3
2
2, 3
3
3
Points
3
2
1
2
1
1
Thus, if there are n = 3 cards in the deck, then you score 1 point with probability , 2 points with
probability, and the maximum 3 points with probability. And so, the expected value of your final
score is 1 x + 2x +3× == 1.666.
(a) If there are n = 4 cards in the deck, determine the expected value of your final score. Show your
calculations.
(b) Prove that for all positive integers n ≥ 3, if there are n cards in the deck, you score exactly 1 point
with probability and exactly 2 points with probability.
(c) Prove that for all positive integers n and k with n > k, if there are n cards in the deck, you score
exactly k points with probability (+1)! (Hint: convince yourself that (k+1)! = (k+1)!).
(d) If there are infinitely many cards in the deck (i.e., n→ ∞), determine the expected value of your
final score.
Hint: you will find it helpful to use the identity e² = 1 + + + + +
Recall that e = 2.71828...., the base of the natural logarithm.
+=+
Transcribed Image Text:You are given a deck of n cards, which are numbered 1 through n. After the n cards are randomly shuffled, the cards are dealt face up on the table, one card at a time. Here are the rules of NALGO: after the first card is placed on the table, each new card must have a higher number than the previous card. If it does, this new card remains on the table. If the new card is lower in value, then this card is removed from the table and the game is immediately over. Your final score is the number of cards that are placed on the table. For example, if n = 3, then there are six possible scenarios, each of them equally likely to occur. The cards placed on the table are marked in bold. First Card Second Card Third Card 1 2 3 1 3 2 2 2 3 3 1 3 1 2 3 1 2 1 Cards on Table 1, 2, 3 1, 3 2 2, 3 3 3 Points 3 2 1 2 1 1 Thus, if there are n = 3 cards in the deck, then you score 1 point with probability , 2 points with probability, and the maximum 3 points with probability. And so, the expected value of your final score is 1 x + 2x +3× == 1.666. (a) If there are n = 4 cards in the deck, determine the expected value of your final score. Show your calculations. (b) Prove that for all positive integers n ≥ 3, if there are n cards in the deck, you score exactly 1 point with probability and exactly 2 points with probability. (c) Prove that for all positive integers n and k with n > k, if there are n cards in the deck, you score exactly k points with probability (+1)! (Hint: convince yourself that (k+1)! = (k+1)!). (d) If there are infinitely many cards in the deck (i.e., n→ ∞), determine the expected value of your final score. Hint: you will find it helpful to use the identity e² = 1 + + + + + Recall that e = 2.71828...., the base of the natural logarithm. +=+
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Similar questions
  • SEE MORE 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