CONTEXT: Was wondering if I play $100$ games, how likely is it that I will have a stretch of $30$ games where I think I'm good because I have a $67\%$ winrate but I actually just have a $50\%$ winrate (and am getting lucky).
I've done calculations to find out the odds of an individual stretch of $30$ coinflips having at least $20$ heads is roughly $5\%$ ($0.04937$).
My initial guess was that you can fit $70$ stretches of $30$ inside of $100$ coinflips, so you could do $1-0.95^{70} = 97\%$. But this is wrong because overlapping stretches of $30$ have linked probabilities (i.e. if coinflips $1$ - $30$ have $30\%$ heads, it is impossible for coinflips $5$-$35$ to have $67\%$ heads).
If anyone is aware of a general formula for this (for this example $N=100$, $n=30$, $x=20$, $p_i=0.5$), that would be great. Thanks.