07-Jan-2022 21:42:35 high_card_simulation_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test high_card_simulation(). HIGH_CARD_SIMULATION_TEST01 Using 100 cards and 100 trials, estimate the chances of picking the high card by skipping a given number of initial cards. Skip Deck Size Chance of Winning 1 100 0.06 11 100 0.23 21 100 0.34 31 100 0.31 41 100 0.32 51 100 0.41 61 100 0.27 71 100 0.17 81 100 0.22 91 100 0.09 HIGH_CARD_SIMULATION_TEST02 Using 100 cards and 1000 trials, compute the chances of picking the high card with a skip of 0 through 99. Data plotted in "high_card_simulation_test02.png". HIGH_CARD_SIMULATION_TEST03 HIGH_CARD_PROBABILITY computes the exact probability of winning a high card game with a deck of 100 cards assuming we skip the first K-1 cards and select the next card that is bigger. K Prob(K) 1 0.01 2 0.0517738 3 0.0835476 4 0.110321 5 0.133762 6 0.154702 7 0.173643 8 0.190916 9 0.206762 10 0.221357 11 0.234841 12 0.247325 13 0.2589 14 0.269642 15 0.279614 16 0.288872 17 0.297464 18 0.30543 19 0.312808 20 0.319631 21 0.325928 22 0.331724 23 0.337044 24 0.34191 25 0.346341 26 0.350355 27 0.353969 28 0.357199 29 0.360058 30 0.36256 31 0.364717 32 0.366541 33 0.368042 34 0.369231 35 0.370117 36 0.370709 37 0.371015 38 0.371043 39 0.370801 40 0.370295 41 0.369534 42 0.368522 43 0.367267 44 0.365773 45 0.364047 46 0.362093 47 0.359918 48 0.357524 49 0.354919 50 0.352104 51 0.349086 52 0.345868 53 0.342453 54 0.338847 55 0.335051 56 0.331071 57 0.326909 58 0.322568 59 0.318051 60 0.313363 61 0.308504 62 0.303479 63 0.29829 64 0.29294 65 0.287431 66 0.281766 67 0.275947 68 0.269977 69 0.263857 70 0.25759 71 0.251179 72 0.244624 73 0.237929 74 0.231094 75 0.224123 76 0.217016 77 0.209777 78 0.202405 79 0.194904 80 0.187275 81 0.179519 82 0.171638 83 0.163633 84 0.155507 85 0.14726 86 0.138894 87 0.13041 88 0.12181 89 0.113096 90 0.104267 91 0.0953262 92 0.0862743 93 0.0771125 94 0.067842 95 0.0584639 96 0.0489795 97 0.0393898 98 0.0296959 99 0.019899 100 0.01 Data plotted in "high_card_simulation_test03.png". high_card_simulation_test() Normal end of execution. 07-Jan-2022 21:42:39