Risk Metrics Calculation

Risk Metrics Calculation

Teaches an agent to calculate portfolio risk metrics such as VaR, CVaR, Sharpe, Sortino and drawdown, with best practices for risk limits and monitoring.

Skill files2 files

references/

SKILL.md61 lines
1
---
2
name: risk-metrics-calculation
3
description: Calculate portfolio risk metrics including VaR, CVaR, Sharpe, Sortino, and drawdown analysis. Use when measuring portfolio risk, implementing risk limits, or building risk monitoring systems.
4
---
5
6
# Risk Metrics Calculation
7
8
Comprehensive risk measurement toolkit for portfolio management, including Value at Risk, Expected Shortfall, and drawdown analysis.
9
10
## When to Use This Skill
11
12
- Measuring portfolio risk
13
- Implementing risk limits
14
- Building risk dashboards
15
- Calculating risk-adjusted returns
16
- Setting position sizes
17
- Regulatory reporting
18
19
## Core Concepts
20
21
### 1. Risk Metric Categories
22
23
| Category | Metrics | Use Case |
24
| ----------------- | --------------- | -------------------- |
25
| **Volatility** | Std Dev, Beta | General risk |
26
| **Tail Risk** | VaR, CVaR | Extreme losses |
27
| **Drawdown** | Max DD, Calmar | Capital preservation |
28
| **Risk-Adjusted** | Sharpe, Sortino | Performance |
29
30
### 2. Time Horizons
31
32
```
33
Intraday: Minute/hourly VaR for day traders
34
Daily: Standard risk reporting
35
Weekly: Rebalancing decisions
36
Monthly: Performance attribution
37
Annual: Strategic allocation
38
```
39
40
## Detailed patterns and worked examples
41
42
Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.
43
44
## Best Practices
45
46
### Do's
47
48
- **Use multiple metrics** - No single metric captures all risk
49
- **Consider tail risk** - VaR isn't enough, use CVaR
50
- **Rolling analysis** - Risk changes over time
51
- **Stress test** - Historical and hypothetical
52
- **Document assumptions** - Distribution, lookback, etc.
53
54
### Don'ts
55
56
- **Don't rely on VaR alone** - Underestimates tail risk
57
- **Don't assume normality** - Returns are fat-tailed
58
- **Don't ignore correlation** - Increases in stress
59
- **Don't use short lookbacks** - Miss regime changes
60
- **Don't forget transaction costs** - Affects realized risk
61

© Seth Hobson · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,346 prompts

More by @OpenSourceBuffGuy

See all
Y2K flash mirror selfie in a skyline bathroom prompt image

Y2K flash mirror selfie in a skyline bathroom

Draws a raw late-night mirror selfie in a luxury high-rise bathroom with harsh direct flash, a smudged mirror and a neon skyline, in an early-2000s compact camera look.

image-prompt, gpt-image, selfie, y2k, candid, portrait, woman, night-scene, neon, cityscape, film-grain, film-photography, vertical-format, dramatic-lighting, editorial, luxury, photorealistic, korea, moody, bokeh, fashion, for-content-creators

Toddler sister draws with crayons as baby brother crawls prompt image

Toddler sister draws with crayons as baby brother crawls

Generates a Pixar-style 3D animated clip of a toddler girl drawing with crayons, her baby brother ruining the picture, and the two making up with a hug, with no dialogue or text.

video-prompt, seedance, animation, pixar-style, 3d-render, cozy, family-friendly, family, short-film, storytelling, character-consistency, close-up, medium-shot, soft-lighting, vertical-format, negative-prompt, vibrant-colors, for-parents, for-content-creators, camera-movement, short-form-video, whimsical

Woman hugging giant pencil in a cozy room prompt image

Woman hugging giant pencil in a cozy room

Makes a warm candid photo of a woman hugging a giant kawaii pencil in a cozy room, with doodle overlays and four miniature chibi replicas of her.

image-prompt, reference-image, face-reference, candid, portrait, woman, cozy, pastel, kawaii, chibi, doodle, miniature, toys, soft-lighting, natural-light, film-grain, vertical-format, dreamy, text-rendering, whimsical, social-media-graphic, photorealistic, nano-banana, for-content-creators, for-photographers, bokeh, warm-tones

Reviews

Loading reviews…

Discussion

Loading comments…