Dự Đoán Thị Trường Chứng Khoán Việt Nam Với Phương Pháp Khai Thác Dữ Liệu

Khóa luận đánh giá hiệu quả tài chính tại Ngân hàng Thương mại Cổ phần Công nghệ Việt Nam, cung cấp cái nhìn sâu sắc về hoạt động ngân hàng.

Trường đại học

Vietnam National University

Chuyên ngành

Finance and Banking

Người đăng

Ẩn danh

Thể loại

Thesis

2021

71
3
0

Phí lưu trữ

30 Point

Mục lục chi tiết

ACKNOWLEDGEMENT

INTRODUCTION

1. CHƯƠNG 1: THEORETICAL BASIS AND LITERATURE REVIEW

1.1. Stock market analysis

1.1.1. Fundamental analysis

1.1.2. Technical analysis

1.1.3. The efficient market assumption

1.1.4. Evidence against the efficient market assumption

1.1.5. Stock Market Concept

1.1.6. Characteristics of the Stock Market

1.1.7. Functions of the Stock Market

2. CHƯƠNG 2: PREPROCESSING DATA

2.1. The method of combining the content of news

2.2. Assign news labels to prepare data for the training phase

2.3. Eliminate interfering characters

2.4. Represents news in vector space

3. CHƯƠNG 3: DEVELOPING TEST PROGRAMS

3.1. Code Editor - Visual Studio Code (Visual Code)

3.2. Python programming and libraries

3.2.1. Beautiful Soup Library

3.2.2. Scikit-learn Library

3.3. Introduction of modules

3.4. Evaluate the model's accuracy

3.5. Testing program

3.6. Advanced program testing

4. CHƯƠNG 4: CONCLUSION

Tóm tắt

I. Tổng Quan Về Dự Đoán Thị Trường Chứng Khoán Việt Nam

Thị trường chứng khoán Việt Nam đang thu hút sự quan tâm lớn từ các nhà đầu tư. Với sự gia tăng số lượng tài khoản chứng khoán, việc dự đoán giá cổ phiếu trở nên cần thiết hơn bao giờ hết. Dự đoán thị trường không chỉ giúp nhà đầu tư đưa ra quyết định chính xác mà còn tối ưu hóa lợi nhuận. Phương pháp khai thác dữ liệu đang nổi lên như một công cụ hữu hiệu trong việc phân tích và dự đoán xu hướng thị trường.

1.1. Khái Niệm Dự Đoán Thị Trường Chứng Khoán

Dự đoán thị trường chứng khoán là quá trình sử dụng dữ liệu và thông tin để ước lượng xu hướng giá cổ phiếu trong tương lai. Phương pháp này có thể bao gồm phân tích kỹ thuật và phân tích cơ bản, nhưng ngày nay, khai thác dữ liệu đang trở thành xu hướng chính.

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

Dự đoán chính xác giúp nhà đầu tư đưa ra quyết định kịp thời, từ đó tối ưu hóa lợi nhuận. Ngoài ra, nó còn giúp các nhà môi giới cung cấp lời khuyên giao dịch chính xác hơn, góp phần vào sự phát triển bền vững của thị trường.

II. Thách Thức Trong Dự Đoán Thị Trường Chứng Khoán Việt Nam

Mặc dù có nhiều phương pháp dự đoán, nhưng thị trường chứng khoán Việt Nam vẫn đối mặt với nhiều thách thức. Sự biến động của thị trường, thông tin không đầy đủ và độ tin cậy của dữ liệu là những yếu tố gây khó khăn cho việc dự đoán chính xác. Hơn nữa, việc phân tích dữ liệu từ nhiều nguồn khác nhau cũng là một thách thức lớn.

2.1. Sự Biến Động Của Thị Trường

Thị trường chứng khoán Việt Nam thường xuyên biến động do nhiều yếu tố như chính trị, kinh tế và tâm lý nhà đầu tư. Sự biến động này làm cho việc dự đoán trở nên khó khăn hơn, đòi hỏi các nhà đầu tư phải có chiến lược linh hoạt.

2.2. Thông Tin Không Đầy Đủ

