<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">OJS</journal-id><journal-title-group><journal-title>Open Journal of Statistics</journal-title></journal-title-group><issn pub-type="epub">2161-718X</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ojs.2019.92020</article-id><article-id pub-id-type="publisher-id">OJS-92119</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Progressive Randomization of a Deck of Playing Cards: Experimental Tests and Statistical Analysis of the Riffle Shuffle
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>M.</surname><given-names>P. Silverman</given-names></name><xref ref-type="aff" rid="aff1"><sub>1</sub></xref></contrib></contrib-group><aff id="aff1"><label>1</label><addr-line>Department of Physics, Trinity College, Hartford, CT, USA</addr-line></aff><pub-date pub-type="epub"><day>29</day><month>03</month><year>2019</year></pub-date><volume>09</volume><issue>02</issue><fpage>268</fpage><lpage>298</lpage><history><date date-type="received"><day>22,</day>	<month>March</month>	<year>2019</year></date><date date-type="rev-recd"><day>25,</day>	<month>April</month>	<year>2019</year>	</date><date date-type="accepted"><day>28,</day>	<month>April</month>	<year>2019</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  The question of how many shuffles are required to randomize an initially ordered deck of cards is a problem that has fascinated mathematicians, scientists, and the general public. The two principal theoretical approaches to the problem, which differed in how each defined randomness, has led to statistically different threshold numbers of shuffles. This paper reports a comprehensive experimental analysis of the card randomization problem for the purposes of determining 1) which of the two theoretical approaches made the more accurate prediction, 2) whether different statistical tests yield different threshold numbers of randomizing shuffles, and 3) whether manual or mechanical shuffling randomizes a deck more effectively for a given number of shuffles. Permutations of 52-card decks, each subjected to sets of 19 successive riffle shuffles executed manually and by an auto-shuffling device were recorded sequentially and analyzed in respect to 1) the theory of runs, 2) rank ordering, 3) serial correlation, 4) theory of rising sequences, and 5) entropy and information theory. Among the outcomes, it was found that: 1) different statistical tests were sensitive to different patterns indicative of residual order; 2) as a consequence, the threshold number of randomizing shuffles could vary widely among tests; 3) in general, manual shuffling randomized a deck 
  better than mechanical shuffling for a given number of shuffles; and 4) the mean number of rising sequences as a function of number of manual shuffles matched very closely the theoretical predictions based on the Gilbert-Shannon-Reed
   (GSR) model of riffle shuffles, whereas mechanical shuffling resulted in significantly fewer rising sequences than predicted.
 
