high_card_simulation_test
high_card_simulation_test,
a MATLAB program which
calls high_card_simulation() to simulate a game in which you have one chance to select the highest card
from a deck.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Related Data and Programs:
high_card_simulation,
a MATLAB program which
simulates a situation in which you see the cards in a deck one by one,
and must select the one you think is the highest and stop.
Source Code:
-
high_card_simulation_test.m,
calls all the tests.
-
high_card_simulation_test.sh,
runs all the tests.
-
high_card_simulation_test.txt,
the output file.
-
high_card_simulation_test.m,
calls all the tests.
-
high_card_simulation_test01.m,
estimates the chance of winning with a 100 card deck, and skips of 1, 11,
21, ..., 91 cards.
-
high_card_simulation_test02.m,
computes the chance of winning with a 100 card deck and any skip from 0 to 99,
then makes a plot.
-
high_card_simulation_test02.png,
a plot illustrating the estimated probability of picking the high card
after first skipping 0, 1, 2, ..., 99 cards.
-
high_card_simulation_test03.m,
computes the exact chances of winning with various skips, and a deck of 100 cards.
-
high_card_simulation_test03.png,
plots the exact chances of winning with various skips, and a deck of 100 cards.
Last revised on 17 January 2019.