# Expected number of draws without replacement before drawing the same card twice in a row

I recently came across the question of how many cards we expect to draw before drawing an ace. I found a nice solution with indicator variables, and it seemed natural to me to ask this question next:

Suppose we draw cards one by one from a standard deck without replacement. How many cards do we expect to draw before our first consecutive pair, e.g. two 7s in a row?

My previous method doesn't work for this question, and I haven't found it tackled anywhere. What are some different proofs for it? I would like as many as possible! Is the problem even tractable, or is the solution always going to be ugly (and if so, why?).

And, if anyone is able to answer a slightly broader question: where might I find a resource that has many of these kinds of problems (with dice, cards and such) and maybe general methods for solving them? I am awful at probabilities but would like to get really good at this.

This is my first post, so please let me know if I have made any fatal errors (I have really tried not to!) I apologise if anything is too general, and I'm really grateful for any comments :)

• might be nice if you added the combinatorics tag it may help with views and people in the know. – user451844 Sep 29 '17 at 16:17
• Thank you for the tip! :) – TheOppositeOfEuler Sep 29 '17 at 16:25
• there are a lot of orders without a pair on consecutive pulls as well though. more than 12^8*(11!)^4 at last check. – user451844 Sep 29 '17 at 16:44
• If you have no replacement, surely drawing the same card twice is impossible? – Joffan Sep 29 '17 at 18:38
• What is the value of the variable in the case where you go through the whole deck without getting a consecutive pair? – bof Sep 30 '17 at 9:43

On the first draw you have, of course, no chance for a match. On each subsequent draw, the probability of matching the previous card is $\frac1{17}.$ Treating these matches as independent events (which of course they are not) we get the crude approximation: $$1+17\left[1-\left(\frac{16}{17}\right)^{51}\right]\approx17.2$$ Namely, let $X$ be the number of cards drawn, and let $X_k$ be the indicator variable whose value is $1$ if at least $k$ cards are drawn, $0$ otherwise. Then $X=\sum_{k=1}^{52}X_k,$ so $$E(X)=\sum_{k=1}^{52}E(X_i)=\sum_{k=1}^{52}P(X_k=1).$$ Now $P(X_1=1)=P(X_2=1)=1,\ P(X_3=1)=1-\frac3{51}=\frac{16}{17},\ P(X_4=1)\approx\left(\frac{16}{17}\right)^2,$ and $P(X_k=1)\approx\left(\frac{16}{17}\right)^{k-2}$ for $k\ge2,$ so $$E(X)\approx1+\sum_{j=0}^{50}\left(\frac{16}{17}\right)^j=1+\frac{1-\left(\frac{16}{17}\right)^{51}}{1-\frac{16}{17}}=1+17\left[1-\left(\frac{16}{17}\right)^{51}\right].$$