# Strategy Overfitting & P-Hacking Deflator

> Audits a backtest for the multiple-testing problem: deflated Sharpe ratio against how many variants you actually tried, probability of backtest overfitting, and a Monte Carlo slippage decay curve.

Strategy Overfitting & P-Hacking Deflator is a subscription AI agent skill on Agensi by AllAccessData. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5/mo (subscription, cancel anytime)
- Creator: [AllAccessData](https://www.agensi.io/creators/allaccessdata)
- Version: 1.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/strategy-overfitting-p-hacking-deflator
- Tags: trading-investing, research-analysis, data-databases

## About this skill

**Algorithmic Strategy Overfitting & P-Hacking Deflator** A Sharpe of 3 after two hundred parameter sweeps is a Sharpe of 3 for the sweep, not the strategy.

Built for quantitative and systematic traders about to risk real capital. Runs on Claude, Codex, Hermes, Gemini, and GPT-4 and any framework that loads a SKILL.md.

**What it computes:**
* **Deflated Sharpe Ratio** in the Lopez de Prado sense - the observed Sharpe penalized for the number of trials run, the sample length and the return distribution's skew and kurtosis, which is the number that survives contact with the multiple-testing problem.
* **Probability of Backtest Overfitting** via combinatorial purged cross-validation, estimating how often the in-sample best performer underperforms the median out of sample.
* **Leakage detection** - lookahead bias, survivorship, and the purging and embargo gaps that are missing when training folds touch test periods.
* **Monte Carlo slippage decay** - how much of the edge survives realistic execution costs.

**Workflow:** pull backtest logs and trade exports -> evaluate parameter count against sample size -> compute the penalty metrics -> stress-simulate -> deliver a Strategy Reality Card with the verdict and the working.

_Diagnostics, not permission. A high deflated Sharpe does not make a strategy safe, these metrics depend on honestly reporting how many variants you tested, and none of this is investment advice._

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Strategy Overfitting & P-Hacking Deflator skill from Agensi" and describe your task.
3. Subscribe on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does Strategy Overfitting & P-Hacking Deflator do?

Audits a backtest for the multiple-testing problem: deflated Sharpe ratio against how many variants you actually tried, probability of backtest overfitting, and a Monte Carlo slippage decay curve.

### Which AI agents support Strategy Overfitting & P-Hacking Deflator?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Strategy Overfitting & P-Hacking Deflator?

Connect your AI agent to Agensi through MCP, then ask it to use Strategy Overfitting & P-Hacking Deflator on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
