Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Bayesian inference for financial markets using PyMC. Stochastic volatility models, regime-switching, Bayesian portfolio optimization, factor models, and Markov chain Monte Carlo for risk estimation.
.claude/skills/mkurman-pymc-markets/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-14 | ✗→✓ | ▲ Improved | -26% | 0% |
| case-23 | ✗→✓ | ▲ Improved | -28% | 0% |
| case-04 | ✓→✓ | = Same ✓ | -64% | 0% |
| case-07 | ✓→✓ | = Same ✓ | -21% | 0% |
| case-08 | ✓→✓ | = Same ✓ | 19% | 0% |
PyMC provides Bayesian inference for financial modeling: stochastic volatility, regime-switching, Bayesian portfolio optimization, factor models, and MCMC risk estimation using the NUTS sampler. ArviZ provides diagnostics and visualization.
bashuv pip install pymc arviz
pythonimport pymc as pm import numpy as np import arviz as az # Simulated daily returns returns = np.random.randn(500) * 0.02 with pm.Model() as sv_model: sigma = pm.InverseGamma("sigma", alpha=2, beta=1) log_vol = pm.GaussianRandomWalk("log_vol", sigma=sigma, shape=len(returns)) obs = pm.Normal("returns", mu=0, sigma=pm.math.exp(log_vol / 2), observed=returns) trace = pm.sample(1000, tune=1000, chains=4) print(az.summary(trace, var_names=["sigma"])) az.plot_trace(trace)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 32,244 | 13,834 | -57% | 1 | 1 | 0% | 6,197 | 2,920 | -53% | 0 | 0 | — |
case-02 | fail→fail | 16,595 | 11,647 | -30% | 1 | 1 | 0% | 3,238 | 2,730 | -16% | 0 | 0 | — |
case-03 | fail→fail | 18,409 | 15,627 | -15% | 1 | 1 | 0% | 3,590 | 3,358 | -6% | 0 | 0 | — |
case-04 | pass→pass | 7,789 | 1,343 | -83% | 1 | 1 | 0% | 1,253 | 457 | -64% | 0 | 0 | — |
case-05 | fail→fail | 10,375 | 7,607 | -27% | 1 | 1 | 0% | 1,694 | 1,535 | -9% | 0 | 0 | — |
case-06 | fail→fail | 17,618 | 14,946 | -15% | 1 | 1 | 0% | 3,084 | 3,018 | -2% | 0 | 0 | — |
case-07 | pass→pass | 12,659 | 8,284 | -35% | 1 | 1 | 0% | 2,351 | 1,864 | -21% | 0 | 0 | — |
case-08 | pass→pass | 3,609 | 2,644 | -27% | 1 | 1 | 0% | 635 | 757 | +19% | 0 | 0 | — |
case-09 | pass→pass | 11,004 | 3,986 | -64% | 1 | 1 | 0% | 1,861 | 1,002 | -46% | 0 | 0 | — |
case-10 | pass→pass | 3,345 | 2,623 | -22% | 1 | 1 | 0% | 509 | 693 | +36% | 0 | 0 | — |
case-11 | pass→pass | 6,029 | 5,573 | -8% | 1 | 1 | 0% | 971 | 1,244 | +28% | 0 | 0 | — |
case-12 | pass→pass | 8,716 | 7,239 | -17% | 1 | 1 | 0% | 1,647 | 1,829 | +11% | 0 | 0 | — |
case-13 | fail→fail | 2,905 | 1,729 | -40% | 1 | 1 | 0% | 448 | 557 | +24% | 0 | 0 | — |
case-14 | fail→pass | 14,709 | 9,460 | -36% | 1 | 1 | 0% | 2,565 | 1,902 | -26% | 0 | 0 | — |
case-15 | pass→pass | 9,440 | 6,531 | -31% | 1 | 1 | 0% | 1,616 | 1,441 | -11% | 0 | 0 | — |
case-20 | pass→pass | 13,650 | 7,097 | -48% | 1 | 1 | 0% | 2,671 | 1,664 | -38% | 0 | 0 | — |
case-16 | pass→pass | 6,705 | 1,732 | -74% | 1 | 1 | 0% | 1,175 | 608 | -48% | 0 | 0 | — |
case-17 | pass→pass | 2,655 | 2,064 | -22% | 1 | 1 | 0% | 463 | 632 | +37% | 0 | 0 | — |
case-18 | pass→pass | 14,037 | 5,224 | -63% | 1 | 1 | 0% | 2,483 | 1,168 | -53% | 0 | 0 | — |
case-19 | fail→fail | 12,505 | 7,916 | -37% | 1 | 1 | 0% | 2,378 | 1,862 | -22% | 0 | 0 | — |
case-21 | pass→pass | 8,296 | 7,345 | -11% | 1 | 1 | 0% | 1,788 | 1,922 | +7% | 0 | 0 | — |
case-22 | pass→pass | 11,697 | 9,311 | -20% | 1 | 1 | 0% | 2,382 | 2,227 | -7% | 0 | 0 | — |
case-23 | fail→pass | 5,129 | 1,931 | -62% | 1 | 1 | 0% | 790 | 567 | -28% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +9 percentage points is the difference between those two pass rates over the 23 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.