# PORTFOLIORISK

## Description

Portfolio risk is simply a vector product of asset weights and the covariance matrix. Compute portfolio risk conviniently without having to nest complex array formulas in Microsoft Excel.

## Syntax

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

```excel-formula
=PORTFOLIORISK(weights, sigma, rho)
```

### Input(s)

| Argument    | Description                                                                                 |
| ----------- | ------------------------------------------------------------------------------------------- |
| **weights** | Vector of weights                                                                           |
| **sigma**   | Vector of risk estimates (or covariance matrix)                                             |
| **rho**     | Correlation matrix. You do not need to specify **rho** if **sigma** is a covariance matrix. |

### Output(s)

Portfolio risk estimate.

## Example


---

# 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/portfoliorisk.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.
