A curiosity journal of math, physics, programming, astronomy, and more.

Probability of doubled digits

The other day at work I noticed roughly half the tickets assigned to me had repeated consecutive digits, such as the sevens in 47735. The probability of a five-digit number having repeated digits is easy to work out: it's the cumulative odds that any digit matches the previous digit. Given digits ABCDE,

StartLayout 1st Row 1st Column upper P left-parenthesis upper B equals upper A right-parenthesis 2nd Column equals one tenth 2nd Row 1st Column upper P left-parenthesis upper C equals upper B right-parenthesis 2nd Column equals one tenth 3rd Row 1st Column upper P left-parenthesis upper D equals upper C right-parenthesis 2nd Column equals one tenth 4th Row 1st Column upper P left-parenthesis upper E equals upper D right-parenthesis 2nd Column equals one tenth 5th Row 1st Column upper P left-parenthesis doubled digit right-parenthesis 2nd Column equals upper P left-parenthesis upper B equals upper A right-parenthesis plus upper P left-parenthesis upper C equals upper B right-parenthesis plus upper P left-parenthesis upper D equals upper C right-parenthesis plus upper P left-parenthesis upper E equals upper D right-parenthesis 6th Row 1st Column Blank 2nd Column equals four tenths EndLayout

This is close enough for an estimate, but the sample is not entirely uniform. Assigned tickets are more likely to have been created recently, and at the time the newest tickets were in the 47,700s, all of which have a doubled digit. Only one of my tickets was a 47,700, but it improved the likelihood that half my tickets would share the pattern.