Testing for changes in the mean or variance of a stochastic process under weak invariance · Study