quantitative-research

Validates trading strategies through walk-forward backtesting, factor analysis, and statistical significance testing.

Updated Aug 15, 2026
One-click install
npx skills add https://github.com/qqlcx5/skills-hub --skill quantitative-research-qqlcx5
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: quantitative-research
Source: https://github.com/qqlcx5/skills-hub/tree/main/skills/quantitative-research
Command: npx skills add https://github.com/qqlcx5/skills-hub --skill quantitative-research-qqlcx5

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Most trading strategies that look profitable in backtests fail in live trading due to overfitting, look-ahead bias, survivorship bias, and ignored transaction costs. This Skill applies rigorous statistical validation to separate real alpha from disguised beta and data artifacts. ## Core Features & Use Cases - Walk-Forward Backtesting: Validates strategies with rolling train/test splits, measuring Sharpe degradation between in-sample and out-of-sample periods. - Alpha Signal Research: Computes Information Coefficients, alpha decay curves, and multi-factor signal combination with t-statistic significance thresholds. - Statistical Arbitrage & Factor Models: Tests cointegration for pairs trading, calculates mean-reversion half-lives, and decomposes returns into factor exposure versus true alpha. - Use Case: You have a momentum strategy showing a 3.5 Sharpe ratio in backtest. Use this Skill to audit it for look-ahead bias, run walk-forward validation, adjust for realistic transaction costs, and determine whether the returns survive factor adjustment. ## Quick Start Ask the agent to validate your trading strategy backtest for overfitting and look-ahead bias using walk-forward analysis.

Frequently Asked Questions about quantitative-research

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I know if my backtest is overfit?

A backtest is likely overfit if the Sharpe ratio exceeds 3, train performance far exceeds test performance, or the strategy has more than 5 parameters. Use walk-forward validation and require at least 20 observations per parameter to reduce overfitting risk.

What is walk-forward analysis in backtesting?

Walk-forward analysis repeatedly optimizes parameters on a rolling training window and validates on the subsequent out-of-sample period. Strategies passing this test historically survive live trading about 60% of the time, versus 5% for simple backtests.

How do I detect look-ahead bias in a trading strategy?

Look-ahead bias appears as negative shifts like shift(-1), using today's index constituents historically, or trading on same-day close data. Audit every data point by asking whether the information was actually available at trade time.

Why does my live trading underperform the backtest?

The gap usually comes from transaction costs, market impact, and overfitting. Realistic costs range from 3.5 bps for SPY to 80+ bps for crypto, and in-sample Sharpe ratios typically degrade by 50% or more in live trading.

How do I test if two stocks are cointegrated for pairs trading?

Run a cointegration test requiring p-value below 0.05, then calculate the spread's half-life using OLS regression. Pairs with half-lives of 10-40 days that remain cointegrated out-of-sample historically perform best.

When should I avoid machine learning for alpha generation?

Avoid ML when working with low signal-to-noise data, limited samples, or short histories like 3 years of daily data. Simple regularized models with walk-forward validation outperform deep learning on price data in most cases.