Skip to main content
aifinhub

Calculator

Returns Distribution Analyzer

Returns CSV → histogram, normal overlay, QQ plot, skewness, excess kurtosis, Jarque-Bera test, 3-sigma tail mass. Fat-tail diagnostics. Browser-only. Free.

Inputs
Form inputs / CSV
Runtime
Instant
Privacy
Client-side · no upload
API key
Not required
Methodology
Open →

Education · Not investment advice. BaFin/EU framework. Past performance does not indicate future results. Editorial standards Sponsor disclosure Corrections

1 · Upload a returns CSV

Format: date,returns. One numeric column (the first non-date column) is analyzed. Simple or log returns both work; the tool is scale-invariant. Everything runs in your browser.

What this tool computes

Visualise the shape of your return distribution and quantify its deviation from normality — the precondition most risk metrics (Sharpe, VaR, parametric CVaR) quietly assume. Load the synthetic demo to see a heavy-tailed example, or upload your own returns.

How to use

Step-by-step

Full calculator guide →
  1. 1

    Upload a return series (daily, weekly, or monthly returns).

  2. 2

    Read the four moments: mean, std, skew, excess kurtosis. Excess kurtosis above 3 = fat tails.

  3. 3

    Read the distribution-fit comparison (Normal vs. Student-t vs. Skewed-t vs. GED). Student-t with low ν typically wins for return series.

  4. 4

    Read VaR and CVaR at 95% and 99%. CVaR > VaR by definition; the gap shows tail severity.

  5. 5

    Use the QQ plot to spot tail behavior visually. Heavy upper-right tail = positive skew; heavy lower-left tail = negative skew.

For agents

Use in an agent

Same math, same result shape as the UI above — as a static ES module. No HTTP request, no auth, no rate limit.

import { compute } from "https://aifinhub.io/engines/returns-distribution-analyzer.js";

Contract: /contracts/returns-distribution-analyzer.json Full agent guide →

Glossary references

Terms used by this tool

All glossary →

Questions people ask next

FAQ

What does the analyzer report?

First four moments (mean, std, skew, kurtosis), goodness-of-fit to standard distributions (Normal, Student-t, Skewed-t, GED), tail statistics (VaR, CVaR at 95% and 99%), and visual diagnostics (QQ plot, density vs. fit). The methodology page documents each.

What's the difference between kurtosis and excess kurtosis?

Kurtosis = E[(X-μ)⁴]/σ⁴. Normal distribution has kurtosis 3. Excess kurtosis = kurtosis − 3, so a Normal has excess kurtosis 0. The analyzer reports excess kurtosis (more interpretable). Most return series have excess kurtosis 3-15: 'fatter than Normal' is the rule, not the exception.

Why does the t-distribution usually fit better than Normal?

Returns have fat tails — extreme moves are more common than Normal predicts. The Student-t with low degrees of freedom (3-6) reproduces this. The analyzer reports the fitted ν parameter; ν<5 is fat-tailed, ν>30 is essentially Normal.

What does VaR mean in plain language?

Value at Risk at 95% says: 'on a typical day, you won't lose more than X.' Specifically, the 5th percentile of the daily-return distribution. CVaR (Conditional VaR) is the expected loss given that the 5% threshold is breached — answering 'when it's bad, how bad is it on average?' CVaR > VaR by definition.

Should I trust VaR?

Only as one input. VaR has known weaknesses: it's not subadditive (combining two assets can make VaR worse), it ignores tail beyond the threshold, and it's sample-dependent. For risk management, prefer CVaR or expected shortfall. The methodology page links to the canonical critiques (Acerbi, Tasche).

Complementary tools

Planning estimates only — not financial, tax, or investment advice.