*LӟL7KLӋX 2.1 Ĉӝng lӵc và bӕi cҧnh: - ;ӃSKҥQJFәSKLӃX 6FRULQJ5DWLQJ OjSKѭѫQJSKiSFKҩPÿLӇPFәSKLӃXGӵDWUrQFiFFKӍVӕWjLFKtQKFӫD FәSKLӃX+LӋQWҥLWURQJWәFKӭFFӫDW{LÿDQJVӱGөQJSKѭѫQJSKiSFKX\rQJLDÿӇ[iF
Trang 1ĈҤI HӐC QUӔC GIA TP HӖ CHÍ MINH TRѬӠNG ĈҤI HӐC BÁCH KHOA -
TRҪN HOÀNG TUҨN ANH
DÙNG HӐC MÁY XӂP HҤNG CӘ PHIӂU BҴNG CÁC CHӌ SӔ TÀI CHÍNH
Trang 2&Ð1*75Î1+ĈѬӦC HOÀN THÀNH TҤI 75ѬӠ1*ĈҤI HӐC BÁCH KHOA ±Ĉ+4*-HCM
Trang 3ĈҤI HӐC QUӔC GIA TP.HCM
I 7Ç1Ĉӄ TÀI:
Dùng Hӑc Máy XӃp Hҥng Cә PhiӃu Bҵng Các ChӍ Sӕ Tài Chính Trong Quá Khӭ
II NHIӊM VӨ VÀ NӜI DUNG:
KӃt hӧp SKѭѫQJSKiS +ӑFPi\ Yj3KkQWtFKWjLFKtQKÿӇ xӃp hҥng cә phiӃu bҵng các chí sӕ tài chính trong quá khӭ
III NGÀY GIAO NHIӊM VӨ: 01/02/2019
IV NGÀY HOÀN THÀNH NHIӊM VӨ: 02/06/2019
Trang 4- /mQKÿҥRF{QJW\FKӭQJNKRiQ91'LUHFW và các phòng ban trong công ty ÿm OX{Q TXDQ WkP ÿӝQJ YLrQ Yj WҥR ÿLӅX NLӋQ FKR W{L WURQJ TXi WUuQKQJKLrQFӭX
- %rQFҥQK ÿyVӵJL~SÿӥFӫDJLDÿuQKEҥQEqYjQJѭӡLWKkQÿmOX{QӫQJKӝYjWҥRÿLӅXNLӋQWӕWQKҩWÿӇtôi FyWKӇWұSWUXQJQJKLrQFӭXYjKRjQWKjQKÿӅWjLQj\
'R YӅ PһW NLӃQ WKӭF Yj WKӡL JLDQ FzQ KҥQ FKӃ OXұQ YăQ FzQ QKLӅX NKLӃPNKX\ӃW7{LPRQJÿѭӧFVӵÿyQJJyS êNLӃQFӫDFiFWKҫ\F{YjPӑLQJѭӡLÿӇOXұQYăQKRjQWKLӋQKѫQ
Trang 51 7yPWҳW
ViӋc kӃt hӧp giӳa Công nghӋ thông tin và Phân tích tài chính giúp giҧm thӡi JLDQSKkQWtFKWăQJÿӝ chính xác và giҧm sӵ phө thuӝFKRjQWRjQYjRQJѭӡi phân tích Sӵ kӃt hӧSQj\ÿmÿѭӧc ӭng dөng rҩt nhiӅu trên thӃ giӟi và tҥo ra FѫKӝi cho các nhà quҧn lý quӻ quҧn lý các tài sҧn hàng tӹ Ĉ{OD
Câu hӓi nghiên cӭu tәng thӇ trong luұQYăQQj\OjOLӋu viӋc áp dөng các thuұt toán hӑc máy có thӇ ÿyQJJySJLiWUӏ trong viӋc phân biӋt các cә phiӃu hoҥt ÿӝng hiӋu quҧ ÿӇ xây dӵng danh mөFÿҫXWѭYѭӧt trӝLKѫQ91,QGH[KRһc mӝt chӍ sӕ ÿҫXWѭNKiFQKѭ91+1;LQGH[ĈӇ trҧ lӡi câu hӓi này, các câu hӓi FRQVDXÿk\VӁ ÿѭӧc nghiên cӭu:
+ KҧQăQJGӵÿRiQFӫDFiFWKXұWWRiQ KӑF Pi\ NKLSKkQELӋWJLӳDFiFFәSKLӃXKRҥWÿӝQJNpPKLӋXTXҧYjKLӋXTXҧ"
+ &yWKӇVӱGөQJFiFFKLӃQOѭӧFÿҫXWѭEҵQJFiFKVӱGөQJFiFWKXұWWRiQKӑFPi\ÿӇ[k\GӵQJGDQKPөFÿҫXWѭYѭӧWWUӝLVRYӟLWKӏWUѭӡQJKRһFPӝWFKӍVӕÿҫXWѭ"
+ &iFWKXұWWRiQKӑFPi\FyWKӇÿyQJJySYjRYLӋFOӵDFKӑQFәSKLӃXWӕWKѫQVRYӟLPӝWF{QJFөFKӑQFәSKLӃXQJүXQKLrQ"
+ &yEҵQJFKӭQJÿiQJNӇQjRYӅPӕLOLrQKӋJLӳDNKҧQăQJGӵÿRiQFӫDFiFWKXұWWRiQKӑFPi\YjOӧLQKXұQGDQKPөFÿҫXWѭÿѭӧFWҥRWӯYLӋFGӵEiRQj\"
Trong thӃ giӟi cӫa hӑc máy, có rҩt nhiӅu thuұt toán hӑc máy có thӇ ÿѭӧc sӱ dөQJÿӇ trҧ lӡi vҩQÿӅ trong luұQYăQQj\0ӝt lӵa chӑn trong sӕ FK~QJÿѭӧc nghiên cӭu trong luұQ YăQ Qj\ Naive Bayes, Logistic Regrssion, Random Forest, Support Vector Machine (SVM)
KӃt quҧ nghiên cӭu cӫa luұQYăQÿmFKRWKҩy giҧi thuұt Randomforest cho kӃt quҧ tӕW KѫQ FiF JLҧi thuұt khác khi áp dөng vӟi bӝ dӵ liӋu cӫa thӏ WUѭӡng chӭng khoán ViӋt Nam tӯ QăPÿӃn 2018 Mһc dù khҧ QăQJGӵ báo chӍ ÿҥt mӭFWUXQJEuQKQKѭQJNӃt quҧ tӯ giҧi thuұt hӑFPi\ÿmJL~SWҥo thành các danh mөc có hiӋu quҧ KѫQFKӍ sӕ tham chiӃu VNindex và VN30
ViӋc xây dӵng và ӭng dөQJÿѭӧc hӋ thӕng kӃt hӧp trên sӁ OjFăQFӭ ÿӇ phát triӇn các phҫn tiӃp theo: Mô hình xӃp hҥng theo ngành, mô hình xӃp hҥng rӫi
ro và dӵ báo
Trang 6Abstracts
The combination of Information Technology and Financial Analysis reduces analysis time, increases accuracy and reduces dependence entirely on analysts This combination has been applied a lot in the world and created opportunities for fund managers to manage billions of dollars of assets
The overall research question in this dissertation is whether the application of machine learning algorithms could make a valuable contribution in distinguishing efficient stocks to build a portfolio that outperforms VNIndex
or another investment indicators such as VN30, HNXindex To answer this question, the following sub-questions will be studied:
+ Predictability of machine learning algorithms when distinguishing between inefficient and efficient stocks?
+ Could we use investment strategies by using machine learning algorithms to build an outstanding portfolio against the market or an investment index?
+ Could machine learning algorithms contribute to stock selection better than a random stock picking tool?
+ Is there any significant evidence of the link between predictability of machine learning algorithms and portfolio returns generated from this prediction?
In the world of machine learning, there are many machine learning algorithms that can be used to answer the problem in this thesis One of them is studied in this thesis: Naive Bayes, Logistic Regrssion, Random Forest, Support Vector Machine (SVM)
The results of the thesis show that the Randomforest algorithm gives better results than other algorithms when applied to the data set of Vietnam stock market from 2010 to 2018 Although the forecasting ability is only achieved average, but the results from machine learning algorithms have helped to create more effective categories of VNindex and VN30 reference index
The construction and application of the above-mentioned combined system will be the basis for developing the following sections: Sector ranking model, risk ranking model and forecast
Trang 7LӡLFDPÿRDQFӫa tác giҧ LuұQYăQ
1JѭӡLFDPÿRDQ
Trang 8MӨC LӨC
1 Tóm tҳt 5
2 Giӟi ThiӋu 9
3 3KѭѫQJ3KiS;Ӄp Hҥng Cә PhiӃX7URQJĈҫX7ѭ&Kӭng Khoán: 13
4 Hӑc Máy 22
5 Dùng Hӑc Máy XӃp Hҥng Cә PhiӃu: 44
6 Thí NghiӋP9jĈiQK*Li.Ӄt Quҧ: 54
7 KӃt Luұn 66
8 Danh Mөc Các Tài LiӋu Tham Khҧo: 68
Trang 92 *LӟL7KLӋX
2.1 Ĉӝng lӵc và bӕi cҧnh:
- ;ӃSKҥQJFәSKLӃX6FRULQJ5DWLQJ OjSKѭѫQJSKiSFKҩPÿLӇPFәSKLӃXGӵDWUrQFiFFKӍVӕWjLFKtQKFӫD FәSKLӃX+LӋQWҥLWURQJWәFKӭFFӫDW{LÿDQJVӱGөQJSKѭѫQJSKiSFKX\rQJLDÿӇ[iFÿӏQKWUӑQJVӕFKRFiFFKӍVӕWjL FKtQK WURQJ P{ KuQK 3KѭѫQJ SKiS FKX\rQ JLD Fy PӝW Vӕ ÿLӇP \ӃXchính:
+ &KѭD[iFÿӏQKÿѭӧF PӭFÿӝKLӋXTXҧFӫD P{KuQKÿӝFKtQK [iFFӫDm{KuQKÿӝFKtQK[iFFKRW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ҫu vào ÿѭӧc chia thành mӝt sӕ hӳu hҥn nhóm Ví dө*PDLO[iFÿӏnh xem mӝt email có phҧi là spam hay không; các hãng tín dөQJ[iFÿӏnh xem mӝt khách hàng có khҧ QăQJWKDQKWRiQQӧ hay không Ba ví dө phía trên ÿѭӧc chia vào loҥi này
+ RegressiRQ+ӗLTX\
NӃu nhãn NK{QJ ÿѭӧc chia thành các nhóm mà là mӝt giá trӏ thӵc cө thӇ Ví dө: mӝWFăQQKjUӝng x m2, có y phòng ngӫ và cách trung tâm thành phӕ z km sӁ có giá là bao nhiêu?
GҫQÿk\0LFURVRIWFyPӝt ӭng dөng dӵ ÿRiQJLӟi tính và tuәi dӵa trên khuôn mһt Phҫn dӵ ÿRiQ JLӟi tính có thӇ coi là thuұt toán Phân loҥi, phҫn dӵ ÿRiQWXәi có thӇ coi là thuұt toán Hӗi quy Chú ý rҵng phҫn dӵ ÿRiQWXәLFNJQJFyWKӇ coi là Phân loҥi nӃu ta coi tuәi là mӝt sӕ nguyên GѭѫQJNK{QJOӟQKѫQFK~QJWDVӁ có 150 class (lӟp) khác nhau
- 8QVXSHUYLVHG/HDUQLQJ+ӑFNK{QJJLiPViW
7URQJWKXұWWRiQQj\FK~QJWDNK{QJELӃWÿѭӧFNӃWTXҧ KD\QKmQPjFKӍFyGӳOLӋXÿҫXYjR7KXұWWRiQKӑFNK{QJJLiPViW VӁGӵDYjRFҩXWU~FFӫDGӳ OLӋX ÿӇ WKӵF KLӋQ PӝW F{QJ YLӋF QjR ÿy Yt Gө QKѭ SKkQ QKyPFOXVWHULQJ KRһFJLҧPVӕFKLӅXFӫDGӳOLӋXGLPHQVLRQUHGXFWLRQ ÿӇWKXұQWLӋQWURQJYLӋFOѭXWUӳYjWtQKWRiQ
0ӝWFiFKWRiQKӑF+ӑFNK{QJJLiPViW là khLFK~QJWDFKӍFyGӳOLӋXYjR
;PjNK{QJELӃWQKmQ<WѭѫQJӭQJ
1KӳQJWKXұWWRiQORҥLQj\ÿѭӧFJӑLOj+ӑFNK{QJJLiPViW YuNK{QJJLӕQJQKѭ+ӑFFyJLiPViWFK~QJWDNK{QJELӃWFkXWUҧOӡLFKtQK[iFFKRPӛLGӳOLӋXÿҫXYjR*LӕQJQKѭNKLWDKӑFNK{QJFyWKҫ\F{JLiRQjRFKӍFKRWDELӃWÿyOjFKӳ$KD\FKӳ%&өPNK{QJJLiPViWÿѭӧFÿһW WrQWKHRQJKƭDnày
Các bài toán +ӑFNK{QJJLiPViW ÿѭӧFWLӃSWөFFKLDQKӓWKjQKKDLORҥL + Clustering (phân nhóm)
Mӝt bài toán phân nhóm toàn bӝ dӳ liӋu X thành các nhóm nhӓ dӵa trên sӵ liên quan giӳa các dӳ liӋu trong mӛi nhóm Ví dө: phân nhóm khách hàng dӵDWUrQKjQKYLPXDKjQJĈLӅXQj\FNJQJJLӕQJQKѭYLӋc WDÿѭDFKRPӝWÿӭa trҿ rҩt nhiӅu mҧnh ghép vӟi các hình thù và màu sҳc khác nhau, ví dө tam giác, vuông, tròn vӟLPjX[DQKYjÿӓVDXÿyyêu cҫu trҿ phân chúng thành tӯng nhóm Mһc dù không cho trҿ biӃt mҧQKQjRWѭѫQJӭng vӟi hình nào hoһc màu nào, nhiӅu khҧ QăQJFK~QJvүn có thӇ phân loҥi các mҧnh ghép theo màu hoһc hình dҥng
+ Association
Là bài toán khi chúng ta muӕn khám phá ra mӝt quy luұt dӵa trên nhiӅu dӳ liӋX FKR WUѭӟc Ví dө: nhӳng khách hàng nam mua quҫn áo WKѭӡQJFy[XKѭӟQJPXDWKrPÿӗng hӗ hoһc thҳWOѭQJQKӳng khán giҧ [HPSKLP6SLGHU0DQWKѭӡQJFy[XKѭӟng xem thêm phim Bat Man,
Trang 25dӵD YjR ÿy Wҥo ra mӝt hӋ thӕng gӧi ý khách hàng (Recommendation 6\VWHP WK~Fÿҭy nhu cҫu mua sҳm
- Semi-SuSHUYLVHG/HDUQLQJ+ӑFEiQJLiPViW
Các bài toán khi chúnJWDFyP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