Stock Market Tendency Forecasting Based on Optimized SVM Using GA
- Author
- ZhangWei
- Advisor
- LanShuMei
- School
- Jilin University
- Major
- Applied Computer Technology
- Classification
- F830.91 Securities market
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 470
- Citations
- 1
Abstract
As an important part of the financial markets, the stock market plays an important role for the stable development of China’s economy. As a means of capital accumulation, the stock attracts millions of investors from its birth. Stock price forecasting is a hot issue of financial forecasting. A large number of financiers, computer experts and scholars generated great interest, and they attempted a lot of theories and methods to predict the trend of stock market.Currently, there are many stock prediction methods mainly including traditional methods, artificial neural networks(ANNs) and support vector machine(SVM).However,due to the complexity of the internal structure of the stock price system and the changeability of the external factors, the results of traditional forecasting methods, which simulate and predict the object pattern in linear model, are not satisfactory. ANNs imitating the human brain mechanism is a good parameter estimation method and has good nonlinear approximation ability. But ANNs is prone to leading local extremum and overfitting, and it’s forecasting results are not very stable.SVM method is a new widely-used machine learning method especially for limited sample datasets within the framework of statistical learning theory. SVM achieves the structural risk minimization and it has solved local extremum and overfitting problems.SVM has a good generalization ability and is an excellent prediction method. In this paper, SVM was applied in forecasting the tendency of stock. The stock tendency can be labeled as“up”or“down”in modeling. So the stock tendency forecasting is converted to two-classification problems, and SVM is initially studied in pattern recognition for linear separable two-classification problem. In modeling by SVM, we need to select the kernel function, determine the parameter’s value, extract the features and pretreat the sample datasets.SVM is regarded as the best classifier for the limited sample datasets, however, a large number of features would affect not only the convergence speed, but also the accuracy of classification algorithms if there were some redundant features. The kernel parameter ? and penalty factor C also have great impact to the accuracy of forecasting by SVM. Therefore, in order to forecast accurately and fast, correctly setting the kernel function parameter ? and penalty factorC , finding the smallest feature sets are critical issues. This process is called the optimization of SVM.For the SVM optimization, genetic algorithms (GA) is undoubtedly a good choice. GA is an adaptive global optimization random search algorithm which is developed from natural selection and genetic mechanism and has a strong global search ability, which does not depend on the specific solution model. In this paper, the optimized SVM using GA method (GA-SVM method) was proposed which combined the basic idea of GA and SVM. The method use GA as a searching algorithm for parameters and features and use SVM to evaluate the searching results of parameters and features. It was proved in our experiment that GA-SVM method could find the best parameters and filter out redundant and irrelevant features. The GA-SVM method has certain advantages not only in forecasting accuracy but also in forecasting speed.This main work is as follows:1. Explain the significance of the stock forecasting. Introduce the status quo of theories research in stock forecasting domestic or abroad. Analyze and summarize the basic theories of stock forecasting.2. Study the statistical learning theory and SVM systematically. First, explain why the experience risk minimization could be replaced by structural risk minimization and introduce the most important conception of Vapnik-Chervonenkis dimension and generalization bound in statistical learning theory. Then, introduce modeling and theory of SVM which is a representation of the statistical learning theory. SVM has good generalization ability for limited training sample datasets, and it solutes the dimension disaster in the high-dimensional feature space by turning the inner product operation in high-dimensional feature space into the kernel function computation in the low-dimensional space function.3. Establish the stock prediction model by SVM. First, determine the kernel function and the parameters in SVM modeling; Then select the feature by experience; Finally, normalize the sample data to improve the speed.4. Establish the stock forecasting model by GA-SVM method. First, the features was coded in binary mode. Each feature was taken as one gene corresponding to one binary bit.Then, generate population randomly and calculate its fitness value. We adopted the concept of sensitivity and specificity in diagnosis and adjusted their weight to strengthen the target of prediction. Finally, compare the results with the termination condition, if not satisfied then generate the next generation of population, calculate the fitness value of the new population, and cycle until satisfied.5. Do experiment to verify the effectiveness of GA-SVM method in stock tendency forecasting. The results were obtained using GASVMMining software the author developed with VC6.0, access database and LibSVM library in Windows XP. The sample datasets were Shanghai composite index data of totally 360 trading days from October 6, 2008 to March 24, 2010 and select 20 features for each sample data. We compared the results of forecasting by GA-SVM with by SVM method, with by traditional method and with by BP method. It was proved by the experiment that GA-SVM method reduced computational complexity and improved forecasting accuracy by optimizing the parameters and filtering out the redundant features.6. Summarize the work in this study. Summarize the work and find the inadequate part and give some reasonable prospect in later research.Above all, this paper has completed the whole process for stock tendency forecasting of modeling - optimization - evidence, and designed and developed a smart stock forecasting software. This research confirms that GA-SVM method is feasible in China’s stock market forecast, and offers certain technology reserve to future research.
Table of contents
Summary 4-8
Chapter 1 Introduction 8-14
1.1 background and significance 8
1.2 research status at home and abroad 8-12
1.2.1 investment analysis 8-9
1.2.2 traditional statistical methods 9-10
1.2.3 artificial Neural Network 10-11
1.2.4 support Vector Machine content and innovation 11-12
1.3 article 12-14
1.3.1 content and structural 12
1.3.2 the main innovation theoretical foundation nbsp 12-14
Chapter 2 algorithm ; 14-23
2.1 statistical learning theory and SVM 14-20
2.1.1 machine learning basic questions 14-15
2.1.2 statistical learning theory 15-18
2.1.3 SVM 18-20
2.2 genetic algorithm 20-22
2.2.1 Overview 20
2.2.2 basic genetic algorithm ideology and basic terminology 20-21
2.2.3 GA framework 21-22
2.3 Summary 22-23
Chapter 3 SVM prediction model established 23-30
3.1 Overview 23
3.2 SVM elements selected 23-26
3.2.1 kernel 23-24
3.2.2 kernel parameter σ 24-25
3.2.3 penalty factor C 25-26
3.2.4 loss of function parameters ε acquisition and processing 26
3.3 samples 26-28
3.3.1 sample extraction feature 26-27
3.3.2 sample data collection 27-28
3.3.3 sample pretreatment 28
3.4 SVM modeling process 28-29
3.5 Summary 29 - 30
Chapter 4 GA optimized SVM algorithm 30-39
4.1 Overview 30
4.2 optimized theoretical foundation 30-32
4.2.1 GA advantage 30-31
4.2.2 optimized SVM parameters 31
4.2.3 optimization feature selection 31-32
4.3 optimization model 32-37
4.3.1 GA model 32-34
4.3.2 GA optimized SVM parameters 34-35
4.3. 3 GA optimization feature selection 35-36
4.3.4 GA-SVM optimization process 36-37
4.4 Summary 37-39
Chapter 5 Empirical research 39-46
5.1 experimental preparation 39-41
5.1.1 sample Data select 39
5.1.2 samples pretreatment 39-40
5.1.3 experimental environment 40-41
5.1.4 main parameters 41
5.2 experimental content and process 41-44
5.2.1 experimental content 41-42
5.2.2 experiment 42-44
5.3 experimental results and analysis 44-45
5.3.1 experimental results 44
5.3.2 analysis 44-45
5.4 Summary 45-46 <br / > Chapter 6 summary and Outlook 46-48
6.1 summarizes 46-47
6.2 Prospects 47-48
References 48-51
Thanks 51-52
Summary 52-54
ABSTRACT 54-56
Related dissertations
- Research on the Investment Decision of Chinese Financial Market Based on Chaos Theory
- Research of Short Selling Trading Strategies Based on Copula Theory
- Modeling and Optimization Method Research of Bundle-size Pricing for Online Content
- Study on Partner Selection and Coordination Problem in Green Supply Chain Network
- Research on the Model of Joint Managed Inventory Based on Genetic Algorithm with the OEM Enterprise
- Study on Measurement of Aviation High-tech Enterprises Versatile Personnel Competency Position Fit
- A Study on China’s Commercial Bank Assets Allocation Based on the Stochastic Programming Model
- Design of Arbitrage Strategy Based on Stock Index Futures
- Research on Optimization for Reconfigurable Facilities Layout of Cellular Production
- Research on Index Futures Arbitrage in a Nonlinear Framework
- A Study of Early Warning System of New Media Events Based on New Genetic Algorithm
- Bridge Health Monitoring System Based on Damage Analysis
- Research of Control System and Scheduling Algorithm of Intensive Automatic Shelves
- Research on Industrial Time Delay Object Based on Model Prediction Control
- Study on Nonlinear Dynamic Modeling Measurement and Control Problems for Precision Pointing Mechanisms
- Research on Intelligent Air Combat Decision Making System Based on Conflict Analysis
- Design and Simulation of Fractional Order Controller
- Gait and Route Plan of Quadruped Robot
- A Structural Optimization of Spraying Robot Based on the Deformation Errors Control
- The Research Which Based on the Genetic Algorithm of EFPI Optical Fiber Sensing Technology