Dự Đoán Chỉ Số Thị Trường Chứng Khoán Bằng Học Sâu

Khóa luận tốt nghiệp khám phá ứng dụng deep learning trong dự đoán chỉ số thị trường chứng khoán, mang lại cái nhìn sâu sắc và tiềm năng.

Trường đại học

Vietnam National University

Chuyên ngành

Finance - Banking

Người đăng

Ẩn danh

Thể loại

Graduation Thesis

2023

60
2
0

Phí lưu trữ

30 Point

Mục lục chi tiết

ACKNOWLEDGMENTS

1. PART 1: INTRODUCTION

1.1. The relevance of the research topic

1.2. Research objectives

1.3. Research questions

1.4. Research scope

1.5. Materials and methods

1.6. Expected research contributions

1.7. Research structure

2. PART 2: THEORETICAL BASIS AND LITERATURE REVIEW

2.1. Overview of AI

2.2. Overview of deep learning

2.3. Overview of Deep learning for predicting time series

3. PART 3: RESEARCH METHODOLOGY

4. PART 4: EXPERIMENT AND RESULTS

5. PART 5: CONCLUSION AND FUTURE WORK

REFERENCES

LIST OF ACRONYMS

LIST OF TABLES

LIST OF FIGURES

Tóm tắt

I. Tổng Quan Về Dự Đoán Chỉ Số Thị Trường Chứng Khoán Bằng Học Sâu

Dự đoán chỉ số thị trường chứng khoán là một lĩnh vực nghiên cứu quan trọng trong tài chính. Sự phát triển của công nghệ và dữ liệu lớn đã mở ra cơ hội mới cho việc áp dụng học sâu trong việc phân tích và dự đoán xu hướng thị trường. Nghiên cứu này không chỉ giúp các nhà đầu tư đưa ra quyết định chính xác hơn mà còn góp phần vào sự phát triển bền vững của thị trường tài chính.

1.1. Khái Niệm Về Học Sâu Trong Tài Chính

Học sâu là một nhánh của trí tuệ nhân tạo, sử dụng các mạng nơ-ron để phân tích và dự đoán dữ liệu. Trong lĩnh vực tài chính, học sâu giúp cải thiện độ chính xác của các mô hình dự đoán thông qua việc xử lý khối lượng dữ liệu lớn.

1.2. Tầm Quan Trọng Của Dự Đoán Chỉ Số Thị Trường

Dự đoán chỉ số thị trường chứng khoán không chỉ giúp các nhà đầu tư tối ưu hóa lợi nhuận mà còn giảm thiểu rủi ro. Việc hiểu rõ các yếu tố ảnh hưởng đến giá cổ phiếu là rất cần thiết để đưa ra quyết định đầu tư hợp lý.

II. Thách Thức Trong Dự Đoán Chỉ Số Thị Trường Chứng Khoán

Dự đoán chỉ số thị trường chứng khoán gặp nhiều thách thức do tính không ổn định và phức tạp của thị trường. Các yếu tố như tâm lý nhà đầu tư, biến động kinh tế và chính trị có thể ảnh hưởng lớn đến giá cổ phiếu. Do đó, việc phát triển các mô hình dự đoán chính xác là một nhiệm vụ khó khăn.

2.1. Tính Không Ổn Định Của Thị Trường

Thị trường chứng khoán thường xuyên biến động, điều này làm cho việc dự đoán trở nên khó khăn. Các yếu tố bên ngoài như khủng hoảng kinh tế hay chính trị có thể gây ra những biến động lớn trong giá cổ phiếu.

2.2. Tâm Lý Nhà Đầu Tư

Tâm lý nhà đầu tư là một yếu tố quan trọng ảnh hưởng đến quyết định đầu tư. Sự hoảng loạn hoặc lạc quan của nhà đầu tư có thể dẫn đến những biến động không thể dự đoán trước trong giá cổ phiếu.

III. Phương Pháp Dự Đoán Chỉ Số Thị Trường Bằng Học Sâu

Có nhiều phương pháp học sâu được áp dụng để dự đoán chỉ số thị trường chứng khoán, bao gồm LSTM, GRU và CNN. Mỗi phương pháp có những ưu điểm và nhược điểm riêng, phù hợp với các loại dữ liệu khác nhau.

