Skip to content

Main content

Portfolio Variance One Covariance Term Tool

One diagonal or paired off-diagonal portfolio covariance contribution; caller identifies whether the term is diagonal.

Loading tool…

Description

Multiply both weights by covariance, with factor one for sameAsset and two otherwise.

Risk and sensitivity terms depend on return units, horizon and model structure. A covariance contribution or local price approximation describes only part of a portfolio or instrument's risk and does not establish a safe investment.

Multiply both weights by covariance, with factor one for sameAsset and two otherwise.

When to use this tool

Use Portfolio Variance One Covariance Term when you need one explicit risk or sensitivity term.

How to use the tool and how it works

  1. Enter firstWeight, secondWeight, covariance, sameAsset. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read varianceContribution. Use the output convention below.

Multiply both weights by covariance, with factor one for sameAsset and two otherwise.1

Input fieldMeaning and unitsAccepted input
firstWeightFirst WeightRequired. Finite number.
secondWeightSecond WeightRequired. Finite number.
covarianceCovarianceRequired. Finite number.
sameAssetTrue uses one diagonal contribution; false combines the two symmetric covariance terms.Required. Boolean.
Output fieldInterpretationReturned shape
varianceContributionVariance ContributionRequired. Finite number.
json
{
  "input": {
    "firstWeight": 0.4,
    "secondWeight": 0.6,
    "covariance": 0.01,
    "sameAsset": false
  },
  "output": {
    "varianceContribution": 0.0048
  }
}

Limitations and assumptions

  • This is one diagonal term or combined symmetric off-diagonal pair, not full portfolio variance. Covariance must use compatible return units and period; flags and matrix validity are not verified.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Use the complete portfolio or instrument model, including covariance consistency, nonlinear effects and scenario analysis. Verify scaling and estimation assumptions before interpreting a partial term as total risk.

References

  1. Calculation and input contract: financial-economics/portfolio-variance-one-covariance-term — tool.io

Similar or alternative tools