(X, n, c=0, condition=None, **kwargs)
return expectation((X - c)**n, condition, **kwargs)
Return the nth moment of a random expression about c i.e. E((X-c)**n)
    Default value of c is 0.

    Examples
    ========

    >>> from sympy.stats import Die, moment, E
    >>> X = Die('X', 6)
    >>> moment(X, 1, 6)
    -5/2
    >>> moment(X, 2)
    91/6
    >>> moment(X, 1) == E(X)
    True
Return the nth moment of a random expression about c i.e. E((X-c)**n)
    Default value of c is 0.
Return the nth moment of a random expression about c i . e . E (( X - c ) ** n ) Default value of c is 0 .
def moment(X, n, c=0, condition=None, **kwargs):
    """
    Return the nth moment of a random expression about c i.e. E((X-c)**n)
    Default value of c is 0.

    Examples
    ========

    >>> from sympy.stats import Die, moment, E
    >>> X = Die('X', 6)
    >>> moment(X, 1, 6)
    -5/2
    >>> moment(X, 2)
    91/6
    >>> moment(X, 1) == E(X)
    True
    """
    return expectation((X - c)**n, condition, **kwargs)
def moment ( X , n , c = 0 , condition = None , * * kwargs ) : return expectation ( ( X - c ) ** n , condition , * * kwargs )