Figure 2:

CUSUMSQ test