def TrimmedMeanVar(t, p=0.01):
 t = Trim(t, p)
 (mu, var) = MeanVar(t)
 return (mu, var)

def TrimmedMeanVar ( t , p = 0.01 ) : t = Trim ( t , p ) ( mu , var ) = MeanVar ( t ) return ( mu , var )
computes the trimmed mean and variance of a sequence of numbers .