Nhiều nhà đầu tư gặp khó khăn trong việc tiếp cận thông tin chính xác và kịp thời. Thông tin không đầy đủ có thể dẫn đến quyết định sai lầm, ảnh hưởng đến kết quả đầu tư.

III. Phương Pháp Khai Thác Dữ Liệu Trong Dự Đoán Thị Trường

Khai thác dữ liệu là một phương pháp mạnh mẽ giúp phân tích và dự đoán xu hướng thị trường chứng khoán. Các kỹ thuật như học máy và phân tích văn bản đang được áp dụng để cải thiện độ chính xác của dự đoán. Việc sử dụng các mô hình như Học Máy Cây Quyết Định và Hỗ Trợ Vector Machine đã cho thấy hiệu quả trong việc dự đoán giá cổ phiếu.

3.1. Học Máy Trong Dự Đoán Giá Cổ Phiếu

Học máy cho phép phân tích dữ liệu lớn và tìm ra các mẫu ẩn trong dữ liệu. Các mô hình như Random Forest và K-Nearest Neighbor đã được chứng minh là hiệu quả trong việc dự đoán giá cổ phiếu dựa trên dữ liệu lịch sử.

3.2. Phân Tích Văn Bản Để Dự Đoán Thị Trường

Phân tích văn bản giúp trích xuất thông tin từ các nguồn tin tức và bài viết liên quan đến thị trường. Việc này cung cấp cái nhìn sâu sắc về tâm lý thị trường và có thể ảnh hưởng đến giá cổ phiếu.

IV. Ứng Dụng Thực Tiễn Của Khai Thác Dữ Liệu Trong Dự Đoán

Khai thác dữ liệu không chỉ là lý thuyết mà còn có nhiều ứng dụng thực tiễn trong thị trường chứng khoán Việt Nam. Nhiều công ty chứng khoán đã áp dụng các phương pháp này để cải thiện khả năng dự đoán và cung cấp dịch vụ tốt hơn cho khách hàng. Kết quả nghiên cứu cho thấy rằng việc áp dụng khai thác dữ liệu có thể nâng cao độ chính xác trong dự đoán giá cổ phiếu.

4.1. Các Công Ty Chứng Khoán Ứng Dụng Khai Thác Dữ Liệu

Nhiều công ty chứng khoán tại Việt Nam đã bắt đầu áp dụng các phương pháp khai thác dữ liệu để phân tích thị trường. Điều này giúp họ đưa ra các quyết định đầu tư chính xác hơn và tối ưu hóa lợi nhuận cho khách hàng.

4.2. Kết Quả Nghiên Cứu Về Dự Đoán Thị Trường

Nghiên cứu cho thấy rằng việc sử dụng khai thác dữ liệu có thể cải thiện đáng kể độ chính xác trong dự đoán giá cổ phiếu. Các mô hình học máy đã cho thấy khả năng dự đoán tốt hơn so với các phương pháp truyền thống.

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

Dự đoán thị trường chứng khoán Việt Nam bằng phương pháp khai thác dữ liệu đang trở thành xu hướng quan trọng. Với sự phát triển của công nghệ và dữ liệu lớn, khả năng dự đoán sẽ ngày càng chính xác hơn. Tương lai của thị trường chứng khoán Việt Nam hứa hẹn sẽ có nhiều cơ hội cho các nhà đầu tư nếu biết áp dụng đúng các phương pháp này.

5.1. Xu Hướng Phát Triển Trong Dự Đoán Thị Trường

Xu hướng phát triển công nghệ thông tin và khai thác dữ liệu sẽ tiếp tục ảnh hưởng đến cách thức dự đoán thị trường chứng khoán. Các công nghệ mới sẽ giúp cải thiện độ chính xác và tốc độ dự đoán.

5.2. Cơ Hội Cho Nhà Đầu Tư

Nhà đầu tư có thể tận dụng các công cụ khai thác dữ liệu để đưa ra quyết định đầu tư thông minh hơn. Việc nắm bắt thông tin và phân tích dữ liệu sẽ giúp họ tối ưu hóa lợi nhuận trong tương lai.

10/07/2025
Khóa luận tốt nghiệp tài chính ngân hàng evaluating the financial performance a case study of vietnam technological and commercial joint stock bank

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

