![]() |
Calculating statistics on a portion of a distribution
I am interested in calculating basic stats (mean, median, std dev) on the
middle 80% of a distribution, to eliminate the extreme lows and highs. I have been doing this manually by counting the number of samples and removing the bottom 10% and top 10% of the distribution, and then using the average, median, and stdeva functions on the middle 80%. Is there an automated way to do this in Excel? |
Calculating statistics on a portion of a distribution
See Help for the TRIMMEAN worksheet function. For other statistics, you
could probably construct an array formula using the SMALL or LARGE function to return the middle portion of the sample. Jerry "DDH" wrote: I am interested in calculating basic stats (mean, median, std dev) on the middle 80% of a distribution, to eliminate the extreme lows and highs. I have been doing this manually by counting the number of samples and removing the bottom 10% and top 10% of the distribution, and then using the average, median, and stdeva functions on the middle 80%. Is there an automated way to do this in Excel? |
Calculating statistics on a portion of a distribution
Hi,
I do this by creating a helper column to eliminate the reqyired percentage of high and low values. If your data is in A1:A20, then in b1, enter =IF(OR(PERCENTRANK($A$1:$A$20,A1)<0.1,PERCENTRANK( $A$1:$A$20,A1)0.9),"",A1) and drag down. This will eliminate the upper and lower 10% of the data. Change the 0.1 and 0.9 in the formula to suit your own cut off points. Then you can use =MEAN, =MEDIAN and =STDEV on column B, as th blanl cells will be ignored. Dave "DDH" wrote: I am interested in calculating basic stats (mean, median, std dev) on the middle 80% of a distribution, to eliminate the extreme lows and highs. I have been doing this manually by counting the number of samples and removing the bottom 10% and top 10% of the distribution, and then using the average, median, and stdeva functions on the middle 80%. Is there an automated way to do this in Excel? |
Calculating statistics on a portion of a distribution
Dave - this works perfectly. Thank you! DDH
"Dave Curtis" wrote: Hi, I do this by creating a helper column to eliminate the reqyired percentage of high and low values. If your data is in A1:A20, then in b1, enter =IF(OR(PERCENTRANK($A$1:$A$20,A1)<0.1,PERCENTRANK( $A$1:$A$20,A1)0.9),"",A1) and drag down. This will eliminate the upper and lower 10% of the data. Change the 0.1 and 0.9 in the formula to suit your own cut off points. Then you can use =MEAN, =MEDIAN and =STDEV on column B, as th blanl cells will be ignored. Dave "DDH" wrote: I am interested in calculating basic stats (mean, median, std dev) on the middle 80% of a distribution, to eliminate the extreme lows and highs. I have been doing this manually by counting the number of samples and removing the bottom 10% and top 10% of the distribution, and then using the average, median, and stdeva functions on the middle 80%. Is there an automated way to do this in Excel? |
All times are GMT +1. The time now is 03:12 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com