(self)
return exp_sum_3 - 3 * mu * exp_sum_2 + 2 * mu ** 3
In mathematics, a moment is a specific quantitative measure of the shape of a function.
        where the k-th central moment of a data sample is:
        .. math::

            m_k = \frac{1}{n} \sum_{i = 1}^n (x_i - \bar{x})^k

        the 3rd central moment is often used to calculate the coefficient of skewness
In mathematics, a moment is a specific quantitative measure of the shape of a function.
        where the k-th central moment of a data sample is:
        .. math::
In mathematics a moment is a specific quantitative measure of the shape of a function . where the k - th central moment of a data sample is : .. math ::
def moment_3(self):
        """
        In mathematics, a moment is a specific quantitative measure of the shape of a function.
        where the k-th central moment of a data sample is:
        .. math::

            m_k = \frac{1}{n} \sum_{i = 1}^n (x_i - \bar{x})^k

        the 3rd central moment is often used to calculate the coefficient of skewness
        """
        if self.stat_order < 3:
            raise ValueError("The third order of expectation sum has not been statistic.")
        exp_sum_2 = self.sum_square / self.count
        exp_sum_3 = getattr(self, "exp_sum_3")
        mu = self.mean
        return exp_sum_3 - 3 * mu * exp_sum_2 + 2 * mu ** 3
def moment_3 ( self ) : if self . stat_order < 3 : raise ValueError ( "The third order of expectation sum has not been statistic." ) exp_sum_2 = self . sum_square / self . count exp_sum_3 = getattr ( self , "exp_sum_3" ) mu = self . mean return exp_sum_3 - 3 * mu * exp_sum_2 + 2 * mu ** 3