def TestStatistic(self, data):
        observed = data
        n = sum(observed)
        expected = np.ones(6) * n / 6
        test_stat = sum(abs(observed - expected))
        return test_stat
Computes the test statistic.
dataset/ETHPy150Open AllenDowney/CompStats/hypothesis.py/DiceTest.TestStatistic