3.1. Mô Hình LSTM Trong Dự Đoán

Mô hình LSTM (Long Short-Term Memory) rất hiệu quả trong việc xử lý dữ liệu chuỗi thời gian. Nó giúp ghi nhớ thông tin lâu dài và giảm thiểu vấn đề mất mát thông tin trong quá trình dự đoán.

3.2. Mô Hình GRU Và Ứng Dụng Của Nó

Mô hình GRU (Gated Recurrent Unit) là một biến thể của LSTM, giúp đơn giản hóa cấu trúc và cải thiện tốc độ tính toán. GRU thường được sử dụng trong các bài toán dự đoán ngắn hạn.

3.3. CNN Trong Phân Tích Dữ Liệu Tài Chính

Mô hình CNN (Convolutional Neural Network) thường được áp dụng trong nhận diện hình ảnh, nhưng cũng có thể được sử dụng để phân tích dữ liệu tài chính. CNN giúp phát hiện các mẫu trong dữ liệu một cách hiệu quả.

IV. Ứng Dụng Thực Tiễn Của Học Sâu Trong Dự Đoán Chỉ Số Thị Trường

Việc áp dụng học sâu trong dự đoán chỉ số thị trường chứng khoán đã mang lại nhiều kết quả khả quan. Các mô hình học sâu không chỉ cải thiện độ chính xác mà còn giúp các nhà đầu tư đưa ra quyết định kịp thời và hiệu quả hơn.

4.1. Kết Quả Nghiên Cứu Từ Các Mô Hình Học Sâu

Nghiên cứu cho thấy các mô hình học sâu như LSTM và GRU có thể đạt được độ chính xác cao trong việc dự đoán xu hướng giá cổ phiếu. Điều này mở ra cơ hội mới cho các nhà đầu tư trong việc tối ưu hóa lợi nhuận.

4.2. Ứng Dụng Trong Thực Tế

Nhiều công ty tài chính đã áp dụng các mô hình học sâu để cải thiện quy trình ra quyết định đầu tư. Việc sử dụng công nghệ này giúp giảm thiểu rủi ro và tối ưu hóa lợi nhuận cho các nhà đầu tư.

V. Kết Luận Về Tương Lai Của Dự Đoán Chỉ Số Thị Trường Chứng Khoán

Tương lai của dự đoán chỉ số thị trường chứng khoán bằng học sâu rất hứa hẹn. Sự phát triển của công nghệ và dữ liệu lớn sẽ tiếp tục thúc đẩy nghiên cứu và ứng dụng trong lĩnh vực này.

5.1. Xu Hướng Nghiên Cứu Trong Tương Lai

Các nghiên cứu trong tương lai sẽ tập trung vào việc cải thiện độ chính xác của các mô hình học sâu và phát triển các phương pháp mới để xử lý dữ liệu tài chính.

5.2. Tác Động Đến Thị Trường Tài Chính

Việc áp dụng học sâu trong dự đoán chỉ số thị trường chứng khoán có thể thay đổi cách thức mà các nhà đầu tư ra quyết định, từ đó tạo ra những ảnh hưởng tích cực đến thị trường tài chính.

10/07/2025
Khóa luận tốt nghiệp deep learning for predicting stock market index

Trích đoạn nội dung tài liệu

VIETNAM NATIONAL UNIVERSITY UNIVERSITY OF ECONOMICS & BUSINESS FACULTY OF FINANCE - BANKING GRADUATION THESIS DEEP LEARNING FOR PREDICTING STOCK MARKET INDEX Instructor: Dr. Nguyen Tien Chuong Student: Nguyen Quang Bac Student ID: 20050408 Class: QH2020E TCNH CLC 3 Course code: FIB4151 Ha Noi, 2023 VIETNAM NATIONAL UNIVERSITY UNIVERSITY OF ECONOMICS & BUSINESS FACULTY OF FINANCE - BANKING GRADUATION THESIS DEEP LEARNING FOR PREDICTING STOCK MARKET INDEX Instructor: Dr. Nguyen Tien Chuong Student: Nguyen Quang Bac Student ID: 20050408 Class: QH2020E TCNH CLC 3 Course code: FIB4151 Ha Noi, 2023 ACKNOWLEDGMENTS During the time of researching and implementing this research, I have received very enthusiastic help and valuable words of encouragement. With all respect and gratitude, I would like to express our sincere thanks to: The Board of Directors of the University of Economics and Business —Vietnam National University has built a learning environment that helps me as well as the students of the whole university to be motivated, opportunities to access and practice scientific research.

