chaospy.Skew

chaospy.Skew(poly, dist=None, **kws)[source]

The third order statistical moment Kurtosis.

Element by element 3rd order statistics of a distribution or polynomial.

Args:
poly (numpoly.ndpoly, Distribution):

Input to take skewness on.

dist (Distribution):

Defines the space the skewness is taken on. It is ignored if poly is a distribution.

Returns:
(numpy.ndarray):

Element for element variance along poly, where skewness.shape == poly.shape.

Examples:
>>> dist = chaospy.J(chaospy.Gamma(1, 1), chaospy.Normal(0, 2))
>>> chaospy.Skew(dist)
array([2., 0.])
>>> q0, q1 = chaospy.variable(2)
>>> poly = chaospy.polynomial([1, q0, q1, 10*q0*q1-1])
>>> chaospy.Skew(poly, dist)
array([nan,  2.,  0.,  0.])
>>> chaospy.Skew(2., dist)
array(nan)