# Descriptive Statistics

Range, central tendency, standard deviation, variance, correlation

Descriptive statistics quantitatively describe features of a sample of data, such as the basic mean or standard deviation. Cumulative methods report a statistic as you move through the elements of an array. Moving methods report a statistic within a local window of array elements, then move to the next window.

## Functions

expand all

 `min` Minimum elements of array `mink` Find `k` smallest elements of array `max` Maximum elements of array `maxk` Find `k` largest elements of array `bounds` Minimum and maximum values of an array `topkrows` Top rows in sorted order `mean` Average or mean value of array `median` Median value of array `mode` Most frequent values in array `std` Standard deviation `var` Variance `rms` Root-mean-square value
 `prctile` Percentiles of data set `quantile` Quantiles of data set `iqr` Interquartile range of data set
 `rmse` Root-mean-square error between arrays (Since R2022b) `mape` Mean absolute percentage error between arrays (Since R2022b)
 `cov` Covariance `corrcoef` Correlation coefficients `xcov` Cross-covariance `xcorr` Cross-correlation
 `cummax` Cumulative maximum `cummin` Cumulative minimum
 `movmin` Moving minimum `movmax` Moving maximum `movmean` Moving mean `movmedian` Moving median `movmad` Moving median absolute deviation `movstd` Moving standard deviation `movvar` Moving variance `movsum` Moving sum `movprod` Moving product
 `kde` Kernel density estimate for univariate data (Since R2023b)