I sincerely thank the teachers and experts of the Faculty of Finance and Banking and other faculties in the university for taking the time to answer and analyze the questions, contributing to creating a foundation to help me confidently implement this research. I would like to express my deep gratitude to Dr. Nguyen Tien Chuong - the person. who directly guided me.

He is a very dedicated and enthusiastic teacher with new directions, detailed communication, frank suggestions and especially he is always conscious to show me the greatest value I receive after completing my research. I feel very fortunate to receive his support. TABLE OF CONTENT PART 1: INTRODUCTION. The relevance of the research topic.

SG SH HH ng ng 2 In. Research co ha. Materials ao nn ee. Expected research COntrIDUfIOIS.- s6 55 + S211 3 1E 9v re 3 In oi ố ố.

3 PART 2: THEORETICAL BASIS AND LITERATURE REVIEW. Overview of deep learning .- --- 1191991191 1v vn ng ngư, 72. Overview of Deep learning for predicting time S€T1€s.A review of related previous StUCIES. Review of research abroad .- - -- + xxx k9 9 th ng ngư 10 2.

Review of research in Vietnam. 14PART 3: RESEARCH METHODOLOGY .1 Long short-term memory (LSTM). Gated recurrent unit (GIRÙ). Convolution neural networks (CNN).

Data set and BIŠ0si 50:0 1E. Data denoising, normalization and input preparation. Feature SELECTION Strate VY 0. Model performance IT€fTICS.- 2 + + + k1 E91 1E kg vn ng g 313.6 Implementation DFOC€SS.

-- --- - + 119119911911 911 91191 1 nh gi ng ngà 34 PART 4: EXPERIMENT AND RESULTS. Single layer deep learning model reSuÏ(S. -- -- ¿+ +++<s++se++eex+sex+ze+ 36 4. Multilayer Deep learning r€SuÏ(S.

Comparison of single and multilayer deep learning models .- Ăn HH HH HH 00 0000600000800008 00647 5. Directions for future Studies .- 5 s3 3 HH HH nghiệt 48 REEERENCES. o5 G000 00005009609006 49 LIST OF ACRONYMS No ABBREVIATION EXPANSION Artificial intelligence oOla Deep Learning HAR Human activity recognition RNN Recurrent neural network LSTM Long short-term memory GRU Gated recurrent unit CNN Convolution neural network ARIMAX Autoregressive integrated moving average with exogenous inputs mm VNINDEX Vietnam stock market index RMSE Root Mean Square Error MAPE Mean Absolute Percentage Error ee. 1 LIST OF TABLES =T——= _—T- Table 4.1 List of the best hyperparameters for single-neurons LSTM, 37 GRU, and CNN models The performance scores of the single layer deep learning models in the test data Table 4.3 List of the best hyperparameters for multi-layer LSTM, GRU, and CNN models The performance scores of the best multi-layer deep learning models in the test data of the model’s performance.

il LIST OF FIGURES Fig.1 Long short-term memory (LSTM) architecture Fig 3.2 Gated Recurrent Unit (GRU) architecture m 19 CNN architecture with m filters for multivariate time series 22 prediction.4 Train, Validation and Test Split Dataset Fig.5 Correlation heatmap among the variables Fig 3.6 Schematic diagram of the proposed research framework 35 Fig.1 VNINDEX closing price along with moving averages 36 Fig 4.2 Average scores obtained from LSTM, GRU, and CNN models: Gs3)5 (a) RMSE, (b) MAPE, and (c) R on test dataset. Boxplots of metrics: (a) RMSE, (b) MAPE, and (c) R of the \o single-neurons LSTM, GRU, and CNN models True vs predicted plots of the single layer models: (a) LSTM, (b) GRU, and (c) CNN on test data. Time series plots of the true and predicted values obtained + fan) from GRU model with 150 neurons. Average scores obtained from multi-layer LSTM, GRU, and =NS) CNN models: (a) RMSE, (b) MAPE, and (c) R on test dataset.

