So, I got a repeated experiment with two outcomes, i.e. a coin toss, but the probabilities might change every toss and are independent. Typically, they might come in sequences of the same probabilities and then change at some point.
So, what I want to do now is to apply a hypothesis test to find out if the results of, say, 1000 tosses align with the expected outcome. I.e. the null hypothesis would be that the coin has the probabilities $p_{1} = 0.5, p_2 = 0.6, p_3 = 0.4, ... , p_{1000} = 0.1$ for heads, with a significance level of 1%. And the alternative hypothesis that it is different.
This is trivial of course if the probability always stays the same but I really need some help here.