The key is to specify a subgroup size so that significant shifts are detected with high probability and that insignificant shifts are unlikely to produce a signal.
The subgroup size formula and application are discussed in the conclusion of this two-part topic.