I am guessing on this equation, but it looks like it might be close enough:
A = 101/4 + 101/(4x312)
So, I get the following 5x5 matrix:
Code:
[ 4 3 1 1 1 ]
[ 0 3 1 0 -1 ]
[ 0 1 -1 0 0 ]
[ 1 0 0 -1 0 ]
[ 1 0 0 0 0 ]
Inverting, and multiplying by the solution vector, I get:
Code:
[ 0.0 0.0 0.0 0.0 1.0 ] [101.0 ] [ 7.850]
[ 0.125 0.125 0.25 0.125 -0.625 ] [ -3.0 ] [ 7.465]
[ 0.125 0.125 -0.75 0.125 -0.625 ] x [ 0.3237] = [ 7.141]
[ 0.0 0.0 0.0 -1.0 1.0 ] [ 0.3237] [ 7.526]
[ 0.5 -0.5 0.0 0.5 -2.5 ] [ 7.8501] [32.536]
This also behaves well with 153 cards remaining, compared with the sims.
The value of this is constructing a precise expectation of cards remaining for any count scenario and # of cards remaining. Playing strategy can then be determined with far greater accuracy than by simulation or general expectation of cards remaining. The important parameters are then:
-cards remaining
-running count
-size of shoe (# of cards, 6 decks = 312)
-suited-independent # of cards, typically 13 (Spanish is 12)
It also needs to be generalized for any possible set of cards dealt to the player and dealer, and counting algorithms.