Algorithmic Glossary
A comprehensive technical resource for quantitative researchers. Deep dives into financial metrics, backtesting pitfalls, and Python implementations.
Sharpe Ratio
A measure of risk-adjusted return used to evaluate the performance of quantitative strategies.
Lookahead Bias
A fatal backtesting error where future data is inadvertently used to make past trading decisions.
Sortino Ratio
A variation of the Sharpe Ratio that penalizes only downside volatility, not total volatility.
Calmar Ratio
A risk-adjusted return metric that compares annualized returns against maximum drawdown.
Maximum Drawdown
The largest peak-to-trough decline in portfolio value observed over a given period.
Profit Factor
The ratio of gross profits to gross losses, measuring overall strategy profitability efficiency.
Win Rate
The percentage of trades that close with a positive profit, independent of magnitude.
Expectancy
The average amount a strategy expects to win or lose per unit risked on each trade.
Recovery Factor
The ratio of net profit to maximum drawdown, measuring how efficiently a strategy recovers from losses.
Value at Risk (VaR)
A statistical measure estimating the maximum expected loss over a given time horizon at a specified confidence level.
Standard Deviation
A measure of the dispersion of returns around their mean, used as a proxy for total portfolio volatility.
Beta
A measure of a strategy's sensitivity to movements in a benchmark market index.
Alpha
The excess return of a strategy above what is explained by its exposure to market risk (Beta).
Correlation Matrix
A symmetric matrix expressing pairwise linear relationships between multiple assets or strategy return streams.
Monte Carlo Simulation
A computational technique that models a strategy's range of possible future outcomes by repeatedly sampling from its historical return distribution.
Volatility Clustering
The empirical phenomenon where large market moves tend to be followed by large moves, and calm periods follow calm periods.
Fat Tails (Kurtosis)
The tendency of financial return distributions to exhibit more frequent and severe extreme events than a normal distribution predicts.
Overfitting
The critical failure mode where a model is tuned so precisely to historical data that it captures noise rather than genuine market structure.
Survivorship Bias
A backtesting distortion caused by testing a strategy only on assets that survived to the present, ignoring those that failed or were delisted.
Curve Fitting
The process of over-optimizing strategy parameters to match historical data so precisely that the model loses predictive power.
Data Mining Bias
The statistical inflation of strategy performance metrics caused by exhaustive searching through data until spurious patterns are found.
Selection Bias
A backtesting distortion arising from non-random selection of assets, time periods, or signals that unconsciously favor positive results.
Brokerage Slippage
The difference between the expected execution price of a trade and the actual price at which it is filled, eroding real-world strategy returns.
Mean Reversion
A strategy paradigm based on the statistical tendency of asset prices to return to their long-run historical average after deviating from it.
Trend Following
A systematic strategy paradigm that identifies and rides sustained directional price movements across asset classes.
Arbitrage
The simultaneous purchase and sale of equivalent assets in different markets to profit from temporary price discrepancies with theoretically zero risk.
Pair Trading
A market-neutral strategy that simultaneously goes long on an underperforming asset and short on an outperforming correlated asset, profiting from the convergence of their price spread.
Market Making
A liquidity-providing strategy that simultaneously quotes bid and ask prices, profiting from the bid-ask spread while managing directional inventory risk.
Order Flow
The signed volume of buy and sell orders hitting the market, used to infer the directional pressure and informed trading activity driving short-term price movements.
VWAP
Volume-Weighted Average Price — the average price of an asset weighted by traded volume over a session, used as a primary institutional execution benchmark.
TWAP
Time-Weighted Average Price — the average price of an asset calculated at equal time intervals, used to execute large orders with minimal market impact.
High-Frequency Trading (HFT)
A class of algorithmic trading strategies that exploit microsecond-level market inefficiencies using co-located servers, direct market access, and ultra-low latency execution infrastructure.
Sentiment Analysis
The quantitative extraction of bullish or bearish signals from unstructured text sources — news, earnings calls, social media — to generate alpha in systematic trading strategies.
Vectorized Backtesting
A backtesting methodology that applies trading logic to entire price arrays simultaneously using matrix operations, prioritizing computational speed over simulation realism.
Event-Driven Engine
A backtesting architecture that processes market data and trading logic sequentially through a chronological event queue, faithfully replicating the information constraints of live trading.
Pandas DataFrames
The foundational two-dimensional labeled data structure in Python quantitative finance, used to store, manipulate, and analyze time series of prices, signals, and portfolio metrics.
NumPy Arrays
The high-performance N-dimensional array structure that forms the computational backbone of all numerical operations in quantitative finance Python workflows.
TA-Lib
A widely-used C library with Python bindings providing over 150 pre-built technical analysis indicators for use in quantitative strategy research and backtesting.
Z-Score Calculation
A standardization technique that expresses the distance of a data point from its rolling mean in units of standard deviation, used universally as a signal generation and normalization tool in quantitative strategies.
Walk-Forward Optimization
A rigorous backtesting methodology that repeatedly optimizes strategy parameters on a rolling in-sample window and immediately validates them on the subsequent out-of-sample period.