Hi, I have a problem finding the proof of 2 formulas:
I'm studying the Wald-Wolfowitz Runs test (often known simply as "run test"), description is on this page:
Wald-Wolfowitz runs test - Wikipedia, the free encyclopedia
The formulas for the mean and the variance of the distribution of the number of runs are given without proof. Where can I find it?