CN105844347A - Individual stock index prediction method based on Lagrange multiplier method - Google Patents
Individual stock index prediction method based on Lagrange multiplier method Download PDFInfo
- Publication number
- CN105844347A CN105844347A CN201610154466.6A CN201610154466A CN105844347A CN 105844347 A CN105844347 A CN 105844347A CN 201610154466 A CN201610154466 A CN 201610154466A CN 105844347 A CN105844347 A CN 105844347A
- Authority
- CN
- China
- Prior art keywords
- point
- rank
- stock index
- lagrange
- represent
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Game Theory and Decision Science (AREA)
- Technology Law (AREA)
- Entrepreneurship & Innovation (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
An embodiment of the invention discloses an individual stock index prediction method based on a Lagrange multiplier method. The method comprises the following steps of recording historical data of a highest point, a lowest point, an opening quotation point and a closing quotation point of an individual stock index in the past period of working days; using the Lagrange multiplier method to carry out fitting on all the historical data average trends; constructing a Lagrange function, determining to fit a triple-order polynomial and each coefficient and marking a fitted curve stationary point; extending a fitting curve so as to classify a subsequent trend; and according to different classifications and trend changes, predicting a subsequent stock index. In the embodiment of the invention, during individual stock index prediction, a triple-order polynomial function is used to carry out fitting; during a fitting process, the historical data of the opening quotation point, the closing quotation point, the highest point and the lowest point of an individual stock is used so that a prediction trend and a fluctuation interval are provided for a user, and high operation efficiency is possessed.
Description
Technical field
The present invention relates to field of computer technology, especially relate to a kind of single stock index based on lagrange's method of multipliers pre-
The method surveyed.
Background technology
China Stock Markets, through the development of nearly 20 years and perfect, have been achieved with huge achievement.It is known that stock has
Still there is great risk however stock market has still attracted the participation of countless stock invester the highest return rate.But stock
The people can be uneven to the analysis of stock, how to reduce risk by reasonable prediction analysis, seeks maximum benefit, become and seek
Look for the emphasis in the prediction of reasonable stock index method.
Prediction of stock indices occupies critical role in equity investment field, although there being a variety of software for analysing stock,
But the major function collection of current the type software provides real-time market to update with information data, and for stock for intelligence
Deficiency in the exploitation of energy analysis decision.And stock index conversion amplitude is big in practice, changing factor is many, and change instability can be right
How user selects stock to cause tremendous influence.
At present, a lot of stock index forecasting methods are all based on the Forecasting Methodology of neutral net, and this method just has preferably
Network structure, but variable chooses difficulty, and influence factor is numerous, and pace of learning is slow, so it is automatic to realize this kind of algorithm with machine
Change operation stock exchange and there is the least difficulty.But major part user wish to find a kind of can intellectual analysis and the prediction of decision-making
How method, find one reasonable prediction stock index can be prone to again computer implemented Forecasting Methodology with needs.
Summary of the invention
A kind of method that it is an object of the invention to provide single prediction of stock indices based on lagrange's method of multipliers, energy
Enough reach to predict the purpose that single stock index changes.
In order to solve the problems referred to above, the present invention proposes a kind of single prediction of stock indices based on lagrange's method of multipliers
Method, including:
To the peak of single stock index in one period of working day of past, minimum point, opening quotation point, the history number of closing quotation point
According to carrying out record;
Utilize lagrange's method of multipliers that all historical data average tendency are fitted;
Structure Lagrangian determines the curve stationary point after matching three rank multinomial and each term coefficient labelling matching;
Extend matched curve follow-up trend is classified;
According to different classification and Long-term change trend, follow-up stock index is predicted.
Described to going through that the peak of single stock index in one period of working day of past, minimum point, opening quotation point, closing quotation are put
History data carry out record and include:
(xj,yi), i=j=1,2,3...80
Wherein xjRepresent time, yiRepresenting single stock index, i, j represent one section respectively and workaday always count, and totally eight ten
Individual point.
Curve after described structure Lagrangian determines matching three rank multinomial and each term coefficient labelling matching is stayed
Point includes:
Choosing three rank polynomial fitting types is:
Y=f (x, a0,a1,a2,a3)=a0+a1x+a2x2+a3x3+e
Wherein a0,a1,a2,a3Representing the three each term coefficient of rank polynomial fitting, x represents single stock index, and y represents the time,
Variable e is the error between the actual function of fitting function and single stock index.
Described structure cubic polynomial is about the Lagrangian of error sum of squares e:
Wherein: a0,a1,a2,a3Represent the three each term coefficient of rank polynomial fitting, yiRepresent single stock index, xjWhen representing
Between, variable e is the error between the actual function of fitting function and single stock index, and i represented in one period of working day in the past
Measuring point sum, totally eight ten points, k represents Mon-Fri measuring point sum.
Described method also includes:
Make described error sum of squares minimum so that it is determined that matching three rank multinomial and each term coefficient and most preferably approach its calculating
Process is:
Try to achieve the expression formula of optimal three rank approximation by polynomi-als under lagrange's method of multipliers:
Y=a0+a1x+a2x2+a3x3
WhereinRepresent respectively to a0,a1,a2,a3Ask partial derivative, a0,a1,a2,a3Represent three rank polynomial fittings every
Coefficient, yiRepresent single stock index, xjRepresenting the time, variable e is between the actual function of fitting function and single stock index
Error, i represents the measuring point sum in the past one period of working day, and totally eight ten points, it is total that k represents Mon-Fri measuring point
Number.
Described method also includes:
Analyze three rank polynomial curves after matching, make respectively
Wherein y represents single stock index, and x represents the time,Represent the three polynomial first derivatives in rank,Represent
The three polynomial second dervatives in rank;
Calculate three polynomial fitting curve stationary point, rank and extreme points, bent to three rank multinomials with extreme point situation according to stationary point
Line trend is categorized as rising, declines, maintain an equal level three kinds of trend, according to different classification and Long-term change trend to follow-up single stock index
It is predicted.
By implementing the embodiment of the present invention, intend single prediction of stock indices have employed three rank polynomial functions
Close, fit procedure make use of the opening quotation point of single stock, point of closing, peak, the historical data of minimum point, it is possible to for user
Provide anticipation trend and waving interval, and there is the highest operation efficiency.Can be user by three rank fitting of a polynomials
There is provided the trend prediction that single stock changes, it is also possible to provide interval to the peak of single stock with the fluctuation range of minimum point
Prediction.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to
Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the method flow of based on lagrange's method of multipliers the single prediction of stock indices in the embodiment of the present invention
Figure;
Fig. 2 is stock certificate data schematic diagram in the use three rank fitting of a polynomial surrounding in the embodiment of the present invention;
Fig. 3 is the three rank multinomials that the prediction next day of trade single stock index in the embodiment of the present invention rises situation
Functional image;
Fig. 4 is the three rank polynomial functions that the prediction next day of trade stock index in the embodiment of the present invention declines situation
Image;
Fig. 5 is that the wherein red curve in the embodiment of the present invention represents the next one day of trade various feelings of single stock index
Most preferably approaching of condition.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
Lagrange's method of multipliers is to solve the important method in mathematical optimization problem, by the function of many variables at arbitrary finite or
The one-to-one relationship between extreme point and Lagrangian extreme point under multiple constraintss, thus find Lagrange
Function Extreme Value point the most just have found function of many variables extreme point under these constraintss.
The character that the single stock index of the present invention is relevant to historical data factor, structure Lagrangian is given about going through
Most preferably approaching of history data, by most preferably approaching the subsequent prediction providing single stock index.
The present invention asks conditional extremum structure convenient lagrange's method of multipliers, and machine realizes easy feature and utilizes with single
Prediction of stock indices field, by the pass series structure Lagrange of three rank multinomials with error sum of squares e during matching historical data
Function, and curve after matching is analyzed, the present invention is capable of the prediction to single stock index.
Fig. 1 is the method flow diagram of based on lagrange's method of multipliers the single prediction of stock indices in present example,
The present invention to implement step as follows;
Mon-Fri stock index curve generalization historical data in S101, record surrounding;
From past surrounding from the Mon-Fri peak of label stock index day by day, minimum point, opening quotation point, closing quotation
Point, totally eight ten measuring points are recordable is
(xj,yi), i=j=1,2,3...80
Wherein xjRepresent time, yiRepresent stock index.
S102, utilize lagrange's method of multipliers that all historical data general trends are fitted;
Choosing three rank polynomial fitting types is:
Y=f (x, a0,a1,a2,a3)=a0+a1x+a2x2+a3x3+e
Wherein e is error sum of squares.
S103, determine the curve stationary point after matching three rank multinomial and each term coefficient labelling matching;
Structure cubic polynomial and the Lagrangian of error sum of squares e:
Make described error sum of squares minimum so that it is determined that matching three rank multinomial and each term coefficient and most preferably approach its calculating
Process seeks partial derivative for term coefficient each to multinomial:
Above equation is expressed as matrix form can obtain:
Thus can obtain three each term coefficient a of rank multinomial0,a1,a2,a3。
S104, extend matched curve be categorized as follow-up trend rising, decline, fair three kinds of trend;
Three polynomial fitting curve stationary point, rank and extreme points are calculated according to first derivative and second dervative.According to stationary point and pole
Three rank polynomial curve trend are categorized as rising, decline by value point situation, maintain an equal level three kinds of trend.Computing formula is:
S105, according to different classification and Long-term change trend, follow-up stock index is predicted;
According to the three possible situations of the rank follow-up exponential trend of multinomial stock after matching, as shown in Figures 2 to 5, Fig. 2 is this
Stock certificate data schematic diagram in the fitting of a polynomial surrounding of bright use three rank, wherein Fig. 3 refers to for the prediction next day of trade single stock
Three rank polynomial function images of number rising situation, Fig. 4 is that three rank of prediction next day of trade stock index decline situation are many
Item formula functional image, Fig. 5 is that wherein red curve represents most preferably forcing the next day of trade various situation of single stock index
Closely.
To sum up, the present invention is fitted have employed three rank polynomial functions in single prediction of stock indices, fit procedure
In make use of the opening quotation point of single stock, point of closing, peak, the historical data of minimum point, it is possible to provided the user prediction
Trend and waving interval, and there is the highest operation efficiency.Single stock can be provided the user by three rank fitting of a polynomials
The trend prediction of ticket change, it is also possible to provide interval prediction with the fluctuation range of minimum point to the peak of single stock.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
Completing instructing relevant hardware by program, this program can be stored in a computer-readable recording medium, storage
Medium may include that read only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
It addition, above based on lagrange's method of multipliers the single prediction of stock indices that the embodiment of the present invention is provided
Method is described in detail, and principle and the embodiment of the present invention are set forth by specific case used herein, with
The explanation of upper embodiment is only intended to help to understand method and the core concept thereof of the present invention;General simultaneously for this area
Technical staff, according to the thought of the present invention, the most all will change, in sum,
This specification content should not be construed as limitation of the present invention.
Claims (6)
1. the method for a single prediction of stock indices based on lagrange's method of multipliers, it is characterised in that including:
The peak of single stock index in one period of working day of past, minimum point, opening quotation point, the historical data of closing quotation point are entered
Row record;
Utilize lagrange's method of multipliers that all historical data average tendency are fitted;
Structure Lagrangian determines the curve stationary point after matching three rank multinomial and each term coefficient labelling matching;
Extend matched curve follow-up trend is classified;
According to different classification and Long-term change trend, follow-up stock index is predicted.
2. the method for single prediction of stock indices based on lagrange's method of multipliers as claimed in claim 1, it is characterised in that
The described historical data putting the peak of single stock index in one period of working day of past, minimum point, opening quotation point, closing quotation is entered
Row record includes:
(xj,yi), i=j=1,2,3...80;
Wherein xjRepresent time, yiRepresenting single stock index, i, j represent one section respectively and workaday always count, totally eight ten
Point.
3. the method for single prediction of stock indices based on lagrange's method of multipliers as claimed in claim 2, it is characterised in that
Curve stationary point after described structure Lagrangian determines matching three rank multinomial and each term coefficient labelling matching includes:
Choosing three rank polynomial fitting types is:
Y=f (x, a0,a1,a2,a3)=a0+a1x+a2x2+a3x3+e
Wherein a0,a1,a2,a3Representing the three each term coefficient of rank polynomial fitting, x represents single stock index, and y represents time, variable e
For the error between the actual function of fitting function and single stock index.
4. the method for single prediction of stock indices based on lagrange's method of multipliers as claimed in claim 3, it is characterised in that
Described structure cubic polynomial is about the Lagrangian of error sum of squares e:
Wherein: a0,a1,a2,a3Represent the three each term coefficient of rank polynomial fitting, yiRepresent single stock index, xjRepresent the time, become
Amount e is the error between the actual function of fitting function and single stock index, and i represents the measuring point in one period of working day in the past
Sum, totally eight ten points, k represents Mon-Fri measuring point sum.
5. the method for single prediction of stock indices based on lagrange's method of multipliers as claimed in claim 4, it is characterised in that
Described method also includes:
Make described error sum of squares minimum so that it is determined that matching three rank multinomial and each term coefficient and most preferably approach its calculating process
For:
Try to achieve the expression formula of optimal three rank approximation by polynomi-als under lagrange's method of multipliers:
Y=a0+a1x+a2x2+a3x3
WhereinRepresent respectively to a0,a1,a2,a3Ask partial derivative, a0,a1,a2,a3Represent the three each term coefficient of rank polynomial fitting,
yiRepresent single stock index, xjRepresenting the time, variable e is the mistake between the actual function of fitting function and single stock index
Difference, i represents the measuring point sum in one period of working day in the past, totally eight ten points, and k represents Mon-Fri measuring point sum.
The method of based on lagrange's method of multipliers single prediction of stock indices the most as claimed in claim, it is characterised in that
Described method also includes:
Analyze three rank polynomial curves after matching, make respectively
Wherein y represents single stock index, and x represents the time,Represent the three polynomial first derivatives in rank,Represent three rank many
The second dervative of item formula;
Calculate three polynomial fitting curve stationary point, rank and extreme points, with extreme point situation, three rank polynomial curves are become according to stationary point
Gesture is categorized as rising, declines, maintain an equal level three kinds of trend, carries out follow-up single stock index according to different classification and Long-term change trend
Prediction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610154466.6A CN105844347A (en) | 2016-03-16 | 2016-03-16 | Individual stock index prediction method based on Lagrange multiplier method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610154466.6A CN105844347A (en) | 2016-03-16 | 2016-03-16 | Individual stock index prediction method based on Lagrange multiplier method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105844347A true CN105844347A (en) | 2016-08-10 |
Family
ID=56588311
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610154466.6A Pending CN105844347A (en) | 2016-03-16 | 2016-03-16 | Individual stock index prediction method based on Lagrange multiplier method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105844347A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109191291A (en) * | 2018-07-26 | 2019-01-11 | 阿里巴巴集团控股有限公司 | A kind of method and device adjusting polling schemas |
CN111210353A (en) * | 2020-01-08 | 2020-05-29 | 高盈量化云科技(深圳)有限公司 | Intelligent triggering and informing method |
-
2016
- 2016-03-16 CN CN201610154466.6A patent/CN105844347A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109191291A (en) * | 2018-07-26 | 2019-01-11 | 阿里巴巴集团控股有限公司 | A kind of method and device adjusting polling schemas |
CN111210353A (en) * | 2020-01-08 | 2020-05-29 | 高盈量化云科技(深圳)有限公司 | Intelligent triggering and informing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Anh et al. | Econometrics for financial applications | |
CN109741177A (en) | Appraisal procedure, device and the intelligent terminal of user credit | |
CN109086930A (en) | A kind of user power utilization behavior analysis method based on electric power K line chart and depth network | |
CN107818386A (en) | Power grid enterprises' Operating profit Forecasting Methodology | |
Fisichella et al. | Can deep learning improve technical analysis of forex data to predict future price movements? | |
CN115310782A (en) | Power consumer demand response potential evaluation method and device based on neural turing machine | |
CN110135643A (en) | Consider the Short-term Load Forecast method of steel forward price and Spot Price factor | |
CN113449919A (en) | Power consumption prediction method and system based on feature and trend perception | |
Mathew et al. | Demand forecasting for economic order quantity in inventory management | |
CN105844347A (en) | Individual stock index prediction method based on Lagrange multiplier method | |
CN117575663A (en) | Fitment cost estimation method and system based on deep learning | |
Vahdani et al. | A neural network model based on support vector machine for conceptual cost estimation in construction projects | |
CN110335160A (en) | A kind of medical treatment migratory behaviour prediction technique and system for improving Bi-GRU based on grouping and attention | |
CN102065449A (en) | Method for predicting mobile communication telephone traffic based on clustered LS-SVM (Least Squares-Support Vector Machine) | |
Livas-García et al. | Forecasting of locational marginal price components with artificial intelligence and sensitivity analysis: A study under tropical weather and renewable power for the mexican southeast | |
Pai et al. | Rough set theory with discriminant analysis in analyzing electricity loads | |
CN107491841A (en) | Nonlinear optimization method and storage medium | |
Hou et al. | Stock price prediction based on Grey Relational Analysis and support vector regression | |
Li | Prediction of house price index based on machine learning methods | |
CN107451866A (en) | A kind of method and device for the sales data that commodity are predicted using meteorological data | |
Yoon et al. | Methodology for Improving the Performance of Demand Forecasting Through Machine Learning | |
Kang et al. | Performance evaluation model of agricultural enterprise technology innovation based on GA-BP neural network | |
Chang et al. | Probe of the replenishment strategy and grouping rule in the semiconductor industry | |
Supriyanto | Comparison of Grid Search and Evolutionary Parameter Optimization with Neural Networks on JCI Stock Price Movements during the Covid 19 | |
Zhao et al. | Forecasting regional short-term freight volume using QPSO-LSTM algorithm from the perspective of the importance of spatial information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160810 |
|
RJ01 | Rejection of invention patent application after publication |