HomeTechniques and Tips@RISK DistributionsStatistics for Just Part of a Distribution

3.10. Statistics for Just Part of a Distribution

Applies to: @RISK 5.x–7.x

I want to get the mean and standard deviation for just part of my distribution. If I enter truncation limits in the Define Distribution window or include RiskTruncate( ) in the distribution formula, then the mean and standard deviation of my distribution change and that is not what I want. I want the regular distribution to be simulated, but then after simulation I want to consider only part of it when computing the statistics.
I have applied a filter, but the statistics functions are still computed on the whole distribution. Is there a way to get the mean of the filtered data set using RiskMean?

To use the whole distribution in simulation but then get the statistics of just a portion of it, put a RiskTruncate( ) function inside the RiskMean( ).  A very minimal example is attached.

The other statistics functions can have RiskTruncate( ) applied in the same way.

See also: Cutting Off a Distribution at Left or Right for truncating an input distribution and using only the truncated distribution in simulation.

Last edited: 2015-06-26


This page was: Helpful | Not Helpful