Flip a coin three times. Assume the probability of tails is $p$ and that successive flips are independent. Let $A$ be the event that we have exactly one tails among the first two coin flips and $B$ the event that we have exactly one tails among the last two coin flips. For which values of $p$ are events $A$ and $B$ independent?
I know that $P(AB)=(1/4)=(1/2)*(1/2)=P(A)P(B)$ when $p=(1/2)$ for heads and tails. Does changing the value of $p$ make a set of unequally likely outcomes, leading to the fact you can't just count the number of events?