def StandardizedMoment(xs, k):
 var = CentralMoment(xs, 2)
 std = math.sqrt(var)
 return (CentralMoment(xs, k) / (std ** k))

def StandardizedMoment ( xs , k ) : var = CentralMoment ( xs , 2 ) std = math . sqrt ( var ) return ( CentralMoment ( xs , k ) / ( std ** k ) )
computes the kth standardized moment of xs .