Use of Machine Learning in Pairs Trading

Subscribe to newsletter

Machine learning has become an essential tool in modern finance, transforming the way financial institutions and investors approach data analysis and decision-making. In areas such as portfolio management, algorithmic trading, credit scoring, and fraud detection, machine learning enables more accurate predictions, faster processing of information, and the automation of tasks that previously required manual effort. Additionally, machine learning models can adapt and improve over time, learning from new data to enhance their performance.

Reference [1] explored the use of machine learning in pairs trading. Specifically, the authors developed an algorithm to trade the classic Pepsi/Cola pair using three predictive methods: (i) fitting a linear model to real datasets of Pepsi and Coca-Cola stocks, (ii) employing a neural network approach to fit non-linear models, and (iii) utilizing an error correction model (ECM). They pointed out,

Using the NN method, a non-linear model between TextY and TextX was fitted and then the prediction corresponding to testX series was computed. For the spread series, both opening and closing positions were identified in Fig. 5.4. Profit for each pair of opening and closing positions was found and the total profit was also computed.

Subscribe to newsletter https://harbourfrontquant.beehiiv.com/subscribe Newsletter Covering Trading Strategies, Risk Management, Financial Derivatives, Career Perspectives, and More

Comparing the $1.05102 total profit of the lm() method with the $1.049395 profit of the NN model, we can conclude that the NN performs the same as the ’lm() method. Here, NN can perform better than some other methods only if the optimal number of neurons is used in the hidden layers.

In short, the neural network performs similarly to the linear model method but can be improved by optimizing the number of neurons.

Let us know what you think in the comments below or in the discussion forum.

References

[1] R. Sivasamy, Dinesh K. Sharma, Sediakgotla, and B. Mokgweetsi, Machine Learning Algorithmic Model for Pairs Trading, in Machine Learning for Real World Applications, Springer 2024.

Further questions

What's your question? Ask it in the discussion forum

Have an answer to the questions below? Post it here or in the forum

LATEST NEWSHummingbird Resources PLC and Nioko Resources Corporation Enter Into Binding Term Sheet for Co-Operation and Support With Pasofino Gold
Hummingbird Resources PLC and Nioko Resources Corporation Enter Into Binding Term Sheet for Co-Operation and Support With Pasofino Gold

LONDON, April 03, 2025 (GLOBE NEWSWIRE) — Hummingbird Resources PLC (“Hummingbird”), a West African gold mining company, announced today that it has entered into a binding term sheet for co-operation and support (the “Co-operation Agreement”) with Pasofino Gold Limited (“Pasofino”), and Hummingbird’s parent company, Nioko…

Stay up-to-date with the latest news - click here
LATEST NEWSAurora Mobile Limited Files Its Annual Report on Form 20-F
Aurora Mobile Limited Files Its Annual Report on Form 20-F

SHENZHEN, China, April 03, 2025 (GLOBE NEWSWIRE) — Aurora Mobile Limited (NASDAQ: JG) (“Aurora Mobile” or the “Company”), a leading provider of customer engagement and marketing technology services in China, today announced it has filed its annual report on Form 20-F for the fiscal year…

Stay up-to-date with the latest news - click here
LATEST NEWSGuardant Health partners with Bayshore for cancer tests in Canada
Guardant Health partners with Bayshore for cancer tests in Canada
Stay up-to-date with the latest news - click here
LATEST NEWSCycurion adds industry veteran to board post-de-SPAC
Cycurion adds industry veteran to board post-de-SPAC
Stay up-to-date with the latest news - click here
LATEST NEWSStratasys to showcase new 3D printing solutions at RAPID + TCT
Stratasys to showcase new 3D printing solutions at RAPID + TCT
Stay up-to-date with the latest news - click here

Leave a Reply