# Calculating Percentiles

Wikipedia describes a percentile as "the value of a variable below which a certain percent of observations fall". Providers often use it in their billing models, e.g. when determining the used bandwidth. With percentile calculation, you can cut off an x percent of peak values from a certain amount of values.

In PRTG, you can calculate percentiles when creating general Reports (see section Reports) or performing Historic Data reports of a certain sensor (see section Web Interface). Activating the Percentile Results for your reports, the according values will be added to the tables. You can customize the following settings:

• Percentile: Enter the percentile number you want to calculate. If you choose, for example, to calculate the 95th percentile, 5 % of peak values will be discarded.
• Percentile Average: This is the averaging interval in seconds, which is used for percentile calculation. Default value is 300 which is equivalent to 5 minutes.

Percentile Mode: Choose between Discrete and Continuous. Continuous percentile interpolates between discrete values, whereas discrete percentile chooses the next smaller discrete value.

• Discrete percentile means that the value must be a member of the data set. For this kind of calculation you require a discrete distribution. The median of a discrete distribution can not be defined, as such, meaning that the 50th discrete percentile may not necessarily be the median if the value does not belong to an odd number of measurements. Discrete percentiles, as such, should not be used for billing applications.
• Continuous percentile basically means that the measurements are treated as a statistical population and the value is determined by interpolating a value when it isn't present. This means that values are interpolated between actual measurements that are varying around the "perfect" center of the measurements.

More