Hey all!
I want to set a daily challenge to my users based on their trimmed mean for a specific period of time
I’m looking for a way to trim the lowest and highest values by x% from each side, before calculating the mean, based on the past two weeks
Context:
- Each user earn daily points
- the daily challenge should should be their daily average score from the past two weeks
- the mean should be trimmed in the edges, so very low/high days won’t affect the mean
Why not using the median?
It’s an option, but there is one issue: the median takes the middle value of the series which doesn’t represent properly the right Challenge Value (because the middle value for every period of time can change drastically compared to a trimmed mean)
Hope that makes sense
Would love to hear how should I approach this
Thanks!