Sample Statistics computes the standard deviation, mean (average), median, skewness and kurtosis of the input sample X containing n observations. median = middle value the values in Sample X. mean (X) = sum( X(i) )/n. Standard Deviation (X) = sqrt ( sum( (X[i] - mean (X)^2 )/(n-1) ). Skewness = sum( sum( (X[i] - mean (X)^3 )/(n*std dev^3). Kurtosis = sum( sum( (X[i] - mean (X)^4 )/(n*std dev^4).


icon

Inputs/Outputs

  • c1ddbl.png sample X

  • idbl.png median

    (DBL) - center value of points in sample X. If the number of points in sample X is even, the median is the average of the center pair of points.

  • idbl.png mean

    (DBL) - sample mean.

  • idbl.png sample std dev

    (DBL) - sample standard deviation computed as sqrt ((X[i] - X-bar)^2)/(n-1)) where n is the number of points in X.

  • idbl.png skewness

    (DBL) - degree of assymmetry of the sample X distribution around it's mean. A normal distribution has a skewness of 0. Skewness is computed as sum((X[i] - X-bar)^3)/(n*sample std. dev^3) where n is the number of points in X.

  • idbl.png kurtosis

    (DBL) - relative peakedness or flatness of the sample X distribution. A normal distribution has a kurtosis of 3. Kurtosis is computed as sum((X[i] - X-bar)^4)/(n*sample std. dev^4) where n is the number of points in X.