VIETNAM NATIONAL UNIVERSITY UNIVERSITY OF ECONOMIC AND BUSINESS FACULTY OF FINANCE & BANKING GRADUATE THESIS: FORECASTING THE VIETNAM STOCK MARKET WITH TEXT MINING APROACHES Supervisors: ThS. Lé Thi Phuong Thao Hanoi, February 2021 ACKNOWLEDGEMENT A completed study would not be done without any assistance. Therefore, the author who conducted this research gratefully gives acknowledgement to their support and motivation during the time of doing this research as a requirement of completing my thesis. The author would like to thank the Board of the University of Economics and Business — Vietnam National University for creating favorable conditions for the author to complete this thesis.

The author also would like to thank the lecturers of the Faculty of Finance and Banking, University of Economics and Business — Vietnam National University for their help the author in the thesis implementation process. In particular, I would like to express my endless thanks and gratefulness to my supervisor Ms. Le Thi Phuong Thao. Her kindly support and continuous advices went through the process of completion of my thesis.

Her encouragement and comments had significantly enriched and improved my work. Without her motivation and instructions, the thesis would have been impossible to be done effectively. Thank you very much! Author/Student Supervisor (Sign, Full name) (Sign, Full name) Ms. Le Thi Phuong Thao Nguyen Ngoc Hai TABLE OF CONTENTS 0400900 @919))00Ề12125255.

Object and scope 20200. 8 A, Thesis Structure oo. 8 CHAPTER 1: THEORETICAL BASIS AND LITERATURE REVIEW.-- Gà HH HH HH HH HT HT nh nh ng 10 1. Stock market anaÏYSIS.-- c1 11919 111 191 111 1v vn TH ngư 10 1.

Text mining apprOaCHh. Introducing the problem of stock market forecasting. Overview of domestic r€S€ATCH. - G111 91 11v 01 T1 vn nh nh nh nh nh nh 34 1.

Overview of foreign T©S€AaTCH.- --- <1 1E 191 HH HH ky 35 CHAPTER 2: PREPROCESSING DA TÁA.-- Tnhh HH nh nh TT ng 39 2. The method of combining the content Of I€WS. Assign news labels to prepare data for the training phase. Eliminate interfering ChaTACẨ€TS.- - G5 119001119301 11910 1190 1 nh nh re 43 2.- -¿- 6 2 6 4k1 TT TH TH TH HH HH HT TH Hiệp 45 2.

Represents NEWS 1n V€CfOT SDACC. - HH HH rờ 46 CHAPTER 3: DEVELOPING TEST PROGRAMS. HH HH ng gi, 48 3.1 Code Editor - Visual Studio Code (Visual Code).- c5 555cc sc+ssseeeeesss 48 3.2 Python programming ÏanØUAØ.3 Beautiful Soup Library 1 .4 Scikit-learn Library. Introduction of MOCUIES 1.

Evaluate the model's accuracy .-- c1 TH TH nh ng rệt 51 3. Testing program nh. Tested on data Sets .- - -- 1L HH HH TH HH HH HT 53 3. Advanced program testing T€SUÏ(S.-- --- - --- + 1+ E21 1991 1911 91 E91 1 1 9 ng ng ng rệt 54 CHAPTER 4: CONCLUSION.

Ác ST T TH TH HH TT TT TT To nh TT ni 57 ›3585)45)I0.” HH TT TH TH HH HH HH TT 66 INTRODUCTION 1. The rationale of the research The stock market in the world in general, and in Vietnam in particular, is attracting more and more investors. According to the Vietnam Securities Depository, only in November 2020, the Vietnamese stock market had over 41,200 newly created accounts (the highest monthly ever). Currently with more than 2.7 million accounts (as of the end of November 2020), Vietnam's stock market is attracting more attention and participating investors want to know more about the future of the market so they could invest more profitably.

Therefore, effective market prediction will bring great benefits both at the macro and micro level, helping brokers to offer trading advice or can be used as parts of the suggestion. For decades, stock market analysis has two approaches: fundamental analysis and technical analysis. The inputs for these methods are historical price data in coordinate with financial indicators. However, these financial indicators and business financial performance are often summarized in a specific period (quarter, half year, year), but news related to a business would likely have an immediate impact on its share price.

