def TestStatistic(self, data):
        heads, tails = data
        test_stat = abs(heads - tails)
        return test_stat
Computes the test statistic.
dataset/ETHPy150Open AllenDowney/CompStats/hypothesis.py/CoinTest.TestStatistic