It ain't about googling, it's about sharing and discussing; I'm sure that's why tuanl posts his problems here.
Use indicator variables: For each of the first
n−1 tosses, out of
n, let
X1=1 if that toss and the next are TH, 0 otherwise. Then the expected number of TH's is equal to
E(X1+⋯+Xn−1)=(n−1)E(X1)=(n−1)P(X1=1)=4n−1. The same argument shows that the number of TT's is expected to be the same. So it's the variance that will decide.
Now for the variance. \(Var(X_1+\cdots+X_{n-1})=E((X_1+\cdots+X_{n-1})^2)-\large(\frac{n-1}{4}\right)^2\).
E((X1+⋯+Xn−1)2)=(n−1)E(X12)+2∑i<jE(XiXj). Clearly
(n−1)E(X12) will be the same in both the TT and the TH cases. We need to see how the
∑E(XiXj) part differs.
1) TH case. When
j−1=1,
XiXj clearly must equal 0. In all other cases, disjoint pairs of tosses are involved and these are independent, so
E(XiXj)=P(XiXj=1)=P(Xi=1,Xj=1)=P(Xi=1)P(Xj=1)=41⋅41=161.
2) TT case. This is clearly larger as the disjoint pairs of tosses give the same
E(XiXj) as in the TT case, and the overlapping pairs give a positive
E(XiXj), whereas in the TH case these are 0.
So it's better to pick TH.