How far a Sharpe ratio can be trusted: standard error, and probabilistic and deflated Sharpe ratios

One command in the Portfolio pack, available in the CLI, as an MCP tool and as a JavaScript import: quant sharpe-stats.

What it needs, and why

Every input is checked before anything is calculated. returns is required; the rest refine the answer.

InputRequiredThe question it asksWhy it matters
returnsyesWhat are the periodic returns, and how many periods make a year?Every statistic is estimated from the return series.
trialsoptionalHow many strategy variants were tried before settling on this one?The more variants tried, the higher a Sharpe ratio must be to mean anything.

Requests it answers

An agent with this pack loaded picks the command from phrasing like that, asks for whatever input is missing, and reports the figures with the method that produced them.

Limits it inherits from wealth-portfolio

The full pack, its other 10 commands and what it deliberately leaves alone are on the Portfolio page.