Scenario risk
Weigh a deal's scenarios by how likely you think each is, and see the expected return, its spread and which of two options pays better for the risk.
Value-add building expects 9.00% against 7.80%, but Stabilized building carries less risk per unit of return.
Value-add building expects 9.00% against 7.80%, but Stabilized building carries less risk per unit of return.
Higher expected return
9.00%
Value-add building · Stabilized building 7.80%
- Lower risk per unit of return
- Stabilized building
- coefficient of variation 0.21 against 0.83
- Dominates
- Neither
- as high a return, no more spread
- Standard deviation, Stabilized building
- 1.60%
- range 5.00% to 10.00%
- Standard deviation, Value-add building
- 7.47%
- range -6.00% to 18.00%
- Drawn from
- The worked example
- Runs
- In your browser
- For your agent
calc_runwith idscenario-risk
Inputs
Worked example. Type over any value on a dashed line.
Your own scenarios and odds: the probabilities sum to 100%. Returns are a year's, and may be negative.
Your own scenarios and odds: the probabilities sum to 100%. Returns are a year's, and may be negative.
A return you set yourself, such as the least you would accept. Leave it blank to skip.
the chance of a return below it
The two options, side by side.
The standard deviation band describes spread, not odds
| Measure | Stabilized building | Value-add building |
|---|---|---|
| Expected return | 7.80% | 9.00% |
| Standard deviation | 1.60% | 7.47% |
| Variance (decimal²) | 0.000256 | 0.005580 |
| Coefficient of variation | 0.2051 | 0.8300 |
| Lowest return | 5.00% | -6.00% |
| Highest return | 10.00% | 18.00% |
| Expected less one standard deviation | 6.20% | 1.53% |
| Expected plus one standard deviation | 9.40% | 16.47% |
| Chance below 7.00% | 20.00% | 40.00% |
| Scenarios | 3 | 4 |
Each scenario, weighted.
Stabilized building: 3 scenarios · Value-add building: 4 scenarios
Stabilized building
the last row sums the weighted columns
| Scenario | Probability | Return | Weighted return | Deviation | Weighted sq. deviation | Below 7.00% |
|---|---|---|---|---|---|---|
| Downside | 20.00% | 5.00% | 1.0000% | -2.80% | 0.000157 | yes |
| Base case | 60.00% | 8.00% | 4.8000% | 0.20% | 0.000002 | no |
| Upside | 20.00% | 10.00% | 2.0000% | 2.20% | 0.000097 | no |
| All scenarios | 100.00% | 7.8000% | 0.000256 | 20.00% |
Value-add building
the last row sums the weighted columns
| Scenario | Probability | Return | Weighted return | Deviation | Weighted sq. deviation | Below 7.00% |
|---|---|---|---|---|---|---|
| Lease-up fails | 15.00% | -6.00% | -0.9000% | -15.00% | 0.003375 | yes |
| Slow lease-up | 25.00% | 6.00% | 1.5000% | -3.00% | 0.000225 | yes |
| Plan | 40.00% | 12.00% | 4.8000% | 3.00% | 0.000360 | no |
| Strong lease-up | 20.00% | 18.00% | 3.6000% | 9.00% | 0.001620 | no |
| All scenarios | 100.00% | 9.0000% | 0.005580 | 40.00% |
Every formula it ran, in order.
Population variance; weights as given
- 1Stabilized building: probabilities0.2 + 0.6 + 0.2100%
- 2Stabilized building: expected returnsum of probability × return: 0.2 × 5.00% + 0.6 × 8.00% + 0.2 × 10.00%7.80%
- 3Stabilized building: variancesum of probability × (return − 7.80%)², in decimals: 0.2 × (-0.0280)² + 0.6 × (0.0020)² + 0.2 × (0.0220)²0.000256
- 4Stabilized building: standard deviation√0.0002561.60%
- 5Stabilized building: coefficient of variation1.60% ÷ 7.80%0.2051
- 6Stabilized building: rangelowest to highest return of the 3 scenarios5.00% to 10.00%
- 7Stabilized building: one-sigma band7.80% − 1.60% to 7.80% + 1.60%6.20% to 9.40%
- 8Stabilized building: chance below 7.00%sum of the probabilities of returns under 7.00%: 0.220.00%
- 9Value-add building: probabilities0.15 + 0.25 + 0.4 + 0.2100%
- 10Value-add building: expected returnsum of probability × return: 0.15 × -6.00% + 0.25 × 6.00% + 0.4 × 12.00% + 0.2 × 18.00%9.00%
- 11Value-add building: variancesum of probability × (return − 9.00%)², in decimals: 0.15 × (-0.1500)² + 0.25 × (-0.0300)² + 0.4 × (0.0300)² + 0.2 × (0.0900)²0.005580
- 12Value-add building: standard deviation√0.0055807.47%
- 13Value-add building: coefficient of variation7.47% ÷ 9.00%0.8300
- 14Value-add building: rangelowest to highest return of the 4 scenarios-6.00% to 18.00%
- 15Value-add building: one-sigma band9.00% − 7.47% to 9.00% + 7.47%1.53% to 16.47%
- 16Value-add building: chance below 7.00%sum of the probabilities of returns under 7.00%: 0.15 + 0.2540.00%
- 17Higher expected returnStabilized building 7.80% against Value-add building 9.00%Value-add building
- 18Lower risk per unit of returnthe lower coefficient of variation: 0.2051 against 0.8300Stabilized building
- 19Dominancean expected return at least the other's and a standard deviation at most the other's: 7.80% and 1.60% against 9.00% and 7.47%neither
Marked: the lines your last edit changed.
For your agent: calc_run returns these same 19 lines.
How it counts, and how it is checked.
Checked by an independent calculation
How it counts
- Each option is a list of scenarios with a probability and a yearly return, both decimals; the probabilities must sum to 1 within 0.000001 and are used as given, not rescaled, and the scenarios and odds are the user's own, never a default set.
- The expected return is the sum of each probability times its return; the variance is the population variance, the sum of each probability times the squared gap between its return and the expected return, and the standard deviation is its square root.
- The coefficient of variation is the standard deviation over the expected return, the risk carried per unit of return, and is not defined (null) when the expected return is zero or less; the range runs from the lowest to the highest return, zero-probability scenarios included, and the one-sigma band is the expected return plus and minus one standard deviation, a description of spread, not a probability unless returns are normally distributed.
- Given a threshold, the chance below it is the summed probability of the scenarios whose return is strictly less than the threshold.
- With two options it names the one with the higher expected return and the one with the lower coefficient of variation, and says one dominates when its expected return is at least the other's and its standard deviation at most the other's, one of the two strictly; figures within 1e-12 count as equal, an expected return within 1e-12 of zero counts as zero, and every figure is computed unrounded and rounded only for display.
What the checks pin
- The worked example is pinned to values computed independently in Python with the decimal module: each option's probability sum, expected return, variance (checked both as the weighted squared deviations and as the mean square less the squared mean), standard deviation, coefficient of variation, range, one-sigma band and chance below the threshold, and the comparison.
- The tests pin that the weighted returns sum to the expected return, the weighted squared deviations sum to the variance, the expected return lies inside the range, adding a constant to every return moves the expected return by it and leaves the variance alone, and scaling every return scales the deviation and leaves the coefficient of variation alone.
- Closed forms are pinned: two scenarios at even odds give a standard deviation of half the gap, and two at any odds a variance of p(1 − p) times the gap squared.
- Edge cases are pinned: one scenario (zero spread), an expected return of zero or less, including one that is zero only on paper (coefficient not defined), a zero-probability scenario (in the range, no weight), a return exactly at the threshold (not below it), ties and dominance; probabilities that do not sum to 100%, two options with one name and bad fields are refused with a plain message.
Called by 4 steps in 1 playbook and 3 scenarios.
Write the investment committee memo1 step
- Step 7Run sensitivities and weighted scenariosAgent
A tenant stops paying rentSituation1 step
- Step 9Price a workout against enforcementAgent
The loan matures and refinancing falls throughSituation1 step
- Step 9Put every path on one comparison sheetAgent
The principals disagree on a major decisionSituation1 step
For your agent
It calls calc_run with id scenario-risk and the same inputs as the form above, and gets back the result, its working and the rule cards it rests on. The worked example is pinned in __tests__/, which run it through the same function this page and the tool call.