Stock price prediction using machine learning: evidence from Pakistan stock exchange

Raza, Hassan (2024) Stock price prediction using machine learning: evidence from Pakistan stock exchange. In: International Conference in Business Management & Innovation (ICBiv) 2023, 18-19 September 2023, Department of Business and Management, UiTM Perak Branch.

Abstract

This study explores the application of machine learning techniques to predict the movement of stock prices in the market. Using a dataset of historical stock prices (KSE-100 Index), a Random Forest classifier is employed to make predictions about whether a stock will rise or fall in the future. The model is trained using a sliding window approach and is evaluated using precision, recall, and F1-score metrics. The study also includes back testing and hyper-parameter tuning to improve the model's performance. The results show that the model achieves a precision score of 58%, an improvement from the previous score of 48%. However, the overall accuracy of the model is only 58%, indicating that further improvements are necessary. The study also suggests future directions for research, including the use of alternative data sources, sentiment analysis, and more sophisticated algorithms. The study's findings have implications for investors and financial organizations, demonstrating the potential of machine learning to make more educated investment decisions and enhance financial forecasting and analysis.

Metadata

Item Type: Conference or Workshop Item (Paper)
Creators:
Creators
Email / ID Num.
Raza, Hassan
dr.hassan@szabist-isb.edu.pk
Subjects: H Social Sciences > HG Finance > Investment, capital formation, speculation
H Social Sciences > HG Finance > Investment, capital formation, speculation > Stock exchanges. Insider trading in securities
Divisions: Universiti Teknologi MARA, Perak
Journal or Publication Title: International Conference in Business Management & Innovation (ICBiv) 2023
Event Title: International Conference in Business Management & Innovation (ICBiv) 2023
Event Dates: 18-19 September 2023
Page Range: pp. 151-161
Keywords: Machine learning, Stock prices, Random forest, Precision, Recall, Financial forecasting
Date: November 2024
URI: https://ir.uitm.edu.my/id/eprint/132514
Edit Item
Edit Item

Download

[thumbnail of 132514.pdf] Text
132514.pdf

Download (628kB)

ID Number

132514

Indexing

Statistic

Statistic details