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 →
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
- 1
Upload a return series (daily, weekly, or monthly returns).
- 2
Read the four moments: mean, std, skew, excess kurtosis. Excess kurtosis above 3 = fat tails.
- 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
Read VaR and CVaR at 95% and 99%. CVaR > VaR by definition; the gap shows tail severity.
- 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
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).
Related deep dive
All articles →Read further
Long-form context behind the tool output.
- Tutorial · Runnable·9 min
How to Read a Backtest Report: 2026 Cheat Sheet
Five questions a backtest report must answer — edge real, persistent, cheap to trade, bearable, explainable — with the statistics that verify each.
Read - Methodology · Opinion·8 min
The Sharpe Ratio Trap
Sharpe ignores tail risk, assumes Gaussian returns, and is trivially gameable. Four metrics to report alongside it: Sortino, Calmar, tail, deflated Sharpe.
Read - Methodology · Opinion·10 min
After-Hours, 24-7, and Pre-Market Asymmetries
Three boundaries where LLM research built on equity's 9:30–16:00 clock breaks — earnings after close, 24-7 crypto, pre-market Asia/Europe action. Decision rule.
Read
Used in
Decision workflows that use this tool
Goal-driven flows that bundle this tool with adjacent ones.
Complementary tools
Users of this tool often explore
Risk-Adjusted Returns Calculator
Paste a returns CSV. Sharpe, Sortino, Calmar, Omega, alpha, beta, tracking error, information ratio, max drawdown, and tail moments — plus.
Backtest Overfitting Score
Upload a backtest trade log and compute Probability of Backtest Overfitting (PBO), Deflated Sharpe Ratio, and the odds your edge survives live trading.
Efficient Frontier Builder
Paste a multi-asset returns CSV. See the Markowitz mean-variance frontier, the minimum-variance portfolio, the max-Sharpe (tangency) portfolio.