> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Curvature risk position up/down

The **Curvature Risk Position
[Up](../../../../../../../cube/csr-sec-ctp-curvature-risk-position-up)/[Down](../../../../../../../cube/csr-sec-ctp-curvature-risk-position-down)**
measures are $K_b^\pm$ in [MAR21.5](https://www.bis.org/basel_framework/chapter/MAR/21.htm?inforce=20230101\&published=20200327#paragraph_MAR_21_20230101_21_5)(3).

Within each **Bucket** (except the "other" bucket), the **Curvature CVR Up/Down** values are
combined using the formula in [MAR21.5](https://www.bis.org/basel_framework/chapter/MAR/21.htm?inforce=20230101\&published=20200327#paragraph_MAR_21_20230101_21_5)(3).

For the "other" bucket, the **Curvature Risk Position Up/Down** is
calculated as the sum of the positive **CVR Up/Down** values.

**Implementation Note:** This calculation has been optimized so that it
is performed with $O(N)$ (linear) time complexity, where $N$ is the
number of **Risk Factors**.
