added many convenience methods to make statistic definition involver fewer nested type parameters