Notebook
Note [Aman Ahuja] So far this demonstrates the need for windows, but still has a dependency on hyperparameters. - How would we know what to pick for the Z-score threshold? - We also now have a new hyper parameter, the window size. This discussion leads to the Page Hinkley Stopping Rule The likelihood ratio, or the ratio of the gaussian probability densities, can be used to detect the time at which the change occurred, if the magnitude of the jump (magnitude of the change in mean) is known a priori. Else the maximum likelihood estimate of the point (time) of change can be used, requiring some threshold value lambda for the size of the change in mean. This leads to the Page-Hinkley stopping rule (E.S. Page, 1954) and the cumulative sum algorithm (CUSUM) There is a recursive method to compute the stopping rule.