Given independent random variables $Y_1, \ldots, Y_n$ with $Y_i \in \{0,1\}$ we test the hypothesis whether the underlying success probabilities $p_i$ are constant or whether they are periodic with an unspecified period length of $r \ge 2$. The test relies on an auxiliary integer $d$ which can be chosen arbitrarily, using which a new time series of length $d$ is constructed. For this new time series, the test statistic is derived according to the classical $g$ test by Fisher. Under the null hypothesis of a constant success probability it is shown that the test keeps the level asymptotically, while it has power for most alternatives, i.e. typically in the case of $r \ge 3$ and where $r$ and $d$ have common divisors.
翻译:暂无翻译