Whenever you're ready, walk me through how you'd approach this.
A fair coin is tossed repeatedly until a specific sequence appears. How would you identify the underlying probability distribution, and what are its expectation and variance?
Because the target sequence is unspecified, describe a general method that accounts for overlapping partial matches. Demonstrate the method using the illustrative sequence HTH, including its probability distribution representation, expectation, and variance.