# TURBULENTRISK

## Description

Using the Mahalanobis distance, this risk model characterizes the degree of unusualness in a cross section of asset returns and partitions the historical data into periods of financial turbulence and quiecense. These periods are usually marked by large asset movements (volatility) and/or unusual changes in correlations (e.g. when non-correlated assets become correlated) and considered statistical outliers.

The risk model is useful for stress testing and constructing resilient portfolios.

{% hint style="info" %}
This risk model is also available in the Windham Portfolio Advisor. For a deeper dive into the model, please see <https://wpahelp.windhamlabs.com/expected-risk/quiet-and-turbulent-risk>
{% endhint %}

## Syntax

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

```excel-formula
=TURBULENTRISK(type, assetReturns, threshold, dataPeriodicity)
```

### Input(s)

| Argument            | Description                                                                                                                                                                                                                                                                                                                                                                                                       |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **type**            | <p>Required. Enumeration string to specify calculation type:<br>   "risk", "sigma", or "stdev"<br>   "correlation", "corr", or "rho", <br>   "covariance", "covar", or "cov"</p>                                                                                                                                                                                                                                  |
| **assetReturns**    | Required. Time series or matrix of asset returns.                                                                                                                                                                                                                                                                                                                                                                 |
| **threshold**       | Required. Probability threshold of turbulent periods (0.00 - 1.00). This threshold is the converted into the equivalent chi-squared,$$\chi\_{N}^2$$, score. Under a multivariate normal assumption, the cutoff can be interpreted as an approximation of the percentage of the sub-sample of outliers (turbulent). This approximation may vary depending on the underlying characteristics of the empirical data. |
| **dataPeriodicity** | <p>Optional. Periodicity of the data, used for annualization. If you do not enter the argument, it defaults to 1. <br><em>e.g. Daily = 255, Monthly = 12,  Yearly = 1, Quarterly = 4.</em></p>                                                                                                                                                                                                                    |

### Output(s)

Depending on the specified output *type*, the function will return the respective vector of risk estimates (annualized standard deviations), correlation matrix, or a covariance matrix.

## Example

![](/files/-ML9nbPdbg6SDVajlh8J)

{% file src="/files/-ML9nw7N3O1nehODTWjB" %}
Example Workbook: TURBULENTRISK
{% endfile %}

The following video describes the conceptual application of this methodology.

{% embed url="<https://windhamcapital.wistia.com/medias/ti6fqxaqxf>" %}
Windham's Risk Model
{% endembed %}


---

# 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/risk-models/turbulentrisk.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.
