Skip to main content
Blog home
Newsletter
News
Video
Podcast
Reading list
Wright Brief
Sign In

What is Feature Engineering?

A plain-language explanation of Feature Engineering, with a worked example, common pitfalls and the questions people ask most.

Listen to this article
Audio · ~3 min
Add as a preferred source on Google

Feature engineering is the process of transforming raw data into meaningful inputs for quantitative models. It involves selecting, cleaning, normalizing, and combining variables to improve predictive power.

Examples include creating momentum indicators from prices, profitability ratios from financial statements, or volatility measures from returns.

Good feature engineering often matters more than complex algorithms. Well-designed features capture economic intuition and reduce noise.

Quant workflows emphasize stability, interpretability, and robustness when engineering features. Overly intricate transformations increase the risk of overfitting.

Feature engineering bridges domain knowledge and machine learning, converting financial intuition into systematic signals.

From raw data to model inputs

Raw dataExample features
Prices12-1 month momentum, 60-day volatility, distance from the 200-day average
Financial statementsReturn on equity, profit margins, debt to equity, cash flow compared with profit
Analyst estimatesChange in forecasts over three months, dispersion between analysts
Volume and tradesAverage daily traded value, share of days with no trades

Common transformations

  • Ratios and changes: turning levels into growth rates or margins.
  • Standardising: converting values to comparable scores. See z-score normalization.
  • Handling extremes: capping outliers so one value does not dominate.
  • Relative scoring: comparing each stock with its sector or peers. See factor neutralization.
  • Lagging: using only data that was available on the decision date.

A point that is easy to miss: reporting dates

A company's quarterly results are published weeks after the quarter ends. A feature built from a quarter's profit must be assigned to the date the result was announced, not the date the quarter ended. Otherwise a backtest uses numbers nobody had at the time, and the results look better than they could have been.

Other pitfalls

  • Too many features. Each extra feature gives a model more room to fit noise. See overfitting.
  • Leakage. A feature that accidentally contains future information produces results that cannot be repeated.
  • Missing and changed data. Companies stop reporting, restate figures or change definitions, and each case needs a rule.
  • No economic reason. Features that have no logic behind them are more likely to be coincidences. See correlation vs causation.

Features are tested on data not used to build them. See out-of-sample testing and PCA in quant finance, which can reduce many features to a few.

Frequently asked questions

What is feature engineering?

It is the work of turning raw data, such as prices and financial statements, into clean, comparable inputs, called features, that a model can use.

Why does the reporting date matter?

Because results are published after the period they cover. Using the period-end date instead of the announcement date lets a backtest see information that was not yet public.

Is more features always better?

No. More features give a model more room to fit noise. Features with a sound economic reason and good testing are preferred.

How are features checked?

By testing them on data that was not used to build them, checking they behave sensibly across periods, and reviewing how they handle missing or restated data.

Further reading

  1. Gu, S., Kelly, B. and Xiu, D. (2020). Empirical asset pricing via machine learning. Review of Financial Studies 33(5).
  2. Lopez de Prado, M. (2018). Advances in Financial Machine Learning. Wiley.
Browse the full Quant Glossary →

Disclaimer: Investment in securities market are subject to market risks. Read all the related documents carefully before investing. Registration granted by SEBI, membership of a SEBI recognized supervisory body (if any) and certification from NISM in no way guarantee performance of the intermediary or provide any assurance of returns to investors.

The content in these posts/articles is for informational and educational purposes only and should not be construed as professional financial advice and nor to be construed as an offer to buy/sell or the solicitation of an offer to buy/sell any security or financial products. Users must make their own investment decisions based on their specific investment objective and financial position and using such independent advisors as they believe necessary.

Wryght Research & Capital Pvt (Brand name: Wright Research) is a SEBI Registered Portfolio Manager Reg No: INP000007979 (Validity: Apr 03, 2023 – Perpetual) and a SEBI Registered Research Analyst No: INH000017295 (Validity: Jul 03, 2024 – Perpetual), with its registered office at 103, Shagun Vatika Prag Narayan Road, Lucknow, UP, 226001 India and CIN: U67100UP2019PTC123244. Past performance may or may not be sustained in future. Performance provided there in is not verified by SEBI. Investment in securities is subject to market and other risks, and there is no assurance or guarantee that the objectives of any of the strategies of the Portfolio Management Services will be achieved. Registration granted by SEBI, enlistment as RA with Exchange and certification from National Institute of Securities Markets (NISM) in no way guarantee performance of the intermediary or provide any assurance of returns to investors. Please read the Disclosure document carefully before investing. Securities quoted are for illustration only and are not recommendatory. Charts shown are for illustration only. For more information and disclosures, visit our disclosures page here.

Found this useful? Share it.
Wright PMS · Portfolio Management Service

Put this research to work

The same 300+ factor research engine behind this article — applied to a professionally managed portfolio, end to end.

300+
Factors tracked
2L+
Investors
₹1,200+ Cr
Invested
SEBI
Registered PMS