For example, when the board of directors of a company announce a merger and acquisition plan next year, this will immediately impact the share prices of the two companies, but in terms of financial data, it will reflect on the next financial reporting period. This demonstrates the fact that news has an evidently strong impact on the stock market, and for an emerging market like the Vietnamese stock market, this impact is even more pronounced. There have been studies using algorithms to analyze market data through technical analysis by using ARCH, GARCH models, etc. In the past, the most popular method applied was regression analysis, but now with the development of science and technology, algorithms related to machine learning have been increasingly applied.

According to Yu et al. (2013), technical analysis can only observe one piece of the overall picture of the market and using only this method of analysis will face many difficulties as it is only applicable in specific circumstances. As for fundamental analysis, it is not only based on historical financial data, but also relies on many other factors such as political situation, business environment, news, etc. These factors can be in a structured number format (numeric data) or it can also be from a textual data format.

Vietnam's stock market has shown a strong development in size, structure and played an important role in promoting the country’s economic development and International integration. With more than 700 stock symbols representing more than 700 listed companies, every day, hundreds of news related to these companies are published on newspapers and social networks. According to the Efficient Market Hypothesis, asset prices reflect all available information and the price of a security will fully reflect its value. However, gathering all this news for each investor is not only a matter of sources but also a matter of time.

According to a speed test sponsored by Staples, an adult has an average reading speed of 300 words per minute. On average, each A4 sheet has between 400 and 500 words. Therefore, to read a 20 pages document, a person needs at least 30 minutes and even more time to understand, analyze, and summarize that amount of information. However, the increasing amount of information published on the Internet has increased the demand for tools to help readers search and summarize information (Aas and Eikvil (1999)).

In fact, in today's information proliferation, readers can be exposed to countless different news outlets every day. These sources can have news directly related to the financial situation of a market, a business or also indirectly related to that business through articles about private life, the business meetings with other businesses or even occasional (possibly unverified) news circulating on social networks. This information can have a direct effect on a market or a business. For example, in 2013, the news that Mr.

Tran Bac Ha - Chairman of BIDV Bank's Board of Directors being arrested was spread on the morning of February 21, 2013. Immediately, a series of stocks were sold off. The VN- Index fell by 18 points and the HNX-Index fell by 3. The stock market capitalization has lost VND29,000 billion in one session.

After a period of investigation, the General Department of Security II - Ministry of Public Security has identified three people who spread these false rumors. Under these circumstances, it will be difficult to quantify the above information through financial indicators. In fact, textual data provides just as important insights as numerical data. Textual information is easier to understand and helps the reader to grasp a general perspective.

Especially for new investors with little experience in applying technical analysis for securities investment, most of them rely on textual information provided by leading online news sites about securities or daily news articles published by securities companies. Hence, text analysis is of great importance and is complementary to the analysis of financial indices and valuation models. Text Mining, an artificial intelligence technique to solve problems, can generalize the main idea in a short time and calculate the correlation between words. Sanjiv Ranjan Das (2014) has exploit large-scale text, automatically processing plain text language in digital form to extract data converted into useful quantitative or qualitative information.

The use of Text-Mining methods for stock market forecasting is highly necessary, and creative etc. However, there are only limited number of studies on the topic in Vietnam. Therefore, I conduct this research to fill the research gap and contribute to the literature as well as the decision-making process of investors on the stock market. Research objectives (i) Summarize theoretical basis related to the application of machine learning to forecast stock price fluctuations (1) Conduct literature review on domestic and foreign studies using text mining methods in stock price prediction (iii) Demonstrate that economic, business, and financial news on popular newspapers affect the price trend of the VN-Index.

(iv) Apply text mining method to forecast price fluctuations of the Vietnamese stock market through synthesizing news and VN-Index. (v) Propose improvements of Text Mining techniques to increase accuracy in forecasting the Vietnamese stock market. (vi) Create an objective and valuable source of reference for investors in making investment decisions. Scope of the study Research period: 2001 - 2021.

