Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Trimmed average or trimmed mean

GraceK_dup_114
7 - Meteor

I everyone, 

I would like to know how I can calculate a trimmed average (or trimmed mean) on Alteryx. 
A trimmed average is an average of numbers without taking in account the extremely high or extremely low values. 

BR,

 

Grace

2 REPLIES 2
wdavis
Alteryx Alumni (Retired)

Hi @GraceK_dup_114 

 

As far as I'm aware, there isn't one specific tool that can be used to achieve this. However, using a combination of tools we certainly would be able to do so.

 

When you are currently using the Trimmed Average, how are you determining which values are extremely high/low? Is there a specific formula in place to determine this? Or is it removing X% of the largest and smallest values?

 

Kind Regards

Will

danilang
19 - Altair
19 - Altair

Hi @GraceK_dup_114 

 

Like @wdavis mentioned, it depends on how you determine outliers 

 

Here's one way you could go about it

 

w.png

 

I start by calculating the average and stdev of the input data.  The formula tool sets an upper and lower bound of AVG +/- 4 stdevs.  These bounds are appended to the input data and the filter removes any values that fall outside the limits.  Find the average of what remains.

 

No matter how you calculate the bounds of what is "valid" data, you can use a similar technique to trim the outliers

 

Dan

Labels