def compute_balance_mean(self, ts, t):
        """ Compute the balance. The right end - the left end."""
        """ For changed words we expect an increase in the mean, and so only 1 """
        return np.mean(ts[t + 1:]) - np.mean(ts[:t + 1])
Compute the balance. The right end - the left end.