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 NEWSLara Trump withdraws from consideration to replace Rubio in US Senate
Lara Trump withdraws from consideration to replace Rubio in US Senate
Stay up-to-date with the latest news - click here
LATEST NEWSROSEN, TRUSTED INVESTOR COUNSEL, Encourages MGP Ingredients, Inc. Investors to Secure Counsel Before Important Deadline in Securities Class Action - MGPI
ROSEN, TRUSTED INVESTOR COUNSEL, Encourages MGP Ingredients, Inc. Investors to Secure Counsel Before Important Deadline in Securities Class Action - MGPI
Stay up-to-date with the latest news - click here
LATEST NEWSThe 5 biggest revelations from Blake Lively's complaint against Justin Baldoni
The 5 biggest revelations from Blake Lively's complaint against Justin Baldoni

"It Ends with Us" star Blake Lively filed a legal complaint against her costar, Justin Baldoni, for sexual harassment and for conspiring to damage her reputation.

Stay up-to-date with the latest news - click here
LATEST NEWS5 money lessons a 63-year-old retiree worth $1 million taught her kids from an early age
5 money lessons a 63-year-old retiree worth $1 million taught her kids from an early age

She taught them how stocks and savings bonds work and encouraged them to be self-reliant, skills that have help them reach their own milestones.

Stay up-to-date with the latest news - click here
LATEST NEWSROSEN, A TOP RANKED LAW FIRM, Encourages Light & Wonder, Inc. Investors to Inquire About Securities Class Action Investigation - LNW
ROSEN, A TOP RANKED LAW FIRM, Encourages Light & Wonder, Inc. Investors to Inquire About Securities Class Action Investigation - LNW
Stay up-to-date with the latest news - click here

Leave a Reply