Estimating cheating from play results:
When experiencing a long and severe losing streak, the natural tendency is to think you may have been cheated. But we know that the vast majority of losing streaks, perhaps essentially all of them, are simply due to natural variance. However, if there is any small nonzero possibility of cheating it is useful to consider quantitatively whether a given losing streak may be so bad as to indicate a high likelyhood of being cheated.
I consider the special case of playing heads up against a video blackjack machine, in which there is some probability the machine is cheating � call that P[gaffed]. Or equivalently think of many players playing a large number of such machines in which P[gaffed] portion of the machines are gaffed. Define CDF as the cumulative distribution function. After a given number of rounds of play, n, and having lost a given number of units R, the CDF of the good machines gives the probability of a result as bad as minus R or worse on the good machines call that CDF[good], and the CDF of the gaffed machines gives the probability of a result that bad or worse if played on a gaffed machine call that CDF[gaffed]. Then the probability that you are playing on a gaffed machine, if your results are minus R or worse, is given by P[gaffed]*CDF[gaffed]/CDF[good], call this Pbad. If we assume a standard deviation per round typical of blackjack = 1.14 units, and assume Normally distributed results, then we need only one other parameter in order to calculate Pbad � the severity of cheating, or EV per hand that the gaffed machines produce relative to the good machines (assuming perfect play) call this EVcheat. Consider that you do not know which machines are gaffed, so that when you first sit down at a machine, before playing, the probability that you are at a gaffed machine is given by Pbad=P[gaffed] where P[gaffed] is a constant giving the portion of machines that actually are gaffed. Then as you play, the probability that your machine is gaffed (Pbad) changes relative to your actual results of play while the total portion of machines that are gaffed remains constant (P[gaffed]). To see intuitively that this is the case, consider the extreme example where EVcheat is 100% -- the gaffed machines are rigged to win every singly bet. Then if you lose a large number of rounds from the start of play the probability that you happened to chose a gaffed machine increases toward 1, no matter how few of the machines actually are gaffed. It is never absolutely certain that you are at a gaffed machine, but is increasingly likely as you lose more and more rounds in sequence.
Now consider some more realistic examples.
First, consider that 1% of machines are gaffed and EVcheat is 10% worse than the EV of perfect play on a good machine, and after 1,000 rounds of play:
A loss of 45 units worse than EV for a good machine means you have a 10% probability of being on a gaffed machine, or 10 times more likely than having randomly chosen one from the start. A 45 unit under EV loss, or worse, occurs for 9.1% of players after 1,000 rounds on a good machine.
A loss of 84 units worse than EV for a good machine means you have a 50% probability of being on a gaffed machine, or 50 times more likely than having randomly chosen one from the start. A 84 unit under EV loss, or worse, occurs for 0.64% of players after 1,000 rounds on a good machine.
Second, consider that 0.1% of machines are gaffed and EVcheat is 10% worse than the EV of perfect play on a good machine, and after 1,000 rounds of play:
A loss of 45 units worse than EV for a good machine means you have a 1% probability of being on a gaffed machine, or 10 times more likely than having randomly chosen one from the start. A 45 unit under EV loss, or worse, occurs for 9.1% of players after 1,000 rounds on a good machine.
A loss of 84 units worse than EV for a good machine means you have a 10% probability of being on a gaffed machine, or 100 times more likely than having randomly chosen one from the start. A 84 unit under EV loss, or worse, occurs for 0.64% of players after 1,000 rounds on a good machine.
A loss of 116 units worse than EV for a good machine means you have a 50% probability of being on a gaffed machine, or 500 times more likely than having randomly chosen one from the start. A 116 unit under EV loss, or worse, occurs for 0.03% of players after 1,000 rounds on a good machine.
Third, consider that 0.1% of machines are gaffed and EVcheat is only 1% worse than the EV of perfect play on a good machine, and after 1,000 rounds of play:
A loss of 264 units worse than EV for a good machine means you have a 1% probability of being on a gaffed machine, or 10 times more likely than having randomly chosen one from the start. A 264 unit under EV loss, or worse, occurs extremely infrequently -- for 2.6E-13% of players (less than one in 100 trillion players) after 1,000 rounds on a good machine.
How should one use such an analysis? Clearly, if one�s results on a given machine indicate that the probability of being on a gaffed machine is significantly greater than the probability of choosing a gaffed machine at random, then it is worth the time and effort to move to another machine. Is that likely to occur in practice? That depends entirely on what P[gaffed] and EVcheat are � what the true frequency of gaffed machines is and how badly they cheat. And of course we don�t know what P[gaffed] and EVcheat are in reality. My sense, from talking with experienced APs, is that they tend to think that P[gaffed] is probably very small, vanishingly small, for state-regulated casinos, but perhaps not entirely negligible at tribal casinos. I would not be surprised if the actual frequencies were as high as somewhere between case 2 and case 3 in my examples (if some all-knowing casino god could tell us what they are), but if I had to guess I would probably guess like case three or better. Therefore these considerations probably seldom can be put in practice. On the other hand, because we really have no clue as to what the true P[gaffed] and EVcheat are � if I have an extremely long and bad losing streak on a machine and especially if there are other factors, such as it is a struggling tribal casino that had recently made changes to its machines, I just may change machines.
Note that (a posteriori) play results themselves cannot be used conversely, to estimate (a priori) P[gaffed] or EVcheat, no matter how bad the results. I think that is what MathProf meant when he complained about my lazy post where I got Covenut43 to calculate probable results for me.