The scope of research: To use the text classification technique applied on Vietnamese news files in the financial and securities categories on the popular website of Vietnam. Research structure This study is structured into 4 chapters as below: Chapter 1: Theoretical basis and literature review Chapter 2: Data processing process Chapter 3: Building a test program Chapter 4: Conclusion 5. Research model Using the models: Support Vector Machine, Decision Tree, Random Forest, K-Nearest Neighbor (KNN) to forecast price volatility of Vietnam's stock market. The specific research process is as follows: The author collects text data sources, articles and news from four famous financial websites, and numerical data source is the historical price index of the VN-INDEX from Investing.com using Python's Beautiful Soup library.

After that, the study combined the text information and labeled the articles according to 3 levels: increase, decrease, unchanged, to facilitate the research in the next steps. The author removed redundant words and stop words by using Vietnamese word segmentation tool Word_tokenizer of Underthesea library - a tool with 90% accuracy rate in encoding Vietnamese sentences. The processed news documents will be included in the Feature Selection. In this step, the author used TF-IDF method to filter out 1024 characteristic words from the data set, which are the most characteristic words to help machine models learn from based on which to give classification results the most exactly.

Those data will be put into the Training program on 2 datasets with the rate of 70:30. After being trained, the author carried out Model Test to select the optimal model and the best input data set, in order to improve the research results. Removing reduntdant character. Historical (punctuation, number, ) price VN- TNDEX ee News ~ 70,000 | 1: Decrease (2001-2021) 2:No increase, no decrease Removing Stopword 3 Representation in ‘A PROCESSING Vector Space Ũ t t 1 Ũ 1 ' Train — test split 1 Ũ 1 ' 70:30 ' ! 1 ' 1 ' 4 models ' TESTING MODEL TRAINING DATA ' | Decision Tree, Random Forest, K- h |_ | Nearest Neighbor, Support Vector i t Machine 1 Ũ 1 ' 1 Ũ 1 ' ' t 1 Input data Optimized ' 1 Ũ 1 ' ' Ũ 1 ' 1 ' 1 CHAPTER 1: THEORETICAL BASIS AND LITERATURE REVIEW 1.

Stock market analysis 1. Fundamental analysis Fundamental analysis (FA) is a method of measuring a security's intrinsic value by examining related economic and financial factors. Fundamental analysts study anything that can affect the security's value, from macroeconomic factors such as the state of the economy and industry conditions to microeconomic factors like the effectiveness of the company's management.

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

Tài liệu có tiêu đề Dự Đoán Thị Trường Chứng Khoán Việt Nam Bằng Phương Pháp Khai Thác Dữ Liệu cung cấp cái nhìn sâu sắc về việc áp dụng các phương pháp khai thác dữ liệu để dự đoán xu hướng thị trường chứng khoán tại Việt Nam. Tài liệu này không chỉ trình bày các kỹ thuật và mô hình phân tích mà còn nhấn mạnh tầm quan trọng của việc sử dụng dữ liệu lớn trong việc đưa ra quyết định đầu tư thông minh. Độc giả sẽ tìm thấy những lợi ích thiết thực từ việc hiểu rõ hơn về cách thức hoạt động của thị trường chứng khoán, cũng như cách mà các phương pháp khai thác dữ liệu có thể giúp tối ưu hóa chiến lược đầu tư.

Để mở rộng kiến thức của bạn về lĩnh vực này, bạn có thể tham khảo thêm tài liệu Khóa luận tốt nghiệp deep learning for predicting stock market index, nơi trình bày các ứng dụng của học sâu trong việc dự đoán chỉ số thị trường chứng khoán. Ngoài ra, tài liệu Luận văn thạc sĩ toán ứng dụng mô hình hồi quy phân vị và một số ứng dụng cũng sẽ cung cấp cho bạn cái nhìn về các mô hình hồi quy có thể áp dụng trong phân tích dữ liệu tài chính. Cuối cùng, tài liệu Luận văn thạc sĩ khoa học máy tính khai phá luật kết hợp với đa ngưỡng hỗ trợ tối thiểu sẽ giúp bạn hiểu rõ hơn về các kỹ thuật khai thác dữ liệu có thể áp dụng trong nhiều lĩnh vực khác nhau, bao gồm cả tài chính. Những tài liệu này sẽ là cơ hội tuyệt vời để bạn đào sâu hơn vào các khía cạnh khác nhau của phân tích dữ liệu và đầu tư.