COIN_SIMULATION
Tossing a Coin Many Times
COIN_SIMULATION
is a MATLAB library which
looks at ways of simulating or visualizing the results of
many tosses of a fair or biased coin.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
COIN_SIMULATION is available in
a MATLAB version.
Related Data and Programs:
coin_simulation,
a MATLAB library which
looks at ways of simulating or visualizing the results of
many tosses of a fair or biased coin.
Source Code:
-
coin_simulation_test.m,
calls all the tests.
-
coin_simulation_test.sh,
runs all the tests.
-
coin_simulation_test.txt,
the output file.
-
coin_biased_test.m
-
coin_streak_test.m
-
coin_uniform_test.m
-
r8row_print_test.m
-
r8row_print_some_test.m
-
r8row_running_average_test.m
-
r8row_running_sum_test.m
-
r8row_uniform_ab_test.m
-
r8vec_print_test.m
-
r8vec_running_average_test.m
-
r8vec_running_sign3_test.m
-
r8vec_running_sum_test.m
-
r8vec_uniform_ab_test.m
-
coin_biased_average.png
-
coin_biased_barchart.png
-
coin_biased_plot.png
-
coin_biased_sign.png
-
coin_biased_streak.png
-
coin_biased_sum.png
-
coin_uniform_average.png
-
coin_uniform_barchart.png
-
coin_uniform_plot.png
-
coin_uniform_sign.png
-
coin_uniform_streak.png
-
coin_uniform_sum.png
-
coins_uniform_average.png
-
coins_uniform_plot.png
-
coins_uniform_sum.png
-
coin_biased_100_m1p1.txt,
100 tosses of a biased coin, recorded as -1 or +1, on a single line.
-
coin_biased_100_th.txt,
100 tosses of a biased coin, recorded as "T" or "H", on a single line.
-
coin_biased_10x10_m1p1.txt,
100 tosses of a biased coin, considered as 10 experiments of 10 tosses,
recorded as -1 or +1, on 10 lines.
-
coin_biased_10x10_th.txt,
100 tosses of a biased coin, considered as 10 experiments of 10 tosses,
recorded as "T" or "H", on 10 lines.
-
coin_uniform_100_m1p1.txt,
100 tosses of a fair coin, recorded as -1 or +1, on a single line.
-
coin_uniform_100_th.txt,
100 tosses of a fair coin, recorded as "T" or "H", on a single line.
-
coin_uniform_10x10_m1p1.txt,
100 tosses of a fair coin, considered as 10 experiments of 10 tosses,
recorded as -1 or +1, on 10 lines.
-
coin_uniform_10x10_th.txt,
100 tosses of a fair coin, considered as 10 experiments of 10 tosses,
recorded as "T" or "H", on 10 lines.
Last modified on 22 December 2018.