Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Statistics > Descriptive Statistics >
Mathematica > Mathematics and Algorithms > Statistics > Descriptive Statistics >

TrimmedMean

TrimmedMean[list, f]
gives the mean of the elements in list after dropping a fraction f of the smallest and largest elements.
TrimmedMean[list, {f1, f2}]
gives the mean when a fraction f1 of the smallest elements and a fraction f2 of the largest elements are removed.
TrimmedMean[list]
gives the 5% trimmed mean TrimmedMean[list, 0.05].
  • TrimmedMean gives a robust estimate of the mean by excluding extreme values.
  • TrimmedMean[{{x1, y1, ...}, {x2, y2, ...}, ...}, f] gives {TrimmedMean[{x1, x2, ...}, f], TrimmedMean[{y1, y2, ...}, f], ...}.
Give the trimmed mean after removing extreme values:
Give the trimmed mean after removing the smallest extreme values:
Give the trimmed mean after removing extreme values:
In[1]:=
Click for copyable input
Out[1]=
 
Give the trimmed mean after removing the smallest extreme values:
In[1]:=
Click for copyable input
Out[1]=
TrimmedMean works with any real numeric quantities:
TrimmedMean finds trimmed means of elements in each column:
Obtain results at any precision:
Compute results for a large vector or matrix:
Obtain a robust estimate of location when outliers are present:
Extreme values have a large influence on the Mean:
A 0% TrimmedMean is equivalent to Mean:
TrimmedMean approaches Median as f approaches 1/2:
TrimmedMean requires numeric values:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team