Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Conducting Backtest Validation

ASecurity

Structures backtesting methodology with out-of-sample testing, cross-validation, and overfitting detection techniques. Use when validating backtests, detecting overfitting, or ensuring backtest robustness.

22 stars
0 votes
0 copies
0 views
Added 9/20/2026
businessgotestingapiperformancedocumentation

Works with

cliapi

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add lev-os/agents --skill conducting-backtest-validation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Conducting Backtest Validation?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Conducting Backtest Validation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lev-os-conducting-backtest-validation/badge)](https://www.skillsdirectory.com/skills/lev-os-conducting-backtest-validation)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: conducting-backtest-validation
description: Structures backtesting methodology with out-of-sample testing, cross-validation, and overfitting detection techniques. Use when validating backtests, detecting overfitting, or ensuring backtest robustness.
tags:
  - process
  - quantitative-capital-strategies
metadata:
  author: casemark
  practice_areas:
    - Quantitative Investing
    - Systematic Strategies
    - Factor Investing
  document_types:
    - Process Documentation
  skill_modes:
    - Process Management
---
# Conducting Backtest Validation

Structures backtesting methodology with out-of-sample testing, cross-validation, and overfitting detection techniques for systematic and factor-based investment strategies.

## When To Use

- Validating a new trading strategy or alpha signal before live deployment
- Auditing an existing backtest for overfitting, look-ahead bias, or survivorship bias
- Comparing multiple strategy variants to select a robust candidate
- Reviewing third-party backtest results (fund managers, vendors, research papers)
- Stress-testing a strategy across regime changes, drawdown periods, or tail events

## Inputs To Gather

- **Strategy specification**: signal logic, universe definition, rebalance frequency, position sizing rules, and transaction cost assumptions
- **Data sources**: price/return series, factor exposures, benchmark indices — confirm whether adjusted for survivorship bias and corporate actions
- **Backtest parameters**: start/end dates, in-sample vs. out-of-sample split dates, walk-forward window lengths
- **Cost model**: commissions, slippage estimates, borrowing costs, market impact assumptions [VERIFY against actual execution data if available]
- **Benchmark(s)**: relevant index or factor portfolio for performance attribution
- **Prior test count**: number of strategy variations already tested on the same dataset (needed for multiple-testing adjustment)

## Workflow

### 1. Data Integrity Audit

- Confirm no look-ahead bias: signals use only information available at decision time
- Check for survivorship bias in the universe (delisted securities, index reconstitution)
- Verify point-in-time correctness for fundamental data (restatements, reporting lags)
- Validate price data for stock splits, dividends, and corporate actions
- Flag any gaps, stale prices, or anomalous returns exceeding ±50% in a single day

### 2. In-Sample / Out-of-Sample Design

- Split the dataset with a minimum 30% out-of-sample holdout; prefer chronological split over random
- Define walk-forward windows: typical choices are 3–5 year in-sample with 1-year forward test steps
- For shorter histories, use k-fold combinatorial purged cross-validation (CPCV) with an embargo period equal to the strategy's maximum holding period to prevent leakage

### 3. Overfitting Detection

- **Multiple-testing adjustment**: apply the Deflated Sharpe Ratio (DSR) or Bonferroni/BHY correction based on the total number of strategy trials
- **Parameter sensitivity**: vary key parameters ±20% and check whether Sharpe ratio degrades more than 30% — flag fragile strategies
- **Minimum Backtest Length (MinBTL)**: estimate required sample size for statistical significance given observed Sharpe; reject if actual history is shorter [VERIFY formula assumptions against strategy frequency]
- **Probability of Backtest Overfitting (PBO)**: run CPCV and compute the share of OOS combinations that underperform the benchmark — PBO > 0.40 is a red flag

### 4. Performance & Risk Decomposition

- Report annualized return, volatility, Sharpe ratio, Sortino ratio, max drawdown, and Calmar ratio for both IS and OOS periods
- Decompose returns via factor attribution (market, size, value, momentum, quality at minimum) to isolate residual alpha
- Examine hit rate, profit factor, and average win/loss ratio at the trade level
- Compute turnover and net-of-cost performance; reject strategies where costs consume >50% of gross alpha

### 5. Regime & Stress Analysis

- Segment performance by market regime: rising rates, falling rates, high vol (VIX > 25), low vol, recession (NBER-dated), expansion
- Identify maximum drawdown duration and recovery period
- Run Monte Carlo reshuffling of trade returns to build confidence intervals around key metrics
- Test sensitivity to execution delay (T+0 vs. T+1 vs. T+2 entry)

### 6. Replication & Documentation

- Record exact signal definitions, universe filters, and rebalance rules so the backtest is fully reproducible
- Log software version, random seeds, and data vendor/snapshot date
- Archive parameter search space and total trial count for future multiple-testing reference

## Output

Produce a **Backtest Validation Report** containing:

1. **Executive summary**: strategy description, headline OOS metrics, and pass/fail recommendation
2. **Data quality findings**: any biases detected, data gaps, or corrections applied
3. **IS vs. OOS comparison table**: side-by-side metrics with statistical significance notes
4. **Overfitting diagnostics**: DSR, PBO score, parameter sensitivity heatmap
5. **Factor attribution**: gross vs. residual alpha, factor loading stability over time
6. **Regime analysis**: performance table segmented by macro regime
7. **Cost impact**: gross vs. net Sharpe, breakeven cost threshold
8. **Recommendation**: deploy, refine, or reject — with specific conditions or thresholds for promotion to paper trading

## Quality Checks

- OOS Sharpe ratio is statistically distinguishable from zero at the 95% level (t-stat > 1.96 after multiple-testing adjustment)
- PBO < 0.40 and DSR remains positive after accounting for all trials
- No single regime drives more than 60% of cumulative OOS profit
- Parameter sensitivity analysis shows smooth, not cliff-edge, degradation
- Transaction cost assumptions are realistic — cross-check slippage with actual fill data or TCA reports [VERIFY against broker/execution platform data]
- Factor exposures are stable and intentional; unintended loadings are flagged
- All data sources and methodology steps are documented sufficiently for independent replication

Attribution

lev-oslev-os
View sourceMore from lev-os →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Solution Architect

Designs system architecture, component specifications, and technical integration strategy. Use when: designing solutions, system architecture, technology stack, or integration approaches.

192 votes

Akorchak:Venture Assessment

Generate a comprehensive VC investment assessment report for a company

72 votes

Stock Analysis

Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management (create, add, remove assets), crypto analysis (Top 20 by market cap), and periodic performance reports (daily/weekly/monthly/quarterly/yearly). 8 analysis dimensions for stocks, 3 for crypto. Use for stock analysis, portfolio tracking, earnings reactions, or crypto monitoring.

6511 votes

Just Fucking Cancel

Find and cancel unwanted subscriptions by analyzing bank transactions. Detects recurring charges, calculates annual waste, and helps you cancel with direct URLs and browser automation. Use when: 'cancel subscriptions', 'audit subscriptions', 'find recurring charges', 'what am I paying for', 'save money', 'subscription cleanup', 'stop wasting money'. Supports CSV import (Apple Card, Chase, Amex, Citi, Bank of America, Capital One, Mint, Copilot) OR Plaid API for automatic transaction pull. Out...

6511 votes

Telegram Compose

Compose rich, readable Telegram messages using HTML formatting via direct Telegram API. Use when: (1) Sending any Telegram message beyond a simple one-line reply, (2) Creating structured messages with sections, lists, or status updates, (3) Need formatting unavailable via Clawdbot's Markdown conversion (underline, spoilers, expandable blockquotes, user mentions by ID), (4) Sending alerts, reports, summaries, or notifications to Telegram, (5) Want professional, scannable message formatting wit...

6511 votes
View all in business →