Quant research and backtesting
Feature
Also called predictor, input variable, factor (in machine learning use)
An input variable computed from data available at the time, such as a past return, a ratio or an order book imbalance, that a model uses to predict a label.
How it works
Features must be point-in-time: computed only from data that existed at the timestamp of the row. Scaling and transformation steps (z-scores, winsorising, PCA) must be fitted on training data only, or they leak test information. Financial features are usually noisy, correlated with one another and non-stationary, so many researchers transform prices into returns or other stationary forms first. In scikit-learn terms the features form the X matrix of samples by features.
Worked example
For each stock and day: 20-day return, 20-day volatility, and the ratio of today's volume to its 60-day average, each calculated with data up to that day's close and used to predict a later label.
Related terms
Put it to work in a timed game.
Practise with Find the BugSources
Last checked November 2026.