if x != len(Y):
    raise ValueError('variables not same len: ' + str(x) + ', and ' + str(
        len(Y)))
if x < 6:
    raise ValueError('must have at least 6 samples, but have ' + str(x))
How to calculate the statistics "t-test" with numpy