Skip to content
Edition NigeriaGlobal
Country: Mexico

You are in the Mexico edition. Type your country to switch.

The Americas

Set up your profile

You are learning in the Mexico edition, with examples in pesos and from Mexico.

AI and machine learning applied to financial data · Lesson 1 of 10

The data pipeline and features for financial machine learning

A machine learning model is only as good as the pipeline that feeds it. Raw prices, fundamentals and text must be collected, cleaned, time-stamped and turned into features, and each step can quietly introduce errors that no model can fix.

Advanced12 min read6 steps

This lesson is complete in writing. A video for it is on its way.

What you will learn

  • By the end you can describe the stages of a financial machine learning pipeline, from raw data to a model.
  • You can explain the difference between a feature and a label, and why each needs a timestamp.
  • You can name the main kinds of financial input, prices, fundamentals and text, and the typical errors in each.
  • You can spot a feature that uses information nobody could have known at the time.

Key terms in this lesson

Machine learning
A branch of AI in which a computer learns patterns from examples in data, rather than following rules written by a person.
Survivorship bias
Distorted results from studying only the survivors, such as companies still listed, and ignoring those that failed.
Feature
In machine learning, one input a model uses to make a prediction, such as a share's past month return or a company's debt-to-equity ratio. Each feature must use only information that was known at th…
Label
The answer a supervised model is trained to predict, such as whether a loan was repaid or next month's return. Choosing the label is a design decision that shapes everything the model learns.
Feature engineering
Turning raw data into useful model inputs, for example converting a price series into returns, volatility or a ratio, and lining each value up with the time it became known.
Look-ahead bias
Using information in a test that would not have been known at the time.

Step 1 of 6

Why the pipeline matters more than the model

Opening this step…

Step 2 of 6

Three families of input: prices, fundamentals and text

This step opens when you finish the one above.

Step 3 of 6

Features and labels

This step opens when you finish the one above.

Step 4 of 6

Point in time: what was known, and when

This step opens when you finish the one above.

Step 5 of 6

Worked example: auditing a feature table

This step opens when you finish the one above.

Step 6 of 6

After launch: monitoring the pipeline

This step opens when you finish the one above.

Key takeaways

The key takeaways open when you finish every step.

Lesson quiz

5 questions. You need 85% to pass.

The quiz opens when you finish every step.

Read first

Stockertim Learn is education. It explains how investing works and never recommends buying or selling anything.

Up next

AI & securitySupervised and unsupervised lear…Read nowSupervised and unsupervised learning, with market examplesAI & security · Advanced · 15 minAI & securityNLP on financial text: earnings …Read nowNLP on financial text: earnings calls, filings and news sentimentAI & security · Advanced · 15 minAI & securityForecasting with machine learnin…Read nowForecasting with machine learning, and why markets resist itAI & security · Advanced · 15 minAI & securityLeakage, look-ahead bias and wal…Read nowLeakage, look-ahead bias and walk-forward validationAI & security · Advanced · 15 minAI at workA professional AI design workflowRead nowA professional AI design workflowAI at work · Intermediate · 15 minFinancial data & analyticsFinancial data sourcesRead nowFinancial data sourcesFinancial data & analytics · Intermediate · 15 minFinancial data & analyticsCleaning data for splits, divide…Read nowCleaning data for splits, dividends and ticker changesFinancial data & analytics · Intermediate · 15 minAI & securityWhat AI and large language model…Read nowWhat AI and large language models are, and are notAI & security · Beginner · 15 minAI & securityResearching investments with AI …Read nowResearching investments with AI tools safelyAI & security · Beginner · 15 minAI & securityThe threat landscape for banks, …Read nowThe threat landscape for banks, brokers and exchangesAI & security · Advanced · 15 minAI & securityIncident response and breach dis…Read nowIncident response and breach disclosureAI & security · Advanced · 15 min
English