In this post I present a method for estimating the expected true count when the player keeps track of multiple slugs and segments ('playzones'). The approach involves extending the NRS formula, as it is presented in posts by Statman and DvBj (archived at bjmath), to a more general form. Given the secrecy surrounding the NRS formula, it is highly probable that others have derived the solution presented here, or alternative solutions, independently. All I have seen in print are the posts archived at bjmath, and I don't know what is common knowledge within different groups. For these reasons I stress that no claim to novelty or originality is made for what follows. No doubt many people all over the place are reinventing the wheel due to understandably semi-closed communication channels. Nevertheless, I think the following could be of some benefit to those shuffle trackers among us who only have access to information and concepts that are posted on open internet forums, published in books, or (re)discovered by ourselves. Hence the present post.
Before starting, I would like to give a special thanks to alpha, who raised some very good points and got me thinking about the concepts discussed in this post.
The material is organized as follows:
1) Brief outline of the regular NRS formula;
2) Presentation of a more general version of the NRS formula for dealing with two segments, each containing a known slug;
3) Formulas for the n-segment, n-slug case;
4) Derivation of the NRS formula when two slugs are tracked;
5) Derivation of NRS formulas for the n-slug case.
-----
THE REGULAR NRS FORMULA
The NRS formula can be used to estimate the true count of a segment that contains a slug with a known running count. Using DvBj's notation:
TC = (rc + A)/(N - L)
where:
N = [q^2*(d - k)] / [(q - k)^2 + k(d - k)]
r = -(N/q)*[1 - (q - k)/(d - k)]
and:
r = multiplier
c = running count of slug
A = normal running count (starting from zero off the top)
N = constant number of pseudo decks in the segment (playzone)
L = number of decks dealt from the playzone
d = total decks in shoe
k = number of decks in slug
q = size of playzone containing the slug
The formula works well when the player identifies a segment that contains a known slug.
Example: Suppose we cut a 3-deck playzone containing a slug of count �10 to the top of a 6-deck shoe. This implies:
d = 6, q = 3, k =1, c = -10
Using the above formulas we get:
N = 5
r = -1
TC = (10 + A)/(5 � L)
Off the top A = L = 0, giving TC = 10/5 = 2, where 10 is our IRC and 5 is the number of pseudo decks that we assume throughout the playzone. Accordingly, off the top of the shoe we start our running count at +10. As the running count rises and falls we continue to divide by 5 � L to estimate the true count. At the end of the 3-deck playzone we stop this procedure, subtract our IRC of 10 from the running count, and count normally for the remainder of the shoe.
-----
AN EXTENSION OF THE NRS FORMULA TO THE 2-SLUG CASE
The standard formula is not so useful once we are dealing with multiple slugs and segments. For instance, we might cut a segment containing a known slug to the top, and cut out (of the playzone) a segment containing another known slug. The count of the segment cut to the top will be influenced not only by the slug mixed into it, but by the slug that is definitely outside it. It turns out that the true count in this case can be estimated using a slightly more general version of the NRS formula:
TC = [ r{ cI � cO*(q - k)/(d' - q) } + A ] / (N - L)
where:
cI = running count of slug CUT IN to the playzone
cO = running count of slug CUT OUT of the playzone
d' = number of decks that can POTENTIALLY enter the playzone
k = size of slug CUT IN to the playzone
b = d - d' = size of slug CUT OUT of the playzone
Also define cT = running count of 'others' (those cards in neither k nor b).
The term d' plays an important role in everything that follows. In general, d' excludes any cards that cannot possibly enter the playzone. It is introduced because, from the standpoint of the current playzone, it is as if we are playing a shoe only of size d', not d. For instance, if in a 6-deck shoe we cut a 1-deck slug with count +6 out of the playzone, then for the duration of the playzone it is as if we are playing a 5-deck shoe shorted by 6 small cards. In our present 2-slug case, d' includes k (the size of the slug cut in) and all 'others'; but it excludes b (the size of the slug cut out) because b cannot possibly be mixed into the playzone. We know for sure that it has been cut out.
Importantly, once at least one slug has been cut out of play, N and r need to be calculated using d' in place of d. That is:
N = [q^2*(d' - k)] / [(q - k)^2 + k(d' - k)]
r = -(N/q)*[1 - (q - k)/(d' - k)]
Notice that this more general formula is in the form:
TC = [ r(cI - f*cO) + A ] / (N - L)
where
f = (q - k)/(d' - q)
is an adjustment factor.
Here is some intuition behind the formula. In estimating the true count we ADD the term cI because we have cut a slug with this count INTO our playzone. In contrast, we SUBTRACT the term cO because we have cut a slug with this count OUT of our playzone. The adjustment factor f is needed to weight the terms cI and cO appropriately. In the expression for f, q � k is the number of unknown decks in q (our playzone). If q � k is large, our 'cut in' information is relatively weak (the slug we have cut in is more dispersed). The denominator, d' � q is the number of unknown decks outside of q.
Regarding f we can note the following:
If q � k < d' � q, f < 1 and cO is deflated (given less weight)
If q � k > d' � q, f > 1 and cO is inflated (given more weight)
If q � k = d' � q, f = 1 and cI and cO are weighted equally
Note that if both q = d � q AND k = b, it is always true that f = 1.
Check:
f = (q � k)/(d' � q)
f = (q � k)/(d � b � q) since d' = d � b
f = (q � b)/(d � b � q) when k = b
f = (q � b)/(q � b) when q = d � q
f = 1
This result makes sense because if q = d � q, the playzone and non-playzone are of equal size, so the equal sized slugs (one of size k cut in, the other of size b cut out) will be equally dispersed.
EXAMPLE 1
Suppose we have cut a 3-deck segment containing a slug with count �10 to the top, and cut another 3-deck segment containing a slug with count +6 out of play. We know the following:
d = 6, q = 3, k = 1, b = 1, d' = d � b = 5, cI = -10, cO = 6, cT = 4
Conveniently, f = 1, since q = d � q = 3 and k = b = 1.
Using our formulas:
N = 4.5
r = -0.75
TC = [-0.75(-10 � 1(6)) + A]/[4.5 � L]
Off the top, A = L = 0 and the true count of the playzone is:
TC = 12 / (4.5) = 2.67
where our IRC = 12 and we assume 4.5 pseudo decks.
Plausibility check 1: The total running count for the playzone will be equal to the count of the slug cut into play plus the count of the 'others' that are mixed in with it in q. Since there are 4 decks of 'others', and these are divided equally between the playzone q, and the non-playzone d � q, the expected contribution of 'others' to the running count of q will be 0.5cT. So the expected running count of the playzone can be calculated as RC(q) = cI + 0.5cT = -10 + 0.5(4) = -8. This implies an initial true count for the 3-deck segment q of 8/3 = 2.67, which conforms to our result above.
Plausibility check 2: If, as expected, the running count drops by 2.67 over the first deck, the true count should remain unchanged. Using our formula, with A = �2.67 and L = 1, we calculate TC = (12 � 2.67)/(4.5 � 1) = 2.67, confirming that the true count has indeed remain unchanged.
The extended NRS formula continues to be applicable when the segments and slugs are of different sizes. Another example will illustrate this.
EXAMPLE 2
Suppose there is a 2-deck playzone that contains a 1-deck slug with count �10 that we cut to the top, and a 4-deck segment that contains a slug with count +6 that we cut to the bottom (and out of the playzone). This implies:
d = 6, q = 2, k = 1, b = 2, d' = d � b = 4, cI = -10, cO = 6, cT = 4
Given these parameters, N = 3 and r = -1. The adjustment factor is:
f = (q � k)/(d' � q) = (2 � 1)/(4 � 2) = 0.5
so we will deflate the cut-out information, which makes sense as it is more dispersed than the cut-in information. The true count is:
TC = [-1*(-10 � 0.5(6)) + A] / [3 � L]
Off the top A = L = 0 and the true count of the playzone is:
TC = 13/3 = 4.33
where the IRC = 13 and the number of pseudo decks is 3.
-----
N-SEGMENT, N-SLUG CASE
Let:
ki = size of slug i
qi = size of playzone i
fi = adjustment factor for playzone i
di' = number of decks that can potentially enter playzone i
ci = running count of slug i
Ni = pseudo decks in playzone i
ri = multiplier for playzone i
TCi = true count of playzone i
Li = decks dealt from playzone i
i = 1,...,n
For 'playzone 1', defined as the segment cut to the top, we use the formula:
TC1 = [ r1{ c1 � f1(c2) � f1(c3) � ... � f1(cn) } + A ] / (N1 � L1)
To calculate the true count for 'playzones 2,...,n-1' we must use a somewhat different formula:
TCi = [ ri { ci � fi(ci+1) � fi(ci+2) � ... � fi(cn) � fi(A0i) } + A ] / (Ni � Li)
where i = 2,...,n-1, and A0i = A off the top of playzone i.
For 'playzone n', we revert to regular counting, where the true count is calculated simply as A/qn.
Note that in the above true-count formulas:
di' = d � (Sum of qj for all j < i) + (Sum of kj for all j > i)
For instance, if n = 4:
d1' = d � (k2 + k3 + k4) = d � (decks CERTAINLY NOT mixed with k1)
d2' = d � (q1 + k3 + k4) = d � (decks CERTAINLY NOT mixed with k2)
d3' = d � (q1 + q2 + k4) = d � (decks CERTAINLY NOT mixed with k3)
d4' = d � (q1 + q2 + q3) = d � (decks CERTAINLY NOT mixed with k4)
Also needed are:
Ni = [qi^2*(di' � ki)] / [(qi � ki)^2 + ki(di' � ki)]
ri = -(Ni/qi)*[1 � (qi � ki)/(di' � ki)]
fi = (qi � ki)/(di' � qi)
An important thing to note about the true-count formula for playzones 2,...,n is that we subtract ri*fi*A0i. This is because we need to subtract all decks that cannot possibly be dealt during segment i. These cards include any future slugs definitely cut out of segment i, as well as any cards already dealt. For instance, from the standpoint of playzone 2, it is as if the dealt cards of playzone 1 have been cut out of play. Similarly, from the standpoint of playzone n-1, it is as if the dealt cards from playzones 1,...,n-2 have been cut out of play.
EXAMPLE: n = 4
Imagine that we have tracked four 2-deck playzones, each containing a 1-deck slug with running counts �10, 6, 4, 3, respectively. This implies:
d = 8
q1 = q2 = q3 = q4 = 2
k1 = k2 = k3 = k4 = 1
c1 = -10, c2 = 6, c3 = 4, c4 = 3, cT = -3
d1' = d � (k2 + k3 + k4) = 5
d2' = d � (q1 + k3 + k4) = 4
d3' = d � (q1 + q2 + k4) = 3
d4' = d � (q1 + q2 + q3) = 2
For playzone 1:
N1 = 3.2
r1 = -1.2
f1 = (q1 � k1)/(d1' � q1) = (2 � 1)/(5 � 2) = 0.33
TC1 = [ r1 ( c1 � f2(c2) � f3(c3) � f4(c4) ) + A ] / (N1 � L1)
Substitution gives:
TC1 = [-1.2 ( -10 � 1/3*(6 + 4 + 3) ) + A] / (3.2 � L1)
When A = L1 = 0, TC1 = (17.2)/(3.2) = 5.375. So off the top of the shoe we set the IRC = 17.2 and assume 3.2 pseudo decks. By the end of playzone 1 the running count is expected to drop by 2(TC) = 10.75. Just prior to the commencement of playzone 2 we subtract the IRC of 17.2 off our running count.
For playzone 2:
N2 = 3
r2 = -1
f2 = (2 � 1)/(4 � 2) = 0.5
TC2 = [ r2 (c2 � f2(c3) � f2(c4) � f2(A02) ) ] / (N2 � L2)
If, as expected, A02 = -10.75 at the start of playzone 2, we get:
TC2 = -7.875/3 = -2.625
For playzone 3:
N3 = 2.67, r3 = -0.67, f3 = 1,
TC3 = [ r3 (c3 � f3(c4) � f3(A) ) ] / (N3 � L3)
If, as expected, A03 = -10.75 + 5.25 = -5.5 at the start of playzone 3, we get:
TC3 = (-4.33)/(2.67) = -1.625
At the end of playzone 3 we revert to regular counting. If things go as expected once more, we will have A = -10.75 + 5.25 + 3.25 = -2.25, giving:
TC4 = A04/q4 = -2.25/2 = -1.125
Plausibility check: Playzone 1 has a total running count of c1 + 0.25cT = -10.75, implying an initial true count of 10.75/2 = 5.375. Playzone 2 has a total running count of c2 + 0.25cT = 5.25, implying a starting true count of �5.25/2 = -2.625. Playzone 3 has a total running count of c3 + 0.25cT = 3.25, indicating an initial true count of �3.25/2 = -1.625. All these initial true counts conform to the results calculated using the extended NRS formula.
Remember that there is no requirement that the slugs or playzones be of equal size (although for practical reasons it can certainly make a lot of sense to work with equal sized q's and k's). One more example might help those who want to check that they are using the formulas correctly:
EXAMPLE: n = 3, unequal slug and segment sizes
Let:
d = 6
q1 = 2, q2 = 3, q3 = 1
k1 = 1, k2 = 2, k3 = 0.5
c1 = -10, c2 = 6, c3 = 7, cT = -3
d1' = d � (k2 + k3) = 3.5
d2' = d � (q1 + k3) = 3.5
d3' = d � (q1 + q2) = 1
N1 = 20/7, r1 = -6/7, f1 = 2/3, TC1 = 5.6
N2 = 27/8, r2 = -3/8, f2 = 2, TC2 = -1.6 if, as expected, A02 = -11.2
In the third segment we revert to regular counting. If, as expected, A03 = -11.2 + 4.8 = -6.4, the true count will be TC = A/q3 = -6.4.
-----
DERIVATION OF THE NRS FORMULA: 2-SLUG CASE
Identifying the appropriate expressions for N and r in the 2-slug case is straightforward, thanks to DvBj's derivation of N and r in the regular formula. For the duration of the playzone, d', not d, is the appropriate representation of the shoe size. This means we can calculate N and r in exactly the same way as in the regular formula, except to substitute d' for d. (For those familiar with DvBj's derivation of N and r, the only changes to that derivation in the present case are: (i) there are d' � k 'blue cards', rather than d � k; and (ii) we need to find the most likely true count given A � cO, not A. Since the term A � cO in the present case, or A in DvBj's post, cancel out during the derivation, the only difference in the final result is that d' appears in N and r everywhere d appears in the 1-slug case. For this reason, repetition of the identical steps and algebra presented by DvBj would be superfluous.)
The upshot of this is that our task is confined to determining the appropriate modification of c in the regular NRS formula, since N and r raise no additional difficulties. As has been noted, the true count of the playzone is affected both by the slug it contains, and by the one it does not. Somehow we need to find an expression for c that involves both cI and cO.
The key to the problem is to recognize that the NRS formula includes a CONSTANT PART and a variable part. In the regular formula
TC = (rc + A)/(N � L)
only A and L vary. In contrast, rc/N remains constant throughout the playzone.
Off the top of the shoe, A = L = 0 and the NRS formula reduces to:
(1) TC = rc/N
If we can calculate the true count for this case, we will know the constant part of the formula.
There is another way to calculate the starting true count of our playzone:
TC = � [(RC of slug cut into playzone) + (expected RC of 'others' in playzone)] / [number of decks in playzone]
where RC denotes running count. Term 1 in the numerator of this fraction is cI. Term 2 in the numerator equals the fraction of 'others' in the playzone multiplied by the total RC of the 'others'. The first part of this product , the fraction of 'others' in the playzone, equals (q � k)/(d' � k). The second part, the total RC of the 'others', is cT. Lastly, the denominator of the above TC expression is simply q.
Putting these things together we can write:
(2) TC = � [ cI + cT*(q � k)/(d' � k) ] / q
We now have two separate expressions for the starting true count of the playzone; namely (1) and (2). Setting them equal to each other we have:
(3) rc/N = � [ cI + cT*(q � k)/(d' � k) ] / q
We are especially interested in the appropriate expression for c. Rearranging (3) gives:
c = � (N/r) * [ { cI + cT*(q � k)/(d' � k) } / q ]
Before substituting for r and N, it will be helpful to rearrange r and then N/r:
r = � (N/r) * [1 � (q � k)/(d' � k)]
Substituting for N:
r = � [ q^2*(d' � k) / { (q � k)^2 + k(d' � k) }] * 1/q * [1 � (q � k)/(d' � k)]
r = � [ q(d' � k) / { (q � k)^2 + k(d' � k) } ] * [ (d' � k � q + k) / (d' � k) ]
r = � [ q(d' � k) / { (q � k)^2 + k(d' � k) } ] * [ (d' � q)/(d' � k) ]
Turning to N/r:
N/r = � [ q^2*(d' � k) / { (q � k)^2 + k(d' � k) } ] / [ q(d' � k) / {(q � k)^2 + k(d' � k)}] * [ (d' � q)/(d' � k) ]
Notice that most terms in the first two square-bracketed expressions cancel, leaving:
N/r = � q / [ (d' � q)/(d' � k) ]
Substituting for N/r in our expression for c:
c = [ � q / { (d' � q)/(d' � k) } ] * [ � { cI + cT*(q � k)/(d' � k) } / q ]
c = [ cI + cT*(q � k)/(d' � k) ] / [ (d' � q)/(d' � k) ]
Now, cT = � (cI + cO). Substituting for cT in our expression for c:
c = [ cI � (cI + cO)*(q � k)/(d' � k) ] / [ (d' � q)/(d' � k) ]
c = [ cI � cI*(q � k)/(d' � k) + cO*(q � k)/(d' � k) ] / [ (d' � q)/(d' � k) ]
c = [ cI *{ 1 � (q � k)/(d' � k) } + cO*(q � k)/(d' � k) ] / [ (d' � q)/(d' � k) ]
c = [ cI *{ (d' � k � q + k)/(d' � k) } + cO*(q � k)/(d' � k) ] / [ (d' � q)/(d' � k) ]
c = [cI * (d' � q)/(d' � k)] / [(d' � q)/(d' � k)] + [cO*(q � k)/(d' � k)] / [(d' � q)/(d' � k)]
After cancellations:
c = cI � cO*(q � k)/(d' � q)
Substituting this expression for c into the constant part of the regular NRS formula gives:
rc/N = r [ cI � cO*(q � k)/(d' � q) ] / N
which gives us the constant part of our extended NRS formula for the 2-slug case, and also indicates the off-the-top true count where A = L = 0.
Finally, substituting our expression for c into the regular NRS formula gives the extended formula for the 2-slug case:
TC = [ r *{ cI � cO*(q � k)/(d' � q) } + A ] / ( N � L )
Or:
TC = [ r * ( cI � f*cO ) + A ] / ( N � L )
where f = (q � k)/(d' � q) is the adjustment factor.
-----
DERIVATION OF THE NRS FORMULA: N-SLUG CASE
The derivation for the n-slug case is straightforward now that we have completed the derivation for the 2-slug case.
At the start of playzone i, i = 1,...,n:
(1') TCi = ri*c / Ni
and
(2') TCi = � [ ci + cT*(qi � ki)/(di' � ki) ] / qi
Setting these expressions equal to each other and solving for c:
c = � (Ni/ri) * [ ci + cT*(qi � ki)/(di' � ki) ] / qi
With similar working to that carried out in the 2-slug case, it can be shown that:
Ni/ri = � q / [ (di' � qi)/(di' � ki) ]
Substituting this into our expression for c:
c = [ � q / { (di' � qi)/(di' � ki) } ] * [� { ci + cT*(qi � ki)/(di' � ki) } / qi ]
c = [ ci + cT*(qi � ki)/(di' � ki) ] / [ (di' � qi)/(di' � ki) ]
Now, note that:
cT = � (c1 + c2 + ... + cn) = � [ ci + ( (ci+1) + (ci+2) + ... + (cn) ) + A0i ]
Substituting for cT in our expression for c:
c = [ ci � ci*(qi � ki)/(di' � ki) � ( (ci+1) + (ci+2) + ... + (cn) )*(qi � ki)/(di' � ki) � A0i*(qi � ki)/(di' � ki) ] / [ (di' � qi)/(di' � ki) ]
After rearranging and cancelling:
c = ci - ( (ci+1) + (ci+2) + ... + (cn) )*(qi � ki)/(di' � qi) � A0i*(qi � ki)/(di' � qi)
Substituting this expression for c into the regular NRS formula
TCi = (ri*c + A) / (Ni � Li)
gives:
TCi = [ ri *{ ci � ( (ci+1) + (ci+2) + ... + (cn) )*(qi � ki)/(di' � qi) � A0i*(qi � ki)/(di' � qi) } + A ] / (Ni � Li)
Or:
TCi = [ ri * { ci � fi(ci+1) � fi(ci+2) � ... � fi(cn) � fi(A0i) } + A ] / (Ni � Li)
where fi = (qi � ki)/(di' � qi) is the adjustment factor.
Note that when i = 1, A01 = 0, and:
TC1 = [ r1 *{ c1 � f1(c2) � f1(c3) � ... � f1(cn) } + A ] / (N1 � L1)
For i = n we revert to regular counting with:
TC = A/qn

