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 NEWSCentral 1 reports 2024 third quarter financial results
Central 1 reports 2024 third quarter financial results

VANCOUVER, British Columbia, Nov. 21, 2024 (GLOBE NEWSWIRE) — Central 1 Credit Union (Central 1) today reported third quarter performance reflecting steady financial results across business lines, consistent with plans and expectations. “Our stable third quarter results were in line with our expectations,” said Sheila…

Stay up-to-date with the latest news - click here
LATEST NEWSTrulieve cannabis CMO Gina Collins buys $7,962 in shares
Trulieve cannabis CMO Gina Collins buys $7,962 in shares
Stay up-to-date with the latest news - click here
LATEST NEWSAspen Prices Public Offering of US$200 Million of Depositary Shares Representing Interests in Perpetual Non-Cumulative Preference Shares
Aspen Prices Public Offering of US$200 Million of Depositary Shares Representing Interests in Perpetual Non-Cumulative Preference Shares

HAMILTON, Bermuda — Aspen Insurance Holdings Limited (“Aspen” or the “Company”) has priced an underwritten public offering of 8,000,000 Depositary Shares (the “Depositary Shares”), each of which represents a 1/1,000th interest in a share of the Company’s newly designated 7.00% Perpetual Non-Cumulative Preference Shares (the…

Stay up-to-date with the latest news - click here
LATEST NEWSPostmedia Reports Fourth Quarter Results
Postmedia Reports Fourth Quarter Results

TORONTO — Postmedia Network Canada Corp. (“Postmedia” or the “Company”) today released financial information for the three months and year ended August 31, 2024. “While we continue to operate in a challenging advertising marketplace dominated by large, foreign media platforms, Postmedia achieved some important milestones…

Stay up-to-date with the latest news - click here
LATEST NEWSMedical Properties Trust Declares Regular Quarterly Dividend
Medical Properties Trust Declares Regular Quarterly Dividend
Stay up-to-date with the latest news - click here

Leave a Reply