</p></abstract><kwd-group><kwd>Randomization of Cards</kwd><kwd> Number of Riffle Shuffles</kwd><kwd> Rising Sequences</kwd><kwd> GSR Model</kwd><kwd> Entropy and Information</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction: The Card Randomization Problem</title><p>Proposed solutions to the problem of determining the number of shuffles required to randomize a deck of cards have drawn upon concepts from probability theory, statistics, combinatorial analysis, group theory, and communication theory [<xref ref-type="bibr" rid="scirp.92119-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.92119-ref2">2</xref>]. The methods employed transcend pure mathematics, and have implications for statistical physics (e.g. random walk; diffusion theory; theory of phase transitions) [<xref ref-type="bibr" rid="scirp.92119-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.92119-ref4">4</xref>] , quantum physics [<xref ref-type="bibr" rid="scirp.92119-ref5">5</xref>] , computer science [<xref ref-type="bibr" rid="scirp.92119-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.92119-ref7">7</xref>] , and other fields in which randomly generated data sequences are investigated. Not only mathematicians and scientists, but the general public as well have shown much interest in the card randomization problem, as reported in popular science periodicals and major news media [<xref ref-type="bibr" rid="scirp.92119-ref8">8</xref>] [<xref ref-type="bibr" rid="scirp.92119-ref9">9</xref>] [<xref ref-type="bibr" rid="scirp.92119-ref10">10</xref>] [<xref ref-type="bibr" rid="scirp.92119-ref11">11</xref>]. This paper reports what the author believes to be the most thorough experimental examination to date of the randomization of shuffled cards, using statistical tests previously employed in nuclear physics to search for violations of physical laws by testing different radioactive decay processes for non-randomness [<xref ref-type="bibr" rid="scirp.92119-ref12">12</xref>] [<xref ref-type="bibr" rid="scirp.92119-ref13">13</xref>] [<xref ref-type="bibr" rid="scirp.92119-ref14">14</xref>] [<xref ref-type="bibr" rid="scirp.92119-ref15">15</xref>].</p><sec id="s1_1"><title>1.1. Background</title><p>Probability as a coherent mathematical theory is said to have been “born in the gaming rooms of the seventeenth century” in attempts to solve one or another betting problem [<xref ref-type="bibr" rid="scirp.92119-ref16">16</xref>]. Among the most ancient forms of gambling are card games, which developed initially in Asia but became popular in Europe after the invention of printing [<xref ref-type="bibr" rid="scirp.92119-ref17">17</xref>]. Depending on what one considers a distinct game, experts in the subject estimate the number of card games to be between 1000 and 10,000 [<xref ref-type="bibr" rid="scirp.92119-ref18">18</xref>] [<xref ref-type="bibr" rid="scirp.92119-ref19">19</xref>]. Most card games are conducted under the assumption that the deck in play has been initially randomized. From a practical standpoint, a deck is considered random if players are unable to predict any sequence of cards following a revealed card. (Mathematically, there is on average 1 chance in n of guessing correctly the value of any unrevealed card in a deck of n randomly distributed cards).</p><p>The standard way to mix a deck of cards randomly is to shuffle it, for which purpose the riffle shuffle is perhaps the most widely studied form. To execute a riffle shuffle, one separates (“cuts”) the deck into two piles, then interleaves the cards by dropping them alternately from each pile to reform a single deck. The process can be performed either by hand or mechanically by an auto shuffler, like the device shown in <xref ref-type="fig" rid="fig1">Figure 1</xref> used to acquire some of the data reported in this paper. Clearly, a single riffle shuffle cannot randomize an ordered deck because the order of cards from each pile is maintained. Indeed, in a perfect riffle shuffle of an even-numbered deck, whereby the deck is cut exactly in half and 1 card is dropped alternately from each pile, there would be no randomization at all. Instead, the sequences of cards resulting from a series of perfect riffle shuffles cycle through a fixed number of permutations leading back to the original card order. For example, a pack of 52 cards recycles after only 8 perfect “out-shuffles” (i.e. where the top card remains on top) [<xref ref-type="bibr" rid="scirp.92119-ref20">20</xref>]. However, under ordinary circumstances</p><p>where shuffles are not perfect, the order of the cards from each pile is degraded with each successive riffle shuffle.</p><p>The central question comprising the card randomization problem is this: How many riffle shuffles are required to randomize a deck of cards? More accurately stated: After how many shuffles can one detect no evidence of non-randomness? Various researchers have studied this question theoretically and arrived at statistically different answers, depending on the adopted measure of randomness. In the analysis of Bayer and Diaconis [<xref ref-type="bibr" rid="scirp.92119-ref1">1</xref>] , the measure of randomness of the deck is the so-called variation distance (VD) [<xref ref-type="bibr" rid="scirp.92119-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.92119-ref21">21</xref>] between the probability density Q n , m of n cards shuffled m times and the uniform density U n = 1 / n ! of the permutation group S n of n distinct objects. In the limit of large n, the VD analysis predicted that</p><p>m VD ( n ) ≈ 3 2 log 2 ( n ) (1)</p><p>shuffles should adequately randomize a deck of n cards. Thus m VD ( 52 ) is about 8 - 9. According to [<xref ref-type="bibr" rid="scirp.92119-ref1">1</xref>] , VD quantifies the mean rate at which a gambler could expect to win against a fair house by exploiting any residual pattern of the cards. The researchers also showed that the VD between Q n , m and U n takes the form</p><p>‖ Q n , m − U n ‖ = 1 − 2 2π ∫ − ∞ − 1 / 4 3 e − t 2 2 d t ≈ 0.115 (2)</p><p>for large n with m given by Equation (1). For complete randomness, the VD would equal 0.</p><p>In a numerical analysis by Trefethen and Trefethen [<xref ref-type="bibr" rid="scirp.92119-ref2">2</xref>] , the adopted measure of randomness was based on the Shannon entropy of the deck in the sense of information theory [<xref ref-type="bibr" rid="scirp.92119-ref22">22</xref>] [<xref ref-type="bibr" rid="scirp.92119-ref23">23</xref>]. If p j ( j = 1 , ⋯ , n ! ) is the probability of the j<sup>th</sup> permutation of S n , then the Shannon entropy of the deck is given by</p><p>H = − ∑ j = 1 n ! p j log 2 p j (3)</p><p>where, by completeness,</p><p>∑ j = 1 n ! p j = 1 , (4)</p><p>and the information associated with the set of probabilities { p j } was defined as</p><p>I n = log 2 ( n ! ) − H . (5)</p><p>According to [<xref ref-type="bibr" rid="scirp.92119-ref2">2</xref>] I n in Equation (5) quantifies the rate at which an ideally competent coder could expect to transmit information if the signals were encoded in shuffled decks of cards. In the limit of large n, the information theoretic (IT) calculation predicted that</p><p>m IT ( n ) ≈ log 2 ( n ) (6)</p><p>shuffles should adequately randomize a deck of n cards. Thus m IT ( 52 ) is about 5 - 6, in contrast to m VD ( 52 ) . The numerically obtained results of [<xref ref-type="bibr" rid="scirp.92119-ref2">2</xref>] were subsequently proved theoretically by another research group [<xref ref-type="bibr" rid="scirp.92119-ref24">24</xref>].</p><p>The structure of relation (5) provides a mathematical definition of the word “information” consistent with its general vernacular use. If there is no uncertainty in the communication of any n-symbol message based on card sequence, then p j = 1 for each permutation j. In that case H = 0 and the information I n = log 2 n ! is maximum. If, however, every message received is completely uncertain as to card order, then p j = 1 / n ! for each permutation j, and therefore, by use of Equation (4), the information I n = 0 . Alternatively [<xref ref-type="bibr" rid="scirp.92119-ref25">25</xref>] , physicists and other scientists usually associate the concept of information with entropy H, Equation (3). The rationale is that the greater the uncertainty (i.e. H) of a message or physical system, the more information one gains by a binary decision (or measurement) that reduces the uncertainty. In a system with perfect order, H = 0; the outcome of any measurement or decision is completely predictable, and therefore no new information is to be gained. Both definitions of information prove useful later in the paper (Section 3.4).</p><p>Although the two analyses [<xref ref-type="bibr" rid="scirp.92119-ref1">1</xref>] and [<xref ref-type="bibr" rid="scirp.92119-ref2">2</xref>] led to statistically different distributions of randomness as a function of shuffle number, they both started from the same mathematical model of shuffling, referred to as the GSR shuffle, named for Gilbert and Shannon [<xref ref-type="bibr" rid="scirp.92119-ref26">26</xref>] and, independently, for Reeds [<xref ref-type="bibr" rid="scirp.92119-ref27">27</xref>]. The GSR shuffle involves the following steps. The deck is cut roughly in half according to a binomial distribution in which the probability that a pile contains k out of n cards is 2 − n C k n where</p><p>C k n ≡ n ! k ! ( n − k ) ! (7)</p><p>is the binomial combinatorial coefficient. The two halves are then riffled together such that the probability of a card being dropped from a pile is proportional to the number of cards in the pile.</p></sec><sec id="s1_2"><title>1.2. Outline of Paper</title><p>The research literature on the randomization of cards by shuffling is vast. An extensive list of references that survey the development of the problem, of which virtually all papers are theoretical analyses or numerical modeling by computer simulation, can be found in [<xref ref-type="bibr" rid="scirp.92119-ref28">28</xref>]. To the best of the author’s knowledge, there has been no comprehensive, systematic experimental examination of the card ordering and patterns produced by manual shuffling to test whether the results conform to the GSR model or support the published theoretical predictions.</p><p>This paper reports on an extensive set of tests by which was measured the progression toward randomness of card sequences produced in multiple riffle shuffles manually and, for comparison, by a mechanical auto shuffler.</p><p>The basic theory and experimental outcomes of the following measures of randomness are discussed in Section 2: 1) runs with respect to the mean, 2) runs up/down, 3) rank ordering, 4) serial correlation (lag 1), and 5) theory of rising sequences.</p><p>Analysis of the data by information theory is discussed in Section 3.</p><p>Conclusions are presented in Section 4.</p></sec></sec><sec id="s2"><title>2. Experiment and Statistical Tests</title><p>Experiments were undertaken to examine the permutations of card order in a deck of n = 52 cards as a function of shuffle number m for m = 0 , 1 , ⋯ , M implemented N times. For the experiments reported here, the number of shuffles per set is M = 19 and the number of sets is N = 12. In addition to manual shuffles, the experiments were also carried out with the mechanical auto shuffler of <xref ref-type="fig" rid="fig1">Figure 1</xref>. The cards used in manual shuffling were not new, but had already been flexed many times previously in play and were therefore more pliant than stiff new cards. This requirement was irrelevant for auto shuffling, since the cards were flat, not flexed, when distributed by the machine into two piles. A sample of the data obtained from one set of M shuffles is shown in <xref ref-type="table" rid="table1">Table 1</xref>.</p><p>The experiment began with an ordered deck (column m = 0, highlighted in red), with card values increasing from 1 (top card) to 52 (bottom card). Permutations of card order for each shuffle m = 1 , 2 , ⋯ , M are recorded sequentially in columns from left to right. A cursory examination of the table immediately reveals patterns of ascending sequences (highlighted in yellow) and descending sequences (highlighted in green) that extend across all the columns. Each of the N sets of card shuffles was subject to a variety of statistical tests to quantify the non-randomness of the permuted orderings indicated by these and other patterns.</p><sec id="s2_1"><title>2.1. Theory of Runs</title><p>A run is defined as a succession of similar events preceded and succeeded by a different event. For example, the sequence of 12 symbols</p><p>b b a a a b b b a b a b</p><p>contains:</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Card sequences after 19 riffle shuffles of an initially ordered deck</title></caption><table><tbody><thead><tr><th align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/9-1241203x32.png" xlink:type="simple"/></inline-formula></th></tr></thead></tbody></table></table-wrap><p>2runsof a oflength1 2runsof b oflength1 1runof b oflength2 1runof a oflength3 1runof b oflength3 (8)</p><p>or a total of 7 runs. If a sequence is random, then all permutations of symbol order should have the same probability of occurrence. From this invariance principle, as applied to a sequence containing n a symbols of type a, n b symbols of type b, and n = n a + n b symbols in all, it can be deduced that [<xref ref-type="bibr" rid="scirp.92119-ref29">29</xref>] :</p><p>・ the mean number of runs of a of length precisely k (where k ≥ 1 ) is</p><p>r &#175; k a = n a ! n b ( n b + 1 ) ( n − k − 1 ) ! ( n a − k ) ! n ! (9)</p><p>・ the mean number of runs of a of length k or greater (i.e. inclusive runs) is</p><p>R &#175; k a = n a ! ( n b + 1 ) ( n − k ) ! ( n a − k ) ! n ! (10)</p><p>・ the mean number of total runs of both kinds is</p><p>R &#175; = R &#175; 1 a + R &#175; 1 b = n + 2 n a n b n . (11)</p><p>Expressions for r &#175; k b , R &#175; k b follow, mutatis mutandis, from Equation (9) and Equation (10). Proofs of these expressions are given in [<xref ref-type="bibr" rid="scirp.92119-ref30">30</xref>] [<xref ref-type="bibr" rid="scirp.92119-ref31">31</xref>].</p><p>Two methods were employed in this paper to generate runs of binary symbols from the experimentally recorded sequences of digital card values.</p><sec id="s2_1_1"><title>2.1.1. Target Runs</title><p>The card value x i ( i = 1 , ⋯ , n ) at location i in the sequence resulting from a particular shuffle is compared with a target value X, here taken to be the mean</p><p>X = 1 n ∑ i = 1 n x i → 26.5 (12)</p><p>which reduces as shown for the case n = 52 with set of card values { x = 1 , 2 , ⋯ , 52 } . If x i &lt; X , the symbol 0 is assigned to location i; if x i &gt; X , the symbol 1 is assigned to location i. Because the set { x i } is comprised of integers, the event x i = X cannot occur. Moreover, the set is equally partitioned:</p><p>n 1 = n 0 = 1 2 n ,</p><p>and the mean number of total runs, Equation (11), reduces to</p><p>R &#175; mean = n + 2 2 → 27 (13)</p><p>where the numerical value again applies to the case of n = 52 .</p><p>The associated variance (with corresponding standard deviation) is given by [<xref ref-type="bibr" rid="scirp.92119-ref29">29</xref>]</p><p>σ mean 2 ≈ n 4 ( 1 − 1 n − 1 ) ≈ n − 1 4 σ mean → 3.57 (14)</p><p>with numerical evaluation for n = 52 . It can also be shown that the test statistic</p><p>z mean = R − R &#175; mean σ mean → N ( 0 , 1 ) (15)</p><p>for the observed total number of runs is approximately Gaussian for sufficiently large n. The symbol N ( 0 , 1 ) designates the standard normal distribution of mean 0 and variance 1.</p><p>As an example, consider the 10-card decimal sequence generated by a uniform random number generator (RNG) over the integer range (1 ... 52):</p><p>x = { 294745326344436385 } (16)</p><p>The resulting binary series with target taken to be the mean (12) is then</p><p>y mean = { 1111011110 } (17)</p><p>which comprises the following set of target runs</p><p>2runsof0oflength1 2runsof1oflength4 (18)</p><p>for a total of 4 runs with respect to the mean.</p><p>For a long equipartitioned sequence ( n 1 = n 0 ≫ 1 ), the contribution of runs at the start or end of a sequence becomes negligible compared with the number of runs within the sequence, and Equation (9) and Equation (10) may be approximated as follows [<xref ref-type="bibr" rid="scirp.92119-ref32">32</xref>]</p><p>r &#175; k a ≈ n 2 k + 2 (19)</p><p>R &#175; k a ≈ n 2 k + 1 . (20)</p><p>Equation (19) and Equation (20) are illustrative of the general exact relation</p><p>r &#175; k a = R &#175; k a − R &#175; ( k + 1 ) a (21)</p><p>that follows from the definitions of r &#175; k a and R &#175; k a .</p></sec><sec id="s2_1_2"><title>2.1.2. Runs Up/Down (or Difference Runs)</title><p>An alternative method of generating sequences of binary symbols that provides an independent test for non-random symbol patterns is to calculate sequential differences of the card values as follows</p><p>y j = x j + 1 − x j           ( j = 1 , ⋯ , n − 1 ) (22)</p><p>and assign 1 to a positive difference ( y j &gt; 0 ) and 0 to a negative difference ( y j &lt; 0 ) . Since there is no repeating integer in the set { x i } , the value y j = 0 cannot occur. Thus, a sequence of 52 card values is transformed into a sequence of 51 binary difference values.</p><p>For example, consider again the 10-card decimal sequence (16):</p><p>x = { 294745326344436385 } . (23)</p><p>The resulting binary difference series is then</p><p>y diff = { 100011010 } (24)</p><p>which comprises the following set of up/down runs</p><p>2runsof1oflength1 2runsof0oflength1 1runof1oflength2 1runof0oflength3 (25)</p><p>for a total of 6 up/down runs.</p><p>Comparison of binary sequences (24), (17) and corresponding runs tabulations (25), (18) illustrates how the same decimal sequence (16) can lead to completely different outcomes of up/down and target runs tests. Thus, the two kinds of runs procedures independently test the same decimal sequence for different symbol patterns.</p><p>A major difference between the target runs and the up/down runs is that variates in the former (e.g. series (17)) are realizations of Bernoulli random variables (i.e. the probability of occurrence is the same irrespective of location within the series), whereas the variates in the latter (e.g. series (24)) are not. For up/down runs, the greater the length of a run, the less probable is the occurrence of yet another symbol of the same kind. The expectation values of up/down runs, therefore, differ from those of target runs. Instead, the expressions corresponding to (9)-(11) are [<xref ref-type="bibr" rid="scirp.92119-ref29">29</xref>] :</p><p>・ the mean number of up and down runs of length precisely k (where k ≤ n − 2 ) is</p><p>r &#175; k = 2 ( k + 3 ) ! [ n ( k 2 + 3 k + 1 ) − ( k 3 + 3 k 2 − k − 4 ) ]   (26)</p><p>・ the mean number of up and down runs of length k or greater (where k ≤ n − 1 ) is</p><p>R &#175; k = 2 ( k + 2 ) ! [ n ( k + 1 ) − ( k 2 + k − 1 ) ]   (27)</p><p>・ the mean total number of up and down runs is</p><p>R &#175; u/d = 1 3 ( 2 n − 1 ) → 34.33 (28)</p><p>with associated variance and standard deviation</p><p>σ u/d 2 = 1 90 ( 16 n − 29 ) σ u/d → 2.99 (29)</p><p>Evaluations in Equation (28) and Equation (29) pertain to n = 52 . The statistic</p><p>z u/d = R − R &#175; u/d σ u/d → N ( 0 , 1 ) (30)</p><p>is again approximately normally distributed.</p></sec><sec id="s2_1_3"><title>2.1.3. Runs Tests of Shuffled Cards</title><p>The total numbers of target runs and up/down runs were calculated as a function of shuffle number for each of the N sets of M shuffles, such as exemplified by <xref ref-type="table" rid="table1">Table 1</xref>. Note that the ascending sequences (yellow) and descending sequences (green) respectively correspond to examples of up and down runs. The mean of the N values for each shuffle number was then calculated and converted to standard normal forms expressed by (15) and (30). <xref ref-type="fig" rid="fig2">Figure 2</xref> shows plots of 〈 z mean 〉 in frame A and 〈 z u/d 〉 in frame B as a function of shuffle number. Examination of the figure shows that, when gauged by runs, the deck of cards becomes randomized after a threshold of about 7 - 8 shuffles, where, by the definition adopted here, the point of randomization occurs when the standard normal</p><p>statistic | z | ≤ 1 . Also, for shuffle numbers below threshold, decks shuffled by hand (blue curves) manifested greater disorder than decks mixed by the auto shuffler (red curves).</p></sec></sec><sec id="s2_2"><title>2.2. Rank Correlation (or Rank Order)</title><p>The Spearman rank correlation coefficient r S is a nonparametric measure of the association between two random variables X and Y as defined by their rank order in a sequence of n pairs [<xref ref-type="bibr" rid="scirp.92119-ref33">33</xref>]</p><p>r S = 1 − 6 ∑ i = 1 n D i 2 n ( n 2 − 1 ) (31)</p><p>in which</p><p>D i = r ( x i ) − r ( y i ) (32)</p><p>is the difference between the ranks assigned to samples x i and y i (When a distinction is necessary, lower case letters (e.g. x) represent realizations of the abstract random variable which is usually expressed by an upper case letter (e.g. X)).</p><p>Values of r S range from −1 to +1, respectively signifying perfect anti-correlation (i.e. reverse rankings) and perfect correlation. It is r S 2 , however, rather than r S , that has a statistical interpretation; r S 2 is a measure of the variability of the data attributable to the correlation between variables X and Y [<xref ref-type="bibr" rid="scirp.92119-ref34">34</xref>]. Thus a relatively high correlation coefficient such as r S = 0.7 , means that only 49% of the variability is accounted for by the association between X and Y.</p><p>For independent variables (and therefore uncorrelated ranks), the expectation value and variance are respectively</p><p>〈 r S 〉 = 0 (33)</p><p>σ r S 2 = 1 n − 1 , (34)</p><p>and the test statistic</p><p>z rank = r S − 〈 r S 〉 σ r S = r S n − 1 → N ( 0 , 1 ) (35)</p><p>follows a standard normal distribution to good approximation [<xref ref-type="bibr" rid="scirp.92119-ref35">35</xref>].</p><p>Applied to the shuffling of cards, the variable Y signifies the initial card sequence { y i } m = 0 = { 1 , 2 , ⋯ , 52 } and variable X signifies the card sequence { x i } m = { x 1 , ⋯ , x n } of the m<sup>th</sup> shuffle. Since the face values of the cards range from 1 to 52, the rank of a card is equal to its face value. Therefore an equivalent, but simpler, way to perform the rank correlation test is to calculate the cross correlation of ranks</p><p>C rank ≡ ∑ j = 1 n r ( x j ) r ( y j ) = ∑ j = 1 n j r ( x j ) (36)</p><p>where the second equality in (36) pertains specifically to the sequence of cards in a deck of n cards. The expectation value and variance of C rank are respectively</p><p>〈 C rank 〉 = 1 4 n ( n + 1 ) 2 → 36517 (37)</p><p>σ rank 2 = 1 444 ( n − 1 ) n 2 ( n + 1 ) 2 σ rank → 1640.15 (38)</p><p>with numerical evaluations for n = 52 . The test statistic</p><p>z rank = C rank − 〈 C rank 〉 σ rank (39)</p><p>can be shown to be identical to that of Equation (35) [<xref ref-type="bibr" rid="scirp.92119-ref33">33</xref>].</p><p><xref ref-type="fig" rid="fig3">Figure 3</xref> shows a plot of 〈 z rank 〉 , i.e. Equation (35) or (39) averaged over the N sets of data for each shuffle number m for both manual (blue) and auto (red) shuffled cards. The correlation between the card sequence of the m<sup>th</sup> shuffle and the initial card sequence (m = 0) is interpreted as statistically 0 (i.e. for | z rank | ≤ 1 ) starting at about m = 6 or 7.</p></sec><sec id="s2_3"><title>2.3. Serial Correlation Lag-1</title><p>Serial correlation refers to the relationship between elements of the same series separated by a fixed interval. Given a sequence of elements { x j } for j = 1 , 2 , ⋯ , n , the serial correlation coefficient lag-k is defined by [<xref ref-type="bibr" rid="scirp.92119-ref36">36</xref>]</p><p>ρ k = ∑ j = 1 n x j x j + k − 1 n ( ∑ j = 1 n x j ) 2 ∑ j = 1 n x j 2 − 1 n ( ∑ j = 1 n x j ) 2 (40)</p><p>where x j + k is to be replaced by x j + k − n for all values of j such that j + k &gt; n .</p><p>For the purpose of testing correlations in card order following shuffling, the most useful serial coefficient is ρ 1 , which measures the correlations between pairs of consecutive cards. It can be shown, however, that a test based upon the simpler statistic [<xref ref-type="bibr" rid="scirp.92119-ref37">37</xref>]</p><p>c 1 = ∑ j = 1 n x j x j + 1 (41)</p><p>is equivalent to a test based on ρ 1 . The mean and variance of c 1 are given by the following expressions [<xref ref-type="bibr" rid="scirp.92119-ref36">36</xref>] [<xref ref-type="bibr" rid="scirp.92119-ref37">37</xref>]</p><p>〈 c 1 〉 = S 1 2 − S 2 n − 1 (42)</p><p>σ c 1 2 = S 2 2 − S 4 n − 1 + S 1 4 − 4 S 1 2 S 2 + 4 S 1 S 3 + S 2 2 − 2 S 4 ( n − 1 ) ( n − 2 ) (43)</p><p>where</p><p>S k = ∑ j = 1 n x j k . (44)</p><p>For large n, the statistic</p><p>z serial = c 1 − 〈 c 1 〉 σ c 1 (45)</p><p>follows a standard normal distribution to good approximation.</p><p><xref ref-type="fig" rid="fig4">Figure 4</xref> shows a plot of 〈 z serial 〉 , i.e. Equation (45) averaged over the N sets of data for each shuffle number m for both manually (blue) and auto (red) shuffled cards. The correlation between the card sequence of the m<sup>th</sup> shuffle and the initial card sequence (m = 0) is interpreted as statistically 0 (i.e. for | z serial | ≤ 1 ) starting at about m = 8 (manual) and m = 16 (auto).</p></sec><sec id="s2_4"><title>2.4. Rising Sequences</title><p>A rising sequence, as defined in [<xref ref-type="bibr" rid="scirp.92119-ref1">1</xref>] , is a maximal consecutively increasing subset of an arrangement of cards. For example, consider a hand of 8 cards with the sequence of face values: 1 6 2 3 7 8 4 5. By displaying the cards in the following way</p><p>{ x i } = { 1 2 3 4 5 6 7 8 } (46)</p><p>one sees that the hand consists of two rising sequences (1,2,3,4,5) and (6,7,8) interleaved together. Successive riffle shuffles tend to double the number of rising sequences up to a maximum number of 1 2 ( n + 1 ) in the limit of an infinite number of shuffles. Note that a rising sequence is different from an ascending sequence (i.e. a run up): 1) The elements of a run up merely ascend, but do not have to increment successively; 2) The elements of a rising sequence do not have to be contiguous (as in a run), but can be separated by other elements.</p><p>It is shown in [<xref ref-type="bibr" rid="scirp.92119-ref1">1</xref>] that the probability of a particular permutation following a</p><p>riffle shuffle depends only on the deck size n and the number r of rising sequences in the permutation. Specifically, the probability that the m<sup>th</sup> riffle shuffle of an ordered deck has r rising sequences is</p><p>Q n , m ( r ) = 1 2 m n C n 2 + n − r . (47)</p><p>The mean number of rising sequences in the permutation following m shuffles is then given by</p><p>〈 r n , m 〉 = ∑ r = 1 n r E n ( r ) Q n , m ( r ) (48)</p><p>where the Eulerian number [<xref ref-type="bibr" rid="scirp.92119-ref38">38</xref>]</p><p>E n ( r ) = ∑ n = 1 r + 1 ( − 1 ) r − j j n C r − j n + 1 (49)</p><p>is the number of permutations containing r rising sequences. Substitution of Equation (49) into Equation (48) leads to the simpler expression [<xref ref-type="bibr" rid="scirp.92119-ref39">39</xref>]</p><p>〈 r n , m 〉 = 2 m − n + 1 2 m n ∑ r = 1 2 m − 1 r n . (50)</p><p>The sum of powers of an uninterrupted sequence of positive integers, such as contained in expression (50), is given by Faulhaber’s formula [<xref ref-type="bibr" rid="scirp.92119-ref40">40</xref>]</p><p>∑ r = 1 R r n = R n + 1 n + 1 + 1 2 R n + ∑ k = 2 n B k k ! n ! ( n − k + 1 ) ! R n − k + 1 (51)</p><p>in which B<sub>k</sub> is a Bernoulli number, defined by the generating function [<xref ref-type="bibr" rid="scirp.92119-ref41">41</xref>]</p><p>t e t − 1 = t 2 ( coth ( t / 2 ) − 1 ) = ∑ k = 0 ∞ B k t k k ! (52)</p><p>and given explicitly by</p><p>B 0 = 1                     B 1 = − 1 2 B k = { 0                                                                                 k = 3 , 5 , 7 , ⋯ − ( − 1 ) k / 2 ( 2 π ) − k 2 k ! ζ ( k )               k = 2 , 4 , 6 , ⋯ (53)</p><p>where the Riemann zeta function is defined by (Ref. [<xref ref-type="bibr" rid="scirp.92119-ref41">41</xref>] , pp. 329-330)</p><p>ζ ( p ) = ∑ k = 1 ∞ k − p . (54)</p><p>In the limit R → ∞ , the sum in the right side of Equation (51) becomes negligible, and therefore</p><p>lim R → ∞ ∑ r = 1 R r n → R n + 1 n + 1 − 1 2 R n . (55)</p><p>Substitution of relation (55) into (50) with R = 2 m leads to the asymptotic number of rising sequences after an infinite number of riffle shuffles</p><p>lim m → ∞ 〈 r n , m 〉 = r n , ∞ = 1 2 ( n + 1 ) → 26.5 (56)</p><p>as stated without proof at the start of this section. The numerical evaluation pertains to a deck with n = 52.</p><p>The mean-square number of rising sequences for m shuffles can be calculated numerically from Equation (47) and Equation (49)</p><p>〈 r n , m 2 〉 = ∑ r = 1 n r 2 E n ( r ) Q n , m ( r ) (57)</p><p>from which follows, also numerically, the theoretical (i.e. population) variance</p><p>σ n , m 2 = 〈 r n , m 2 〉 − 〈 r n , m 〉 2 . (58)</p><p>The author was unable to determine an analytical closed-form expression for (57) or (58).</p><p><xref ref-type="table" rid="table2">Table 2</xref> summarizes the relevant statistics of rising sequences based on the GSR model as a function of shuffle number m for a deck of 52 cards. It is seen that about 13 shuffles are required to achieve the asymptotic result of Equation (56). In <xref ref-type="fig" rid="fig5">Figure 5</xref> the theoretically predicted mean number of rising sequences</p><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Statistics of Rising Sequences in a deck of 52 cards</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Shuffle Number m</th><th align="center" valign="middle" >Mean 〈 r 52 , m 〉</th><th align="center" valign="middle" >Mean Square 〈 r 52 , m 2 〉</th><th align="center" valign="middle" >Standard Deviation σ 52 , m</th></tr></thead><tr><td align="center" valign="middle" >0</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >15.9999</td><td align="center" valign="middle" >0.0041</td></tr><tr><td align="center" valign="middle" >3</td><td align="center" valign="middle" >7.9489</td><td align="center" valign="middle" >63.2337</td><td align="center" valign="middle" >0.2224</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >14.0994</td><td align="center" valign="middle" >199.9632</td><td align="center" valign="middle" >1.0814</td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" >19.6053</td><td align="center" valign="middle" >387.4865</td><td align="center" valign="middle" >1.7657</td></tr><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >22.9482</td><td align="center" valign="middle" >530.6637</td><td align="center" valign="middle" >2.0110</td></tr><tr><td align="center" valign="middle" >7</td><td align="center" valign="middle" >24.7104</td><td align="center" valign="middle" >614.9224</td><td align="center" valign="middle" >2.0785</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >25.6034</td><td align="center" valign="middle" >659.9288</td><td align="center" valign="middle" >2.0958</td></tr><tr><td align="center" valign="middle" >9</td><td align="center" valign="middle" >26.0515</td><td align="center" valign="middle" >683.0915</td><td align="center" valign="middle" >2.1001</td></tr><tr><td align="center" valign="middle" >10</td><td align="center" valign="middle" >26.2757</td><td align="center" valign="middle" >694.8289</td><td align="center" valign="middle" >2.1012</td></tr><tr><td align="center" valign="middle" >11</td><td align="center" valign="middle" >26.3879</td><td align="center" valign="middle" >700.7354</td><td align="center" valign="middle" >2.1015</td></tr><tr><td align="center" valign="middle" >12</td><td align="center" valign="middle" >26.4439</td><td align="center" valign="middle" >703.6980</td><td align="center" valign="middle" >2.1016</td></tr><tr><td align="center" valign="middle" >13</td><td align="center" valign="middle" >26.4720</td><td align="center" valign="middle" >705.1815</td><td align="center" valign="middle" >2.1016</td></tr><tr><td align="center" valign="middle" >14</td><td align="center" valign="middle" >26.4860</td><td align="center" valign="middle" >705.9239</td><td align="center" valign="middle" >2.1016</td></tr><tr><td align="center" valign="middle" >15</td><td align="center" valign="middle" >26.4930</td><td align="center" valign="middle" >706.2952</td><td align="center" valign="middle" >2.1016</td></tr><tr><td align="center" valign="middle" >16</td><td align="center" valign="middle" >26.4965</td><td align="center" valign="middle" >706.4809</td><td align="center" valign="middle" >2.1016</td></tr><tr><td align="center" valign="middle" >17</td><td align="center" valign="middle" >26.4982</td><td align="center" valign="middle" >706.5738</td><td align="center" valign="middle" >2.1016</td></tr><tr><td align="center" valign="middle" >18</td><td align="center" valign="middle" >26.4991</td><td align="center" valign="middle" >706.6202</td><td align="center" valign="middle" >2.1016</td></tr><tr><td align="center" valign="middle" >19</td><td align="center" valign="middle" >26.4996</td><td align="center" valign="middle" >706.6435</td><td align="center" valign="middle" >2.1016</td></tr><tr><td align="center" valign="middle" >20</td><td align="center" valign="middle" >26.4998</td><td align="center" valign="middle" >706.6550</td><td align="center" valign="middle" >2.1016</td></tr></tbody></table></table-wrap><p>〈 r n , m 〉 is compared with the observed numbers obtained by manually and auto shuffled cards averaged over the N data sets. Several features are to be noted:</p><p>・ In contrast to the statistical behavior graphically displayed in preceding figures which showed gradual randomization with increasing shuffle number m, the mean number of rising sequences underwent a relatively abrupt transition from a non-random state to the asymptotically random state at a threshold shuffle number m = 7 or 8 for manual shuffles and m = 11 or 12 for auto shuffles.</p><p>・ For m &lt; 4 , the three curves (theory, manual shuffle, auto shuffle) yielded virtually identical results.</p><p>For m ≥ 5 , the rising sequences due to manual shuffling were statistically coincident with theoretical predictions, whereas shuffling by machine yielded too few rising sequences at each shuffle number up to the asymptotic number m A ≈ 13 . This feature suggests one can randomize a deck better by shuffling it manually than by use of a mechanical auto shuffling device like that in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p></sec></sec><sec id="s3"><title>3. Entropy and Information Loss</title><sec id="s3_1"><title>3.1. Entropy of Rising Sequences</title><p>As discussed briefly in Section 1.1, the Shannon entropy of a set of n symbols is given by</p><p>H = − ∑ j = 1 n ! p j log 2 p j (59)</p><p>where p j ( j = 1 , ⋯ , n ! ) is the probability of the j<sup>th</sup> permutation of the n ! total number of ways to permute the symbols. By completeness, the set of probabilities { p j } satisfies Equation (4). Multiplied by a universal physical constant (Boltzmann’s constant k B ), the Shannon entropy, usually expressed in terms of natural logarithms, provides the basis for deriving the partition function―and therefore all the thermodynamic potentials―of equilibrium statistical mechanics [<xref ref-type="bibr" rid="scirp.92119-ref42">42</xref>]. From a physicist’s perspective, H is a universal measure of the disorder of a system, maximum randomization occurring when all p j are equal. For a maximally randomized system of n = 52 symbols, H = log 2 n ! ≈ 225.58 bits.</p><p>Although Equation (59) yields the entropy of a sequence of n distinct uncorrelated symbols, it does not predict the entropy correctly when the permutations are constrained by rules that create correlations among the symbols. To chart the increasing disorder in a system of n cards as a function of the number m of riffle shuffles one can calculate the entropy of all configurations of a fixed number r of rising sequences and then sum that entropy over the total number of rising sequences produced in the shuffle. In this case, the relevant probability function is</p><p>p n , m ( r ) = E n ( r ) Q n , m ( r ) (60)</p><p>with expressions for E n ( r ) and Q n , m ( r ) given respectively by Equation (49) and Equation (47). This procedure leads to a much lower maximum entropy than Equation (59) because it respects the constraints imposed on possible orderings by the physical mechanism of the riffle shuffle. It has been shown that the possible outcomes to m riffle shuffles of an ordered deck are equivalent to the outcomes of cutting a deck into 2 m packets and interleaving the cards from different packets in such a way that the cards from each packet maintain their relative order among themselves [<xref ref-type="bibr" rid="scirp.92119-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.92119-ref39">39</xref>].</p><p><xref ref-type="fig" rid="fig6">Figure 6</xref> shows the variation in p n , m ( r ) as a function of r for various increasing values of m. In the limit of large m, which for all practical purposes</p><p>starts at about m = 10 (blue curve), the distribution over r is a nearly perfect Gaussian function, shown by the dashed red curve in <xref ref-type="fig" rid="fig7">Figure 7</xref>, centered on the asymptotic number of rising shuffles, Equation (56), marked in the figures by a vertical black dashed line. The width (i.e. standard deviation) of the Gaussian is approximately 2.10, as given in <xref ref-type="table" rid="table2">Table 2</xref> for m ≥ 9 .</p><p>The entropy of a deck of n cards as a function of shuffle number m, calculated from the probability distribution (60), takes the form</p><p>H n , m = − ∑ r = 0 n p n , m ( r ) log 2 p n , m ( r ) (61)</p><p>and is plotted in <xref ref-type="fig" rid="fig8">Figure 8</xref> for decks of size n = 14, 26, and 52. The transition between initial complete order H n , 0 = 0 and maximum disorder is sharp like a phase transition, such as exhibited by the mean number of rising sequence in <xref ref-type="fig" rid="fig5">Figure 5</xref>. For n = 52, the maximum entropy H 52 , m ≥ 7 ≈ 3.12 bits is reached by the 7<sup>th</sup> shuffle.</p></sec><sec id="s3_2"><title>3.2. Conditional Entropy</title><p>Equation (61) yields the total entropy of a card deck subject to m riffle shuffles. However, it does not provide information on the randomization of specific card associations, which is the kind of information that serious players might rely on for advantage in competition or gambling. For this purpose, the conditional entropy of pairs of ordered sequences was determined experimentally.</p><p>Let X and Y be two discrete random variables spanning the same range of n sequential integers ( i = 1 , 2 , ⋯ , n ) with joint probability function p X Y ( x , y ) and marginal probability functions</p><p>p X ( x ) = ∑ y = 1 n p X Y ( x , y ) p Y ( y ) = ∑ x = 1 n p X Y ( x , y ) (62)</p><p>each satisfying the completeness relation. The entropy (mean uncertainty) in receipt of n transmitted symbols { x i } or { y i } is</p><p>H ( X ) = − ∑ x = 1 n p X ( x ) log 2 p X ( x ) H ( Y ) = − ∑ y = 1 n p Y ( y ) log 2 p Y ( y ) (63)</p><p>The conditional entropy of the sequence { x i } , given that the sequence { y i } is known, is defined by [<xref ref-type="bibr" rid="scirp.92119-ref43">43</xref>]</p><p>H ( X | Y ) = − ∑ x = 1 n p X | Y ( x | y ) log 2 p X | Y ( x | y )   p Y ( y ) , (64)</p><p>where the condition probability p X | Y ( x | y ) is</p><p>p X | Y ( x | y ) = p X Y ( x , y ) / p Y ( y ) . (65)</p><p>(See also Ref. [<xref ref-type="bibr" rid="scirp.92119-ref22">22</xref>] , pp 52-53.) The joint entropy of X and Y is then given by</p><p>H ( X , Y ) = H ( X ) + H ( Y | X ) = H ( Y ) + H ( X | Y ) . (66)</p><p>Equation (66) states that the entropy of a joint event, e.g. X and Y, is the entropy of the former plus the conditional entropy of the latter when the former is known. One may also define the quantity</p><p>H [ X Y ] ≡ H ( X ) − H ( X | Y ) (67)</p><p>which is the decrease in entropy of the events X when it is known that events Y have occurred. Given the preceding interpretation, the function expressed by Equation (67) is taken to represent the information provided by knowledge of the events Y [<xref ref-type="bibr" rid="scirp.92119-ref43">43</xref>].</p><p>In the analysis of permuted card sequences in the following two sections, the information function H [ X Y ] is one of the important quantities to be deduced experimentally. Substitution into Equation (67) of the conditional probability H ( X | Y ) from Equation (66) leads to the symmetric relation</p><p>H [ X Y ] = H ( X ) + H ( Y ) − H ( X Y ) (68)</p><p>which is particularly useful for calculation.</p></sec><sec id="s3_3"><title>3.3. Entropy of Sequences of Card Pairs: Theoretical</title><p>To apply the preceding concepts to riffle shuffles, the experimental sequences of digital card values are transformed into two sets of binary values by the following procedure, schematically shown in <xref ref-type="fig" rid="fig9">Figure 9</xref>.</p><p>・ Given a decimal sequence of card values { x i } for i = 1 , 2 , ⋯ , n , create the binary sequence { b j } for j = 1 , 2 , ⋯ , n − 1 defined by</p><p>b j = { 1               if x j + 1 − x j = 1 0                   otherwise (69)</p><p>・ Transform the set { b j } into the set { c k } k = 1 , 2 , ⋯ , n − 2 , where</p><p>c k = b k + 1 − 1 2 b k . (70)</p><p>Transformation (69) generates a binary sequence of 1’s and 0’s, in which the symbol 1 signifies a pair of cards in numerical order (e.g. 4,5). Transformation</p><p>(70) converts the binary sequence into a sequence of four values 1, 0, and &#177; 1 2 . <xref ref-type="fig" rid="fig9">Figure 9</xref> illustrates the significance of the four symbols:</p><p>Panel A: c = + 1 2 signifies that a 1 follows a 1.</p><p>Panel B: c = − 1 2 signifies that a 0 follows a 1.</p><p>Panel C: c = 1 signifies that a 1 follows a 0.</p><p>Panel D: c = 0 signifies that a 0 follows a 0.</p><p>Given the set { c k } , the following four pair-association statistics</p><p>n ( 0 , 0 ) = ∑ k = 1 n − 2 I 0 ( c k ) (71)</p><p>n ( 0 , 1 ) = ∑ k = 1 n − 2 I 1 ( c k ) (72)</p><p>n ( 1 , 0 ) = ∑ k = 1 n − 2 I − 1 2 ( c k ) (73)</p><p>n ( 1 , 1 ) = ∑ k = 1 n − 2 I 1 2 ( c k ) , (74)</p><p>in which</p><p>I α ( c k ) = { 1             c k = α 0             c k ≠ α (75)</p><p>count the number of events of the kinds represented respectively by panels A, B, C, D. To summarize, the statistic n ( α , β ) is the number of events of symbol α followed by symbol β , where both symbols can take on values of 0 or 1. The statistics n ( α , β ) satisfy the sum rule</p><p>∑ α = 0 , 1 β = 0 , 1 n ( α , β ) = n − 2 → 50 (76)</p><p>evaluated numerically above for a deck of n = 52 cards.</p><p>In this information theoretic analysis, it is useful to think of the α symbols as the realizations of a “message” variable A that represents a received signal of 1’s and 0’s, whereas the β symbols are the realizations of a following “prediction” variable B that represents a predicted signal of 1’s and 0’s. For each successive shuffle of the deck, the set of conditional probabilities p ( β | α ) determines the conditional entropy H ( B | A ) , which is the uncertainty in predicting B given knowledge of A.</p><p>It is straightforward to show that the conditional probabilities p ( β | α ) can be estimated from the pair association statistics (71)-(74) as follows</p><p>p ( 0 | 0 ) = n ( 0 , 0 ) n ( 0 , 0 ) + n ( 0 , 1 ) (77)</p><p>p ( 1 | 0 ) = n ( 0 , 1 ) n ( 0 , 0 ) + n ( 0 , 1 ) (78)</p><p>p ( 0 | 1 ) = n ( 1 , 0 ) n ( 1 , 0 ) + n ( 1 , 1 ) (79)</p><p>p ( 1 | 1 ) = n ( 1 , 1 ) n ( 1 , 0 ) + n ( 1 , 1 ) (80)</p><p>in the limit of a sufficiently large number of sets of shuffles. Note that the order of symbols in the argument of p ( β | α ) signifies that event α precedes event β , which is the reverse of the order of symbols in the argument of n ( α , β ) . Regrettably, this potential for confusion is the price required to maintain conventional statistical notation.</p><p>The a priori probabilities p A ( α ) of a received symbol α are given by</p><p>p A ( α ) = 1 n − 2 ∑ β = 0 , 1 n ( α , β ) , (81)</p><p>or explicitly</p><p>p A ( 0 ) = n ( 0 , 0 ) + n ( 0 , 1 ) n − 2 ,               p A ( 1 ) = n ( 1 , 0 ) + n ( 1 , 1 ) n − 2 . (82)</p><p>Similarly, the a priori probabilities p B ( β ) of a predicted symbol β are</p><p>p B ( β ) = 1 n − 2 ∑ α = 0 , 1 n ( α , β ) , (83)</p><p>or explicitly</p><p>p B ( 0 ) = n ( 0 , 0 ) + n ( 1 , 0 ) n − 2 ,               p B ( 1 ) = n ( 0 , 1 ) + n ( 1 , 1 ) n − 2 . (84)</p><p>The joint probability p A B ( α , β ) of a received symbol α and predicted symbol β is given by</p><p>p A B ( α , β ) = p A ( α ) p ( β | α ) = n ( α , β ) n − 2 (85)</p><p>where the second equality follows from combining relations (82) and (77)-(80).</p><p>Given the probability functions constructed above, the a priori entropies of the received (A) and predicted (B) signals are</p><p>H ( A ) = − ∑ α = 0 , 1 p A ( α ) log 2 p A ( α ) (86)</p><p>H ( B ) = − ∑ β = 0 , 1 p B ( β ) log 2 p B ( β ) (87)</p><p>and the total entropy of A and B is</p><p>H ( A B ) = − ∑ α = 1 , 0 β = 1 , 0 p A B ( α , β ) log 2 p A B ( α , β )   . (88)</p><p>The information, or decrease in uncertainty of values of B as a result of knowing values of A, is then given by Equation (68)</p><p>H [ B A ] = H ( B ) − H ( B | A ) = H ( A ) + H ( B ) − H ( A B ) . (89)</p><p>The entropy and information are in units of bits (“binary digits”). In statistical physics, where natural logarithms are usually used rather than logarithms to base 2, entropy and information are in units of nats.</p></sec><sec id="s3_4"><title>3.4. Entropy of Sequences of Card Pairs: Experimental</title><p>An experiment was performed in which an initially ordered deck of n = 52 cards was subject to N = 11 sets of M = 19 riffle shuffles per set implemented by the auto shuffler in <xref ref-type="fig" rid="fig1">Figure 1</xref>, thereby generating M columns of card permutations for each set such as illustrated in <xref ref-type="table" rid="table1">Table 1</xref>. The cards were shuffled mechanically, rather than manually, so that the riffle shuffles would be executed as uniformly as possible. The pair association numbers n ( α , β ) for each of the M shuffles were then averaged over the N sets to yield the mean numbers of pair associations summarized in <xref ref-type="table" rid="table3">Table 3</xref> and plotted in <xref ref-type="fig" rid="fig1">Figure 1</xref>0 as a function of shuffle number m.</p><p>For a completely ordered deck prior to shuffling (m = 0), there are n − 2 = 50 occurrences of α = 1 followed by β = 1 , as shown by the plot of n ( 1 , 1 ) (red curve) in <xref ref-type="fig" rid="fig1">Figure 1</xref>0. This number drops rapidly with increasing shuffle number, becoming effectively 0 by about m ≈ 8 . Correspondingly, the occurrence of α = 0</p><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Mean pair association numbers for a 52-Card Deck</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Shuffle Number m</th><th align="center" valign="middle" >n ( 0 , 0 )</th><th align="center" valign="middle" >n ( 0 , 1 )</th><th align="center" valign="middle" >n ( 1 , 0 )</th><th align="center" valign="middle" >n ( 1 , 1 )</th></tr></thead><tr><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0.00</td><td align="center" valign="middle" >0.00</td><td align="center" valign="middle" >0.00</td><td align="center" valign="middle" >50.00</td></tr><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >5.82</td><td align="center" valign="middle" >12.00</td><td align="center" valign="middle" >12.27</td><td align="center" valign="middle" >19.91</td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" >14.27</td><td align="center" valign="middle" >11.91</td><td align="center" valign="middle" >12.36</td><td align="center" valign="middle" >11.45</td></tr><tr><td align="center" valign="middle" >3</td><td align="center" valign="middle" >20.91</td><td align="center" valign="middle" >10.64</td><td align="center" valign="middle" >11.09</td><td align="center" valign="middle" >7.36</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >26.64</td><td align="center" valign="middle" >10.27</td><td align="center" valign="middle" >10.27</td><td align="center" valign="middle" >2.82</td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" >30.27</td><td align="center" valign="middle" >8.91</td><td align="center" valign="middle" >8.91</td><td align="center" valign="middle" >1.91</td></tr><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >34.00</td><td align="center" valign="middle" >7.55</td><td align="center" valign="middle" >7.27</td><td align="center" valign="middle" >1.18</td></tr><tr><td align="center" valign="middle" >7</td><td align="center" valign="middle" >38.36</td><td align="center" valign="middle" >5.36</td><td align="center" valign="middle" >5.36</td><td align="center" valign="middle" >0.91</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >39.18</td><td align="center" valign="middle" >5.18</td><td align="center" valign="middle" >5.27</td><td align="center" valign="middle" >0.36</td></tr><tr><td align="center" valign="middle" >9</td><td align="center" valign="middle" >41.00</td><td align="center" valign="middle" >4.45</td><td align="center" valign="middle" >4.36</td><td align="center" valign="middle" >0.18</td></tr><tr><td align="center" valign="middle" >10</td><td align="center" valign="middle" >42.91</td><td align="center" valign="middle" >3.45</td><td align="center" valign="middle" >3.45</td><td align="center" valign="middle" >0.18</td></tr><tr><td align="center" valign="middle" >11</td><td align="center" valign="middle" >43.55</td><td align="center" valign="middle" >3.00</td><td align="center" valign="middle" >3.09</td><td align="center" valign="middle" >0.36</td></tr><tr><td align="center" valign="middle" >12</td><td align="center" valign="middle" >43.64</td><td align="center" valign="middle" >3.00</td><td align="center" valign="middle" >3.00</td><td align="center" valign="middle" >0.36</td></tr><tr><td align="center" valign="middle" >13</td><td align="center" valign="middle" >43.82</td><td align="center" valign="middle" >3.00</td><td align="center" valign="middle" >3.00</td><td align="center" valign="middle" >0.18</td></tr><tr><td align="center" valign="middle" >14</td><td align="center" valign="middle" >44.00</td><td align="center" valign="middle" >2.91</td><td align="center" valign="middle" >2.91</td><td align="center" valign="middle" >0.18</td></tr><tr><td align="center" valign="middle" >15</td><td align="center" valign="middle" >46.00</td><td align="center" valign="middle" >2.00</td><td align="center" valign="middle" >2.00</td><td align="center" valign="middle" >0.00</td></tr><tr><td align="center" valign="middle" >16</td><td align="center" valign="middle" >46.91</td><td align="center" valign="middle" >1.55</td><td align="center" valign="middle" >1.55</td><td align="center" valign="middle" >0.00</td></tr><tr><td align="center" valign="middle" >17</td><td align="center" valign="middle" >46.55</td><td align="center" valign="middle" >1.73</td><td align="center" valign="middle" >1.73</td><td align="center" valign="middle" >0.00</td></tr><tr><td align="center" valign="middle" >18</td><td align="center" valign="middle" >47.64</td><td align="center" valign="middle" >1.18</td><td align="center" valign="middle" >1.18</td><td align="center" valign="middle" >0.00</td></tr><tr><td align="center" valign="middle" >19</td><td align="center" valign="middle" >46.73</td><td align="center" valign="middle" >1.64</td><td align="center" valign="middle" >1.64</td><td align="center" valign="middle" >0.00</td></tr></tbody></table></table-wrap><p>followed by β = 0 rises rapidly with increasing m, approaching ≈48, as shown by the plot of n ( 0 , 0 ) (blue curve). The plots of n ( 0 , 1 ) (green curve) and n ( 1 , 0 ) (orange curve), which start at 0 and then fall off gradually from a maximum of about 12 at m = 1, are virtually indistinguishable.</p><p>The conditional probabilities p ( β | α ) , deduced from the pair-association statistics by means of Equations (77)-(80), are plotted as a function of m in <xref ref-type="fig" rid="fig1">Figure 1</xref>1. In each panel, the conditional probabilities satisfy the completeness relation</p><p>∑ β = 0 , 1 p ( β | α ) = 1 (90)</p><p>for α = 0 , 1 .</p><p>The plots in panel A, which show the conditional probabilities of prediction variable β given received variable α = 0 , begin at m = 1 because there is no event 0 in a completely ordered deck (m = 0). As the shuffle number m increases, the number of ordered pairs decreases, and p ( 0 | 0 ) approaches 1 while p ( 1 | 0 ) approaches 0. In panel B, the probabilities are conditioned on a received variable 1. As the number of 0 events increase with m, it follows again that p ( 0 | 1 ) approaches 1 and p ( 1 | 1 ) approaches 0. For a gambler or competitive player, the probability p ( 1 | 1 ) is particularly useful, since it quantifies the chance of a third card in order (e.g. 1,2,3), given prior receipt of two cards in order (e.g. 1,2). Empirically, this conditional probability is seen to be about 20% at the 5<sup>th</sup> shuffle.</p><p>The entropy H ( B ) of the prediction variable and information H ( B ) − H ( B | A ) are summarized in <xref ref-type="table" rid="table4">Table 4</xref> and plotted in <xref ref-type="fig" rid="fig1">Figure 1</xref>2. The plot of information (red curve) was multiplied by a factor 10 to enhance visibility. The black double arrow marks the standard deviation of the information at shuffle number m = 12. As shown by <xref ref-type="table" rid="table4">Table 4</xref>, the information at all shuffle numbers is within &#177; 1 standard deviation of 0.</p><p>Since the randomness of a deck of cards is ordinarily expected to increase with the number of shuffles, as shown explicitly in <xref ref-type="fig" rid="fig8">Figure 8</xref> for the entropy of rising sequences, the decrease of H ( B ) with shuffle number in <xref ref-type="fig" rid="fig1">Figure 1</xref>2 calls for an explanation. In the initially ordered deck, all sequential pairs of cards are in order, and therefore both the message variable A and prediction variable B for any pair take the value 1 (as demonstrated in <xref ref-type="fig" rid="fig9">Figure 9</xref>). With each successive shuffle, successive pairs of cards become less and less ordered and variables B and A increasingly take the value 0. Thus, as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>1, the conditional probabilities become increasingly predictable as they asymptotically approach either 1 (100% chance of an ordered pair occurring) or 0 (100% chance of an ordered</p><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> Entropy and Information of Auto-Shuffled 52-Card Deck</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Shuffle Number m</th><th align="center" valign="middle" >Entropy H(B)</th><th align="center" valign="middle" >Conditional Entropy H(B|A)</th><th align="center" valign="middle" >Information H(B) − H(B|A)</th><th align="center" valign="middle" >Information Std Dev</th></tr></thead><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >0.9386</td><td align="center" valign="middle" >0.9382</td><td align="center" valign="middle" >0.0004</td><td align="center" valign="middle" >0.0494</td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" >0.9892</td><td align="center" valign="middle" >0.9883</td><td align="center" valign="middle" >0.0010</td><td align="center" valign="middle" >0.0180</td></tr><tr><td align="center" valign="middle" >3</td><td align="center" valign="middle" >0.9353</td><td align="center" valign="middle" >0.9333</td><td align="center" valign="middle" >0.0021</td><td align="center" valign="middle" >0.0611</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >0.8242</td><td align="center" valign="middle" >0.8269</td><td align="center" valign="middle" >−0.0027</td><td align="center" valign="middle" >0.0767</td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" >0.7463</td><td align="center" valign="middle" >0.7451</td><td align="center" valign="middle" >0.0013</td><td align="center" valign="middle" >0.1158</td></tr><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.6521</td><td align="center" valign="middle" >0.6458</td><td align="center" valign="middle" >0.0063</td><td align="center" valign="middle" >0.1920</td></tr><tr><td align="center" valign="middle" >7</td><td align="center" valign="middle" >0.5323</td><td align="center" valign="middle" >0.5326</td><td align="center" valign="middle" >−0.0003</td><td align="center" valign="middle" >0.1770</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >0.4953</td><td align="center" valign="middle" >0.4977</td><td align="center" valign="middle" >−0.0024</td><td align="center" valign="middle" >0.1381</td></tr><tr><td align="center" valign="middle" >9</td><td align="center" valign="middle" >0.4370</td><td align="center" valign="middle" >0.4340</td><td align="center" valign="middle" >0.0029</td><td align="center" valign="middle" >0.1516</td></tr><tr><td align="center" valign="middle" >10</td><td align="center" valign="middle" >0.3695</td><td align="center" valign="middle" >0.3733</td><td align="center" valign="middle" >−0.0038</td><td align="center" valign="middle" >0.1293</td></tr><tr><td align="center" valign="middle" >11</td><td align="center" valign="middle" >0.3474</td><td align="center" valign="middle" >0.3569</td><td align="center" valign="middle" >−0.0096</td><td align="center" valign="middle" >0.1421</td></tr><tr><td align="center" valign="middle" >12</td><td align="center" valign="middle" >0.3474</td><td align="center" valign="middle" >0.3569</td><td align="center" valign="middle" >−0.0096</td><td align="center" valign="middle" >0.1421</td></tr><tr><td align="center" valign="middle" >13</td><td align="center" valign="middle" >0.3334</td><td align="center" valign="middle" >0.3417</td><td align="center" valign="middle" >−0.0083</td><td align="center" valign="middle" >0.1386</td></tr><tr><td align="center" valign="middle" >14</td><td align="center" valign="middle" >0.3290</td><td align="center" valign="middle" >0.3292</td><td align="center" valign="middle" >−0.0001</td><td align="center" valign="middle" >0.1165</td></tr><tr><td align="center" valign="middle" >15</td><td align="center" valign="middle" >0.1385</td><td align="center" valign="middle" >0.1290</td><td align="center" valign="middle" >0.0094</td><td align="center" valign="middle" >0.1905</td></tr><tr><td align="center" valign="middle" >16</td><td align="center" valign="middle" >0.1201</td><td align="center" valign="middle" >0.1182</td><td align="center" valign="middle" >0.0019</td><td align="center" valign="middle" >0.1781</td></tr><tr><td align="center" valign="middle" >17</td><td align="center" valign="middle" >0.2119</td><td align="center" valign="middle" >0.2092</td><td align="center" valign="middle" >0.0028</td><td align="center" valign="middle" >0.1002</td></tr><tr><td align="center" valign="middle" >18</td><td align="center" valign="middle" >0.0623</td><td align="center" valign="middle" >0.0551</td><td align="center" valign="middle" >0.0072</td><td align="center" valign="middle" >0.1701</td></tr><tr><td align="center" valign="middle" >19</td><td align="center" valign="middle" >0.0702</td><td align="center" valign="middle" >0.0545</td><td align="center" valign="middle" >0.0156</td><td align="center" valign="middle" >0.2276</td></tr></tbody></table></table-wrap><p>pair not occurring). Consequently, pair association variables B and A are so defined that their outcomes become more certain and their entropies (i.e. uncertainties) decrease as the deck becomes increasingly randomized.</p><p>To put into perspective the empirical results of this information theoretical analysis, it is to be recalled that 1 bit of information, as initially construed by Shannon who largely created the subject of information or communication theory [<xref ref-type="bibr" rid="scirp.92119-ref22">22</xref>] , corresponds to the reduction of uncertainty by 1 binary-valued decision―e.g. a “yes or no” or “1 or 0”. As pointed out in Section 1, the word information carries two different meanings, both of which are relevant here:</p><p>1) Information, as ordinarily defined by scientists, is associated with uncertainty, i.e. entropy H. Thus, the decrease in entropy H ( B ) for about the first 10 shuffles, as seen in <xref ref-type="fig" rid="fig1">Figure 1</xref>2, represents a steady loss in information as the outcome (1 or 0) becomes more predictable.</p><p>2) Information can also be construed as a measure of the reduction in uncertainty in one variable (e.g. B) as a result of knowledge of another variable (e.g. A). From this perspective, <xref ref-type="fig" rid="fig1">Figure 1</xref>2 shows that the card order of a preceding pair provided no statistically useful information for predicting the card order of the following pair at any shuffle number m &gt; 0. The reason is that H ( B | A ) decreased with m to the same extent as did H ( B ) .</p></sec></sec><sec id="s4"><title>4. Conclusions</title><p>In this paper the sequential permutations of an initially ordered deck of cards mixed by riffle shuffles executed manually or mechanically were tested for different statistical measures of random patterns, including 1) runs, 2) rank ordering, 3) pair correlations, 4) rising sequences, and 5) entropy and information loss. The various statistical measures probed different aspects of the symbol patterns within each permuted sequence. Consequently, different measures could result in different threshold shuffle numbers at which the deck could be said to have been randomized for the purposes of competitive card playing or gambling.</p><p><xref ref-type="table" rid="table5">Table 5</xref> summarizes the threshold shuffle numbers for randomization according to different statistical measures. It is to be stressed that these threshold values, taken from the empirical plots of the associated sample statistics, are approximate since the point at which a deck of cards can be said to be completely mixed is a subjective judgment. For variates (like rank ordering) expressed in standard normal form with asymptotic Gaussian distribution, the point of complete mixing was estimated visually to occur at a shuffle number for which the sample statistic | z | ≤ 1 . For variates (like rising sequences) that underwent an abrupt change from a state of order to state of disorder, the point of complete mixing was estimated visually to occur at a shuffle number at which the apparent asymptotic limit was reached.</p><p>As seen in <xref ref-type="table" rid="table5">Table 5</xref>, there is a fairly wide spread among the different tests in values of the threshold shuffle number. For example, for manually shuffled cards the measure z of randomization by rank ordering indicates a complete mixing by</p><table-wrap id="table5" ><label><xref ref-type="table" rid="table5">Table 5</xref></label><caption><title> Number of shuffles to achieve satisfactory mixing</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Statistical Test</th><th align="center" valign="middle" >Hand Shuffles</th><th align="center" valign="middle" >Auto Shuffles</th></tr></thead><tr><td align="center" valign="middle" >Runs (relative to mean)</td><td align="center" valign="middle" >10</td><td align="center" valign="middle" >10</td></tr><tr><td align="center" valign="middle" >Runs (up/down)</td><td align="center" valign="middle" >8</td><td align="center" valign="middle" >8</td></tr><tr><td align="center" valign="middle" >Rank Ordering</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >6</td></tr><tr><td align="center" valign="middle" >Serial Correlation (lag 1)</td><td align="center" valign="middle" >8</td><td align="center" valign="middle" >16</td></tr><tr><td align="center" valign="middle" >Rising Sequences</td><td align="center" valign="middle" >8</td><td align="center" valign="middle" >12</td></tr><tr><td align="center" valign="middle" >Conditional Probability p(1|1)</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >9</td></tr><tr><td align="center" valign="middle" >Conditional Probability p(1|0)</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >Entropy (Information) H(B)</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >17</td></tr></tbody></table></table-wrap><p>about the 6<sup>th</sup> shuffle, whereas the runs test statistic z is close to 0 at about the 8<sup>th</sup> shuffle. For the statistical variable of rising sequences, the manually shuffled cards met the criterion of complete mixing at about the 8<sup>th</sup> shuffle, as predicted in [<xref ref-type="bibr" rid="scirp.92119-ref1">1</xref>] , whereas the same criterion was met at about the 12<sup>th</sup> shuffle for mechanically shuffled cards. Large differences in threshold values obtained from different test variables arose because the tests examined different aspects of the residual patterns embedded in the permutations of card order.</p><p>However, so as not to misinterpret (or over-interpret) these results, the reader should bear in mind that the statistical tests in themselves do not indicate that any residual pattern would actually be useful to a card player. For example, <xref ref-type="table" rid="table1">Table 1</xref> shows instances of ascending and descending sequences even up to the 19<sup>th</sup> shuffle, at which point such patterns are almost assuredly uninformative. On the other hand, the residual order remaining at the 7<sup>th</sup> shuffle, indicated by the conditional probability functions plotted in <xref ref-type="fig" rid="fig1">Figure 1</xref>1, might possibly be useful to an astute and skillful player. The variable results of <xref ref-type="table" rid="table5">Table 5</xref> notwithstanding, it is probably safe to say that 4 shuffles―which have been reported to be standard protocol at casinos [<xref ref-type="bibr" rid="scirp.92119-ref44">44</xref>] ―are too few (as suggested by the plots of runs in <xref ref-type="fig" rid="fig2">Figure 2</xref> and rising sequences in <xref ref-type="fig" rid="fig5">Figure 5</xref>).</p><p>Of the various statistical measures applied to the experimentally generated card sequences, the author is aware of only one measure―mean number of rising sequences―for which a theoretical distribution function pertaining to a particular shuffle model is known. The probability function of this distribution, Equation (60), is based on the GSR model of riffle shuffling. Although there are many references in the statistical literature and on the internet to the theory of riffle shuffling (such as those cited in the References to this paper), the author knows of no previously published experimental test with actual cards, rather than simulations by computer. In this regard, the nearly exact match of the theoretically predicted and experimentally measured mean number of rising sequences shown in <xref ref-type="fig" rid="fig5">Figure 5</xref> for manually shuffled cards provides an experimental confirmation of the distribution (60) and therefore evidence in support of the GSR model as a satisfactory description of how humans actually perform riffle shuffles.</p></sec><sec id="s5"><title>Acknowledgements</title><p>J. Becker, J. Boreyko, C. Davis, J. Halverson, N. Harrison, A. Lampert, A. Mathis, O. Sanford, C. Sherman, W. Strange, and F. Sullivan participated in data collection at an early phase of this project. The author also thanks Trinity College for partial support through the research fund associated with the George A. Jarvis Chair of Physics.</p></sec><sec id="s6"><title>Conflicts of Interest</title><p>The author declares no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s7"><title>Cite this paper</title><p>Silverman, M.P. (2019) Progressive Randomization of a Deck of Playing Cards: Experimental Tests and Statistical Analysis of the Riffle Shuffle. Open Journal of Statistics, 9, 268-298. https://doi.org/10.4236/ojs.2019.92020</p></sec></body><back><ref-list><title>References</title><ref id="scirp.92119-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Bayer, D. and Diaconis, P. (1992) Trailing the Dovetail Shuffle to Its Lair. The Annals of Applied Probability, 2 294-313. https://doi.org/10.1214/aoap/1177005705</mixed-citation></ref><ref id="scirp.92119-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Trefethen, L.N. and Trefethen, L.M. (2000) How Many Shuffles to Randomize a Deck of Cards? Proceedings of the Royal Society of London. Series A, 456, 2561-2568. https://doi.org/10.1098/rspa.2000.0625</mixed-citation></ref><ref id="scirp.92119-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Ogievetsky, O. and Petrova, V. (2018) Cyclotomic Shuffles. Physics of Particles and Nuclei, 49, 867-872. https://doi.org/10.1134/S1063779618050325</mixed-citation></ref><ref id="scirp.92119-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Aldous, D. and Diaconis, P. (1986) Shuffling Cards and Stopping Times. The American Mathematical Monthly, 93, 333-348.  
https://doi.org/10.1080/00029890.1986.11971821</mixed-citation></ref><ref id="scirp.92119-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Sanz, A., Sanz-Sanz, C., Gonzalez-Lezana, T., Roncero, O. and Miret-Artes, S. (2012) Quantum Zeno Effect: Quantum Shuffling and Markovianity. Annals of Physics, 327, 1277-1289. https://doi.org/10.1016/j.aop.2011.12.012</mixed-citation></ref><ref id="scirp.92119-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Knuth, D.E. (1998) Seminumerical Algorithms. In: The Art of Computer Programming, Vol. 2, 3rd Edition, Addison-Wesley, Boston, 12-15, 145-146.</mixed-citation></ref><ref id="scirp.92119-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Wikipedia (2019) Fisher-Yates Shuffle.  
http://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#cite_note-knuth3-4</mixed-citation></ref><ref id="scirp.92119-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Kolata, G. (1990) In Shuffling Cards, 7 Is a Winning Number. New York Times, 9 January 1990, 1.</mixed-citation></ref><ref id="scirp.92119-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Peterson, I. (2000) Disorder in the Deck. Science News Online, 21 October 2000.  
http://sciencenews.org/articles/20001021/mathtrek.asp</mixed-citation></ref><ref id="scirp.92119-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">McGinty, J.C. (2018) The Trick behind Properly Shuffling Cards: Casual Players Don’t Typically Randomize the Deck, but a Perfect “Riffle” Also Doesn’t Work. Wall Street Journal, 11 May 2018.  
http://www.wsj.com/articles/the-trick-behind-properly-shuffling-cards-1526043600</mixed-citation></ref><ref id="scirp.92119-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Rehmeyer, J. (2008) Shuffling the Cards: Math Does the Trick. Science News Online, 7 November 2008.  
http://www.sciencenews.org/article/shuffling-cards-math-does-trick</mixed-citation></ref><ref id="scirp.92119-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Silverman, M.P., Strange, W., Silverman, C.R. and Lipscombe, T.C. (1999) Tests of Alpha-, Beta-, and Electron Capture Decays for Randomness. Physics Letters A, 262, 265-273. https://doi.org/10.1016/S0375-9601(99)00668-4</mixed-citation></ref><ref id="scirp.92119-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Silverman, M.P., Strange, W., Silverman, C. and Lipscombe, T.C. (2000) Tests for Randomness of Spontaneous Quantum Decay. Physical Review A, 61, Article ID: 042106. https://doi.org/10.1103/PhysRevA.61.042106</mixed-citation></ref><ref id="scirp.92119-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Silverman, M.P. and Strange, W. (2000) Experimental Tests for Randomness of Quantum Decay Examined as a Markov Process. Physics Letters A, 272, 1-9.  
https://doi.org/10.1016/S0375-9601(00)00374-1</mixed-citation></ref><ref id="scirp.92119-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Silverman, M.P. (2014) A Certain Uncertainty: Nature’s Random Ways. Cambridge University Press, Cambridge. https://doi.org/10.1017/CBO9781139507370</mixed-citation></ref><ref id="scirp.92119-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Weaver, W. (1963) Lady Luck: The Theory of Probability. Doubleday &amp; Company, Garden City, 324-348.</mixed-citation></ref><ref id="scirp.92119-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Bernstein, P.L. (1998) Against the Gods: The Remarkable Story of Risk. Wiley, New York, 12-14.</mixed-citation></ref><ref id="scirp.92119-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">McLeod, J. (2006) Playing-Card Games. International Playing Card Society.  
https://i-p-c-s.org/faq/games.php</mixed-citation></ref><ref id="scirp.92119-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Parlett, D. (1991) A History of Card Games. Oxford University Press, Oxford.</mixed-citation></ref><ref id="scirp.92119-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Diaconis, P., Graham, R.L. and Kanton, W.M. (1983) The Mathematics of Perfect Shuffles. Advances in Applied Mathematics, 4, 175-196.  
https://doi.org/10.1016/0196-8858(83)90009-X</mixed-citation></ref><ref id="scirp.92119-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Diaconis, P., McGrath, M. and Pitman, J.W. (1995) Riffle Shuffles, Cycles and Descents. Combinatorica, 15, 11-29. https://doi.org/10.1007/BF01294457</mixed-citation></ref><ref id="scirp.92119-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">Shannon, C.E. and Weaver, W. (1964) The Mathematical Theory of Communication. University of Illinois Press, Urbana.</mixed-citation></ref><ref id="scirp.92119-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Kullback, S. (1968) Information Theory and Statistics. Dover Publications, Mineola.</mixed-citation></ref><ref id="scirp.92119-ref24"><label>24</label><mixed-citation publication-type="other" xlink:type="simple">Stark, D., Ganesh, A. and O’Connell, N. (2002) Information Loss in Riffle Shuffling. Combinatorics, Probability and Computing, 11, 79-95.  
https://doi.org/10.1017/S0963548301004990</mixed-citation></ref><ref id="scirp.92119-ref25"><label>25</label><mixed-citation publication-type="other" xlink:type="simple">Brillioun, L. (1962) Science and Information Theory. 2nd Edition, Academic Press, New York, 11-22. https://doi.org/10.1063/1.3057866</mixed-citation></ref><ref id="scirp.92119-ref26"><label>26</label><mixed-citation publication-type="other" xlink:type="simple">Gilbert, E.W. (1955) Theory of Shuffling. Bell Laboratories Technical Memorandum, Murray Hill.</mixed-citation></ref><ref id="scirp.92119-ref27"><label>27</label><mixed-citation publication-type="other" xlink:type="simple">Reeds, J. (1981) Unpublished Manuscript.  
https://en.wikipedia.org/wiki/Gilbert%E2%80%93Shannon%E2%80%93Reeds_model</mixed-citation></ref><ref id="scirp.92119-ref28"><label>28</label><mixed-citation publication-type="other" xlink:type="simple">Diaconis, P., Fulman, J. and Holmes, S. (2013) Analysis of Casino Shelf Shuffling Machines. The Annals of Applied Probability, 4, 1692-1720.  
https://doi.org/10.1214/12-AAP884</mixed-citation></ref><ref id="scirp.92119-ref29"><label>29</label><mixed-citation publication-type="other" xlink:type="simple">Hald, A. (1952) Statistical Theory with Engineering Applications. Wiley, New York, 342-359.</mixed-citation></ref><ref id="scirp.92119-ref30"><label>30</label><mixed-citation publication-type="other" xlink:type="simple">Wald, A. and Wolfowitz, J. (1940) On a Test Whether Two Samples Are from the Same Population. The Annals of Mathematical Statistics, 11, 147-162.  
https://doi.org/10.1214/aoms/1177731909</mixed-citation></ref><ref id="scirp.92119-ref31"><label>31</label><mixed-citation publication-type="other" xlink:type="simple">Mood, A.M. (1940) The Distribution Theory of Runs. The Annals of Mathematical Statistics, 11, 367-392. https://doi.org/10.1214/aoms/1177731825</mixed-citation></ref><ref id="scirp.92119-ref32"><label>32</label><mixed-citation publication-type="other" xlink:type="simple">Silverman, M.P., Strange, W., Silverman, C.R. and Lipscombe, T.C. (1999) On the Run: Unexpected Outcomes of Random Events. The Physics Teacher, 37, 218-225.  
https://doi.org/10.1119/1.880232</mixed-citation></ref><ref id="scirp.92119-ref33"><label>33</label><mixed-citation publication-type="other" xlink:type="simple">Kendall, M.G. and Stuart, A. (1961) The Advanced Theory of Statistics. Vol. 2, Inference and Relationship. Hafner, New York, 474-483.  
https://doi.org/10.2307/3538355</mixed-citation></ref><ref id="scirp.92119-ref34"><label>34</label><mixed-citation publication-type="other" xlink:type="simple">Altman, D.G. (1991) Practical Statistics for Medical Research. Chapman &amp; Hall/CRC, New York, 296-298.</mixed-citation></ref><ref id="scirp.92119-ref35"><label>35</label><mixed-citation publication-type="other" xlink:type="simple">Walpole, R.E. and Myers, R.H. (1978) Probability and Statistics for Engineers and Scientists. 2nd Edition, Macmillan, New York, 492-495.  
https://doi.org/10.2307/2530629</mixed-citation></ref><ref id="scirp.92119-ref36"><label>36</label><mixed-citation publication-type="other" xlink:type="simple">Wald, A. and Wolfowitz, J. (1943) An Exact Test for Randomness in the Non-Parametric Case Based on Serial Correlation. The Annals of Mathematical Statistics, 14, 378-388. https://doi.org/10.1214/aoms/1177731358</mixed-citation></ref><ref id="scirp.92119-ref37"><label>37</label><mixed-citation publication-type="other" xlink:type="simple">Hoel, P.G. (1947) Introduction to Mathematical Statistics. Wiley &amp; Sons, New York, 182-183.</mixed-citation></ref><ref id="scirp.92119-ref38"><label>38</label><mixed-citation publication-type="other" xlink:type="simple">Brown, K. (no date) Eulerian Numbers.  
http://www.mathpages.com/home/kmath012/kmath012.htm</mixed-citation></ref><ref id="scirp.92119-ref39"><label>39</label><mixed-citation publication-type="other" xlink:type="simple">Mann, B. (1994) How Many Times Should You Shuffle a Deck of Cards? UMAP Journal, 15, 303-331. 
http://www.dartmouth.edu/~chance/teaching_aids/Mann.pdf</mixed-citation></ref><ref id="scirp.92119-ref40"><label>40</label><mixed-citation publication-type="other" xlink:type="simple">Knuth, D.E. (1993) Johann Faulhaber and Sums of Powers. Mathematics of Computation, 61, 277-294. https://doi.org/10.1090/S0025-5718-1993-1197512-7</mixed-citation></ref><ref id="scirp.92119-ref41"><label>41</label><mixed-citation publication-type="other" xlink:type="simple">Arfken, G.B. and Weber, H.J. (2005) Mathematical Methods for Physicists. Academic Press, New York, 376-379, 473-474.</mixed-citation></ref><ref id="scirp.92119-ref42"><label>42</label><mixed-citation publication-type="other" xlink:type="simple">Jaynes, E.T. (1957) Information Theory and Statistical Mechanics. The Physical Review, 106, 620-630. https://doi.org/10.1103/PhysRev.106.620</mixed-citation></ref><ref id="scirp.92119-ref43"><label>43</label><mixed-citation publication-type="other" xlink:type="simple">Rozanov, Y.A. (1969) Introductory Probability Theory. Prentice-Hall, Englewood Cliffs, 115-120.</mixed-citation></ref><ref id="scirp.92119-ref44"><label>44</label><mixed-citation publication-type="other" xlink:type="simple">Ball, P. (2000) Shuffling: What’s the Deal? Nature.  
https://doi.org/10.1038/news001005-8 
http://www.nature.com/news/1998/001005/full/news001005-8.html</mixed-citation></ref></ref-list></back></article>