In my example from my OP, I used both the WoOdds site and KC's site. I used my first problem hand: 10,5 vs. dealer 9 (Hit, ENHC 1 deck S17). As you see in the chart I posted, I set up each possible hand you could get if you hit 10,5 and recorded
the online calculators' EV.
So, I took the online calculators' EV for 10,5,10 vs. 9 and the EV for 10,5,9 vs. 9 and the EV for 10,5,8 vs. 9 and so on all the way down to the EV for 10,5,Ace vs. 9. I then calculated the probability that such a hit card would occur (as shown in my table) and multiplied each EV by each probability to get a net EV for that card. Then, I added up all the net EVs to get the overall EV for hitting that underlying hand (in this case, 10,5 vs. dealer 9).
When I do that, I get the number my program is spitting out BUT IT IS NOT THE NUMBER THE ONLINE CALCULATORS THEMSELVES SHOW.
That last bit is the part that I don't understand right now and may be a clue to what I'm doing wrong in the code. Even if one is not writing a program to do this, I would think one could verify the online calculators' numbers this way. (It works for other scenarios.)
So, I suspect I don't understand something and my program is just effectively implementing the same mistake in logic that I made in creating the chart I showed in my post above.
Bookmarks