# Percentile

URL: https://www.aureumfrontiers.com/learn/terms/percentile/
Summary: A percentile is the value below which a given share of a sorted set of numbers falls; the 5th percentile has 5% beneath it.

A percentile is the value below which a given share of a sorted set of numbers falls; the 5th percentile has 5% beneath it.

- Beginner
- [Measuring potential losses](https://www.aureumfrontiers.com/learn/topics/value-at-risk/)
- 2 min read

## Key takeaways

- Sort the numbers from lowest to highest; the 5th percentile is the point with 5% of them below it.
- A one-day 95% Value at Risk is the loss at the 5th percentile of daily returns.
- Historical and Monte Carlo VaR read a percentile directly off sorted returns.
- Conventions for the exact cut-off differ slightly, so small samples can give slightly different answers.

In Sentinel

- [Pro and up](https://www.aureumfrontiers.com/pricing/)historical and simulated figures

## How it works

Line up a set of numbers from lowest to highest. A percentile is a point on that line: the pth percentile is the value with p% of the numbers below it.

- The 50th percentile is the median: half below, half above.
- The 5th percentile sits near the bottom: only 5% of the numbers are lower.
- The 95th percentile sits near the top.

For daily returns, the low end holds the losses. The 5th percentile of daily returns is the loss that only about 1 day in 20 goes past. That is exactly what a one-day 95% [Value at Risk](https://www.aureumfrontiers.com/learn/terms/value-at-risk/) describes.

A percentile is also called a quantile, written as a fraction: the 5th percentile is the 0.05 quantile.

## Formula

Sort n returns from worst to best
Position of the pth percentile≈n × p / 100
95% VaR=loss at the 5th percentile of daily returns
99% VaR=loss at the 1st percentile

When n × p / 100 is not a whole number, methods differ: some take the nearest value, others interpolate between neighbours.

## Worked example

Illustrative numbers only. A portfolio has 200 daily returns.

| | Step | Result
| Sort from worst to best | Worst day first
| 5% of 200 | 10
| The 10th worst day | A loss of 2.2%
| One-day 95% historical VaR | About 2.2%
| 1% of 200, the 2nd worst day | A loss of 3.8%, the 99% figure

The 99% figure rests on only two days here, which is why it is much less certain than the 95% one.

## How Sentinel shows it

- Pro and up, historical VaR: the loss at the cut-off of your current holdings' past daily returns.
- Pro and up, Monte Carlo VaR: the loss at the same cut-off across 10,000 simulated days.
- Simulation bands: they hold the middle 50% and 90% of paths, and the 1-in-20 downside is the 5th percentile, the level only 5% of paths finish below.
- Every plan: the bell-curve figure is also a percentile, read off a [Normal distribution (bell curve)](https://www.aureumfrontiers.com/learn/terms/normal-distribution/) rather than sorted data.

## Often confused with

Percentage. A percentage is a share; a percentile is a position in a sorted list. "The 5th percentile is −2.2%" mixes both: the position is 5th, the value is −2.2%.

Average of the tail. The 5th percentile is one value at the edge. The average of everything below it is [Expected shortfall](https://www.aureumfrontiers.com/learn/terms/expected-shortfall/).

Percentile rank. "This day ranks in the 5th percentile" describes where one value sits, not the cut-off itself.

### Limitations

- Far percentiles rest on very few data points. With 100 days, the 1st percentile is a single day.
- Different conventions give slightly different values on small samples.
- A percentile says nothing about values beyond it.

## Questions

### Why is a 95% VaR the 5th percentile and not the 95th?

Returns are sorted from losses to gains. The 95% confidence level means 95% of days are better than the line, so the line sits at the 5th percentile of returns.

### How many days are needed for a reliable 5th percentile?

More is better. With 100 days, the cut-off rests on about 5 days. Sentinel's historical and simulated estimates need about 100 days of data.

## Related terms

- [Value at Risk](https://www.aureumfrontiers.com/learn/terms/value-at-risk/)
- [Parametric, historical and Monte Carlo VaR](https://www.aureumfrontiers.com/learn/terms/var-methods/)
- [Monte Carlo simulation](https://www.aureumfrontiers.com/learn/terms/monte-carlo-simulation/)
- [Normal distribution (bell curve)](https://www.aureumfrontiers.com/learn/terms/normal-distribution/)
- [Confidence level and time horizon](https://www.aureumfrontiers.com/learn/terms/confidence-and-horizon/)
- [Expected shortfall](https://www.aureumfrontiers.com/learn/terms/expected-shortfall/)
- [All of Measuring potential losses](https://www.aureumfrontiers.com/learn/topics/value-at-risk/)

### Sources

- Hyndman, R. J. and Fan, Y. (1996). Sample quantiles in statistical packages. The American Statistician, 50(4), 361 to 365.
- Freedman, D., Pisani, R. and Purves, R. (2007). Statistics, 4th edition. W. W. Norton.
- Jorion, P. (2007). Value at Risk: The New Benchmark for Managing Financial Risk, 3rd edition. McGraw-Hill.

Draft: not yet reviewed against the Sentinel app. Examples are illustrative. General information, not investment advice.

## Check your understanding

3 questions on this page. Nothing is saved.

-

A portfolio has 400 daily returns. Roughly which day marks the 5th percentile?

- The 5th worst
- The 20th worst
- The 40th worst
- The 200th worst

### Show the answer

The 20th worst. 5% of 400 is 20. See Formula.

-

What is the 50th percentile of a set of returns?

- The average
- The median, with half the values below it
- The worst day
- Half the best day

### Show the answer

The median, with half the values below it. The 50th percentile splits the sorted list in two. See How it works.

-

With 100 daily returns, why is the 99% historical VaR less certain than the 95% one?

- It uses a different formula
- It rests on about one day instead of about five
- It ignores the worst day
- It assumes a bell curve

### Show the answer

It rests on about one day instead of about five. The 1st percentile of 100 days is a single observation. See Limitations.

Try again
