# TAILRATIO

## Description

Calculate the empirical distribution's tail ratio. The tail ratio is defined as the ratio between the 95th and 5th percentile of returns. This statistic is useful to assess the relative magnitude of losses to gains. For example, a tail ratio of 0.25 would mean that losses are four times as bad as gains.

## Syntax

The following describes the function signature for use in Microsoft Excel's formula bar.

```excel-formula
=TAILRATIO(x)
```

### Input(s)

| Argument | Description                                 |
| -------- | ------------------------------------------- |
| **x**    | Required. Time series or matrix of returns. |

### Output(s)

Vector of tail ratio estimate(s).

## Example

![](/files/-MLEMdI8FuGd3wDtvDzD)

{% file src="/files/-MLEMhFMH7RCi9SNZIt\_" %}
Example Workbook: RATIOS
{% endfile %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://excelhelp.windhamlabs.com/functions/exposure-to-loss/tailratio.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
