code: def compute_balance_mean(self, ts, t):
          
          """ 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])
docs: Compute the balance. The right end - the left end.