I've gotten up to the point where I have the number of expected flips needed to get the string TH, but it is after that I am running into trouble.
Expected Value to get String 'T':
E(T) = E(T|T on the first toss)*P(T on the first toss) + E(T|H on the first toss)*P(H on the first toss)
E(T) = 1*1/2 + (E(T))*1/2 E(T) = 2
Expected Value to get String 'TH', given T on first toss:
E(TH) = E(TH|H on the second toss)*P(H on the second toss) + E(TH|T on the second toss)*P(T on the second toss)
E(TH) = 1*1/2 + ((E(TH)) + 1)*1/2 E(TH) = 2
Expected Value to get String 'THT', given T on first toss, H on second toss:
E(THT) = E(THT|T on third toss)*P(T on third toss) + E(THT|H on third toss)*P(H on third toss)
Here is where I have trouble.
I know this much:
E(THT) = 1*1/2 + E(THT|H on third toss) * 1/2
But I initially thought that E(THT|H on third toss) would be 3 + E(T) + E(TH) + E(THT), however this leads me to a total summed up expected value of 12, which I know is wrong.
What am I doing wrong?
EDIT: E(TH) represents the expected number of tosses needed to get TH starting at the beginning.
I have tried editing and that doesn't seem to work and I can't comment, but E(TH) represents the expected value to get the string TH when starting at the beginning.
EDIT: I apologize I messed up my explanation of my notation. E(T)represents the number of expected tosses to get to The from the beginning. E(TH) represents the number of tosses to get to TH from T. Then E(THT) represents the number of tosses to get from TH to THT