Boxplots of metrics: (a) RMSE, (b) MAPE, and (c) R of the + oO best multi-layer LSTM, GRU, and CNN models True vs predicted plots of the best multi-layer models: (a) LSTM, (b) GRU, and (c) CNN on test data Time series plots of the true and predicted values obtained from GRU model with (100, 50) neurons. multilayer deep learning models. The relevance of the research topic The stock market, also known as the equity market, exerts a significant influence on today's economy. According to the efficient market hypothesis, stock prices are not predictable, and their movements are essentially random.

However, recent technical analysis has shown that most of the stock value is reflected in historical data; therefore, understanding trends is crucial for effective predictions (Akhter and Misir, 2005). Moreover, stock markets are subject to the influence of a wide array of economic factors, including political events, the overall economic climate, commodity price indices, investor expectations, movements in other stock markets, and investor psychology, among other factors (Miao et al. Different technical indicators are used to derive statistical data from stock prices (Lehoczky, Schervish, 2018). In general, stock market indices, derived from stock prices, are heavily influenced by investment activities in the market and often serve as indicators of a country's economic conditions.

The nature of stock price fluctuations is uncertain and presents risks for investors. The rise or fall in share prices plays a crucial role in determining an investor's profit. Predicting stock prices has always been a_ challenging problem, primarily due to its inherent unpredictability in the long term (Asadi et al, 2012). Forecasting stock prices is regarded as one of the most difficult tasks to accomplish in financial forecasting due to the complex nature of the stock market.

Prediction will continue to be an interesting area of research making researchers in the domain field always desiring to improve existing predictive models. The reason 1s that institutions and individuals are empowered to make investment decisions and ability to plan and develop effective strategies about their daily and future endeavors. The desire of many investors is to lay hold of any forecasting method that could guarantee easy profiting and minimize investment risk from the stock market. This remains a motivating factor for researchers to evolve and develop new predictive models (G.

1 The existing methods for stock price forecasting can be classified as follows: Fundamental Analysis, Technical Analysis, Time Series Forecasting. Fundamental analysis is a type of investment analysis where the share value of a company is estimated by analyzing its sales, earnings, profits and other economic factors. This method is most suited for long-term forecasting. Technical analysis uses the historical price of stocks for identifying the future price.

This method is suitable for short term predictions. The third method is the analysis of time series data. It involves basically two classes of algorithms; they are Linear Models and Non-Linear Models. The existing forecasting methods make use of both linear (AR, MA, ARIMA) and non-linear algorithms (ARCH, GARCH, Neural Networks), but they focus on predicting the stock index movement or price forecasting for a single stock using the daily closing price.

Here we are not fitting the data to a specific model, rather we are identifying the latent dynamics existing in the data using deep learning architectures. In this work we use three different deep learning architectures (LSTM, RNN, CNN) for the price prediction of VNINDEX and compare their performance. Research objectives The objective of this research is to construct a model for predicting the price of the VNINDEX using Deep Learning (DL), optimizing the model's parameters, and evaluating its performance in predicting stock price trends in the future. By employing Deep Learning, we hope that this study will contribute to enhancing predictive capabilities and supporting investment decisions in the stock market sector.

Research questions The prediction model for stock prices using Deep Learning can achieve high accuracy and reliability in forecasting future stock price trends. The impact of changes in the Deep Learning model, such as using different neural network layers or different parameter configurations, on the ability to predict stock prices. The best method to use for predicting the Vietnam stock market index. Research scope Scope of content: Vietnam's stock market index (VNINDEX).

Scope of time: From October 16, 2000, to October 6, 2023 1. Materials and methods Since the research focuses on mathematical modeling, the methodology will primarily involve quantitative methods and machine learning model training. Expected research contributions The research topic will contribute to the study and development of prediction methods and models for the VNINDEX and stock prices using the Deep Learning model. By applying and analyzing the prediction results on real stock data, the research can provide valuable insights into the effectiveness and applicability of the Deep Learning model in predicting the VNINDEX and stock prices in the Vietnamese market.

The findings from this research can help investors better understand stock price predictions, enabling them to make more informed investment decisions. This, in turn, has the potential to optimize profits and reduce risks in the Vietnamese stock market. Additionally, the results of this research can serve as a reference for future studies that utilize machine learning models to predict the stock market index and stock prices. Research structure The rest of the research includes the following content: Part 2: An overview introduction to the research field of stock price prediction and the foundational knowledge that will be included in the research.

Specifically, this chapter will introduce the fundamental concepts of AI, as well as the deep learning model. Part 3: In this part, I will delve into the proposed model and describe in detail the features of the Deep Learning model for stock price prediction. Additionally, data preprocessing steps, model training, model evaluation methods will be discussed. 3 Part 4: Presentation of experiments and comparison of the test results for each model.

Different dataset organization approaches will be explored, leading to observations about the implemented models and the selection of an optimal model based on visualized results. Part 5: Presents the conclusion and future work, followed by a list of references, and appendix. PART 2: THEORETICAL BASIS AND LITERATURE REVIEW 2. Overview of AI Artificial intelligence (AI), known as a kind of machine intelligence, generally means the intelligence showcased by man-made machines.

Typically, AI is defined as a typical type of computer program that emulates human intelligence. General textbooks describe it as the study and creation of an intelligent agent capable of observing its environment and taking actions to fulfill tasks given by human instructions (Russell et al. Classical definitions posit that AI, as an intelligent system, possesses the ability to accurately interpret external data and use that information as knowledge to accomplish its missions with adaptability demonstrated throughout the process (Russell et al. The field of artificial intelligence research is intricate and demands specialized knowledge for comprehension.

It encompasses a broad and diverse array of subfields that are deep but not necessarily interconnected. Key areas of focus include the development of reasoning, knowledge, planning, learning, communication, perception, manipulation of objects, tool usage, and control of machines, all with the aim of making machines similar to or even surpassing human capabilities. A wide range of tools employing AI technology are utilized, spanning from research and mathematical optimization to logical deduction.

Nội dung được bảo vệ bản quyền — Tải xuống đầy đủ

Tài liệu "Dự Đoán Chỉ Số Thị Trường Chứng Khoán Bằng Học Sâu" cung cấp cái nhìn sâu sắc về việc áp dụng các phương pháp học sâu để dự đoán chỉ số thị trường chứng khoán. Bài viết nêu bật các kỹ thuật và mô hình học sâu hiện đại, giúp người đọc hiểu rõ hơn về cách thức mà công nghệ này có thể cải thiện độ chính xác trong dự đoán giá cổ phiếu và xu hướng thị trường.

Đặc biệt, tài liệu này không chỉ mang lại kiến thức lý thuyết mà còn hướng dẫn thực tiễn, giúp các nhà đầu tư và chuyên gia tài chính có thể áp dụng vào công việc của mình. Để mở rộng thêm kiến thức, bạn có thể tham khảo các tài liệu liên quan như Ứng dụng mô hình học sâu lstm trong bài toán dự báo giá cổ phiếu ở thời điểm đóng cửa cho một số mã cổ phiếu ở thị trường chứng khoán Việt Nam, nơi bạn sẽ tìm thấy các ứng dụng cụ thể của mô hình học sâu trong dự đoán giá cổ phiếu.

Ngoài ra, tài liệu Dự báo chứng khoán sử dụng phương pháp học sâu cũng sẽ cung cấp thêm thông tin về các phương pháp học sâu khác nhau trong lĩnh vực chứng khoán. Cuối cùng, bạn có thể khám phá Luận văn thạc sĩ công nghệ thông tin hệ dự đoán chỉ số vn index dựa trên mô hình học sâu để hiểu rõ hơn về cách dự đoán chỉ số VN-Index, một chỉ số quan trọng trong thị trường chứng khoán Việt Nam.

Những tài liệu này sẽ giúp bạn mở rộng kiến thức và có cái nhìn toàn diện hơn về việc ứng dụng học sâu trong lĩnh vực tài chính.