Fuzzy Logic Based Stock Value Prediction using Fundamental Analysis

Stock market is very versatile and fluctuates with time. For the same way it becomes difficult to predict movement of the stock, there are various approaches and tools through which the price of the stock is determined by the past patterns. Mostly the approaches are in terms of fundamental approach and technical approach. For the long-term valuation fundamental approach is used. Every stock is having its own value that does not depend on the price of the stock that is known as Intrinsic value. The proposed model works through phases of data collection, feature processing, fuzzy logic mapping and stock value calculation. Fuzzy logic is used to map the quality as well as quantity valuation factors. The IF THEN rules are applied on the linguistic variable. The fuzzy model outcomes the stock value which is used to provide stock worth. The stock value is calculated by Dividend discount model. Accuracy of the system is 0.77. The results offer the backbone for the value and not the price.

Recently there is lots of technical work have been updated in the research area of prediction 1 .Stock prediction is the field where stock price is considered as the means of profit.In this business money is input as well as output.According to the Ben Graham, the investment operation is nothing but to maintain surety of the stock as safe principal along with continuous profit margin on the principal.Investors today are habitual with expert systems to handle the complex operations strategies for valuation.There are the two common approaches where the stock price prediction is done by the Investors, Short term approach and long term approach.Price of the stock fluctuates in the short run of the stock and investors uses their benefits.In the long term the stock fluctuation is not considered as the means for the investment.The Intrinsic value depends on the fundamentals not on the external parameters such as election, draught etc. Fundamentals of the stock include P/E ratio, eps growth, sales growth, return on assets, operating margin etc.It is very strict to step in to shoes of the old school person in investing by an accurate incantation algorithm.That makes valuable incomes for financial affair firms, indicating a gat a handle on something relationship surrounded by the certainty of the incantation algorithm and the prosperity made from by the algorithm.
There is a difference between stock value and its price.Price is that shows the trading value and stock value is an underlying value irrespective of the trading price that does not depend on the current state of the stock price 2 .Mostly the emotions of the traders and the rumors affect the price.Investors work is to analyze the values compare it with the prices according to margin of safety make Investment or sell them.Determining accomplishment of technical approach is absolutely difficult merit its subjective quality of these practices 3 .
The illusion of financial market indicators is a tenor of full practical accomplishment and, if prosperous, commit involve enormous pecuniary rewards.Many classifiers have been second hand for several ages in the levy of investments, everything being equal of their right to notice patterns of process that are not lavishly observable.Much of this has been proprietary for the indisputable reason that the users hast a preference for to take bulk of the point of view into the market that they gained over the handle of new technology.

Related works
Konstantinos N. Pantazopoulos et al. clearly assess the energy of neurofuzzy modeling in the background of financial divination and management.They had perceived two cases.Neurofuzzy prediction approaches are used smoothly to expect financial variables in a style that is stunning from an investment incorporate of view 4 .Lixin Yu and Yan-Qing Zhang eventually work on recurrent neural networks and recurrent fuzzy networks.In their act, a genetic recurrent fuzzy program based on the arrangement of RSONFIN is studied.Many supervised study algorithms have been proposed for recurrent network trainings 5 .Kai Keng Ang and Chai Quek proposes a model that the industry profits is more significant to an investor than statistical stance, these neuro-fuzzy systems are concerted as the lurking predictor ideal in forecasting stock rate difference by the whole of a anticipate bottleneck ad hoc transaction decision model using approaching average trading rules.Stock prices of NOL and DBS are considered as experiment 6 .Ahmed, Raaffat and Nevins (2007) propose a paper coming a multi press and fuzzy logic ideal for stock market decision making based on modern analysis.The ideal was tuned and modified for genetic algorithms.The DSS was entire into a public relations consultant based on frame function to gain the stock taste retrieval style, and forthcoming accessible through the Internet.NASDAQ stock exchange data is gathered.Technical Analysis approach is used 7 .Lean Yu, Huanhuan et al. work on an evolving LSSVM epitome integrating LSSVM and EAs which is use to perceive stock market tendency.It is value noting, anyway, that the approaching evolving LSSVM study paradigm could be also improved in the future, a well known as in areas of jointly learning and ensemble.Particularly, on a part two of putting air experiments, they let introduce that the eventual evolving LSSVM ideal not solo maximizes the generalization attitude but furthermore selects a close but no cigar acrimonious ideal evolution by all of LSSVM 8 .Haoming Huang and Chai Quek proposed a system for frugal industry strategy using the value percentage oscillator (PPO) as the potent technical indicator, which is adopted to bring about trading signals in the eventual system.The potent hardship for the HiCEFS predictive ideal is to foresee the infinity PPO in order to nick profit by making preemptive trading transactions.To inspire an ironclad predictive epitome, the hierarchical co evolutionary genetic algorithm is made 9 .Ganesh Bonde, Rasheed Khalid use genetic algorithms, the built-in algorithm was adept to expect better than the evolutionary strategies in all cases.The evolutionary action toward reached a truthfulness of 70% or better in for the most part cases.They used two offbeat datasets for predicting the summer stock prices.The sooner one constitutes training fit and the other constitutes testing set.This course of study is established so that they can verify if over-fitting is occurring or not.The results uncover that overall results has not occurred 10 .Eisuke Kita et al. propose a model in which errors are estimated individually, difference surrounded by the evident and predicted stock prices.Then, the dressed to the network is energetic from both time-series stock outlay data and its incantation errors in decision to expect the stock price.The Bayesian network combination was avid from the time-series stock value data in term to perceive the stock price.In this design, the immediate algorithm is request predicting the stock rate which was once observed 11 .Yanshan Wang and Anam-dong proposed a PCA SVM approach.In this model, they had approach a PCA-SVM integrated ideal to foresee the directions of the stock market indices and the abandoned stock prices.In the ideal, the dominant components identified separately PCA are hand down along mutually internal and external across the counter factors in SVM for forecasting.Exemplar uses KOSPI and HSI.Since their experiments computed the one-day-ahead predictions for rolling windows statement of invent period, the results are not the produce of tentative sample assignment but reliable by the whole of all the accessible information at that time 12 .Khalid Alkhatibet al. use kNN algorithm, the fascination results were bring to a do to obvious prices.Having such pragmatic results for predictions in tenacious, and for per disclosure mining techniques in trustworthy life; this presents a useful indication that the handle of disclosure mining techniques could uphold decision makers at disparate levels when by kNN for data analysis 13 .V. Govindasamy and P. Thambudarai work demonstrates the fruitful capabilities of the Probabilistic Fuzzy Logic act for implementing verdict making tasks in the stock market prediction.It is mainly expected for predicting the infinitesimals direction of stock prices via empirical datasets 14 .Osman Hegazy et al. proposed ABC algorithm, the eventual LSSVM-ABC ideal Convergence to an overall minimum cut back be expected.Also coming ideal recuperates the over-fitting jams which stay in ANN, specifically in status of fluctuations in stock sector.LSSVM-ABC algorithm parameters boot be tuned easily.Optimum ground by the proposed model is over taking than LSSVM-PSO and LSSVM 15 .Wijnand Nuij et al. proposed a framework about genetic system which is used to nab complex market rules based on modern indicators and news-based signals.For this end, we concern three foreshadow horizons when computing the endurance of the market strategies based on the generated returns, namely a well known, three, and five days afterwards the copulation of a competitive or sell signal 16 .V. Govidasamy et al.proposes a divination of events based on Complex Event Processing and Probabilistic Fuzzy Logic which is implemented in real-time Stock Market Prediction.The stock value is predicted mutually higher accuracy.The program will be in a superior way enjoyable for investors as it will devote them act idea as which stock will have more value 17 .Desheng Dash Wuet al propose a model to examine the relationship analysis of sentiment and stock rate volatility orientation at the industry directly.They assorted the verdict of the sentiment-related skepticism interval keeping parameters like GARCH terms and the ARCH terms in the GARCH-SVM models unchanged.Experimental results unspoken that well the values of the censure of the sentimentrelated provision would success accuracy 18 .Partha Roy et al. use fuzzy system in their model.The coming system is good to unconditionally forecast the trend, which was experimented for contradictory set of data of different years.The experimentation was done on NIFTY-50 index values and was stay successful 19 .Rajesh Argiddi et al propose a different pattern discovery models and summarized new enhancements 20 .

Existing Systems
There are two approaches which are interrelated.

dynamic Probabilistic Fuzzy Relation Model (dPFRM)
According to the stock request data dependencies mid event sequences been calculated.Probability distribution work is form to speculate dependencies.Dynamic Probabilistic Fuzzy Relation Model is worked forgetting the non linear and relationships between events to infinity trends.This epitome consists of parameters of both examination approaches a well known as fundamental as abundantly as technical.Indicators such as GDP, Manufacturing Index, Inflation, Interest rate, Govt Policies, S&P 500, PE, EG, Debt to Asset are used 14 .

Probabilistic Fuzzy logic with Complex Event Processing (PFCEP)
Cause and effect relationship is broadly voiced by perplexing event processing.Uncertainty occurs between when unprocessed message is taken.Stock market incantation area uses CEP.The prevalent pupose of complicated event processing is to see out eloquent events.Complex event processing along mutually Probabilistic Fuzzy logic is termed as PFCEP is used for stock rate prediction.This epitome works in three phases Data collection, preprocessing and learning methods.In report accumulation phase disparate statement from online word sources are collected.CEP adaptors are secondhand for accumulation of data.Feature processing phase consists of data preparation Integration and enrichment besides all the data is aggregated into such by agglomeration phase.In learning phase events are mapped to the desired action 17 .
The required outlay for the event precipitation is calculated.The resultant computed price tag is compared mutually threshold value.The epitome is depicted as faster and evident in expression with the quick PFL approach.

Basics for Stock Valuation
There are different factors by which the stock price is calculated 2 .Here are some best factors.1.
Debt to equity.
For a stock its present long term value is considered as future cash flows.Fundamental analysis is easy way to calculate valuation 21

METHOdS
According to the problem statement and Literature work, the implementation of system consists of stock raw dataset.For Investment figure, some dynasty will derive estimates.Among generally estimated values, one figure will link with obvious rate in stock market and one price tag with true value (price).So there are two problems, as a matter of choice to inform current rate in stock market as it is and instant what price would be comeuppance for the stock.This concern is integral analysis approach.This exemplar has gift to travail fundamental analysis of incoming stock based on diverse parameters (attributes).
There are especially three parts are associated -Data Set collection, Feature Processing and Fuzzy Logic 22 .
The Fuzzy Logic component consists of fuzzifier to manual the distinct factors, development base which contains rules and Inference iron horse for execution.

Fuzzifier
A fuzzy set includes characteristic work mathematically represented as m p :P(E)->[0,1].It is also states that factor P(E) belongs to apply F. Membership functions selection request performance of fuzzy logic in Input/output.Fuzzy exist theory assumes membership for analysis.In the fuzzifier, late values are over fuzzified and shuffle linguistic terms which are associated mutually the input linguistic variables.
To enable Data Stream i.e. non fuzzy of sample space is improved by fuzzifier.The hereafter is the membership functions which address respective µ ((x)) aside parameter.A fuzzy inhere includes characteristic function mathematically represented as m p : P(E) -> [0,1].It is further states that component P(E) belongs to set F. Membership functions selection request performance of fuzzy logic in Input/output..The membership functions are used for output m (x) for every stock valuation factor 22 .

Knowledge Base
Knowledge base consists of fuzzy IF… THEN rules.Rules define the decision making process.Where Stock valuation factors are linguistic variables and one, two, three are linguistic terms.

Inference Engine
Inference Engine executes vague logic to map variables from fuzzy sets.When generally told unusual values are fuzzified directed toward their acceptable values, by the agency of knowledge base of operation rules supposition engine prompt morphological values for yield linguistic variables.
Defuzzifier is established if the linguistic values are to be stripped as crisp values.Intrinsic price tag is proposed by Dividend Discount Model (DDM).The Intrinsic value is compared and adequate decision of {Invest, Not Invest} is taken 22 .
The consequently algorithm describes around proposed context stepwise.Stop.

RESULTS ANd dISCUSSIONS
The performance of the classifier in this model is analyzed by Mean Absolute Percentage Error (MAPE), deviation of current and previous stock values and confusion matrix indicators.
The data is checked through the previous five years value calculation and current value.

Graph 1: Stock comparison of current to previous value
The model predicts the satisfactory results as from the figure previous stock price were at 16 and after five years it is 23.The stock is profitable as per the prediction

Error Rate Analysis
The error rate is given by the following formula.

Mean Absolute Percentage Error (MAPE)
=(Actual Value-Predicted value)/Actual value Current model's prediction is FLMain having more accurate on the stock value rather than previous value i.e.FLpre Quality indicators are presenting defuzzification values and by them system can clearly gives the error rate as 0.04 for the current scenario.

Accuracy
Total 150 companies are analyzed by the current system.Results are depicted as following matrix.Out of 150 companies 39 are in profit having decision Invest.76 companies are in loss where the decision is not invest.Companies are in loss when the decision is invest are 27.Companies are in profit when the decision is not invest are 8.
Based on the above matrix following measures are being formed.Accuracy of the system is 0.77.Out of all profitable companies only companies which are profitable having invested decision are 39.The ratio is sensitivity of the classifier which is 0.82 i.e. sensitivity (Recall).Precision is 0.59.F1 measure is 0.69.Identification of correct companies out of profitable companies is 82% and Incorrectness for the loss is 26%.

CONCLUSION
Work has the ability to identify true worth of stock.This model involves the strength of Fuzzy Logic to expect stock price.System considers fundamental concern for study.Methodology gives indistinguishable value for stock.It becomes inconsequential to contrast that whether the supposing stock is value to contemporary price or not.Long term prediction is the base for the algorithm.Accuracy of the algorithm is 0.77.System focuses on the standard parameters to determine true worth.The current system is designed for stocks.Bonds and other financial instruments may be used for future work.
.Intrinsic value is calculated by Dividend Discount Model (DDM).The Intrinsic value is a value which not depends on an external price i.e. it is true worth of company.V 0 = Intrinsic Value.D = Dividend for theyear.k = required rate of return of stock.g = dividend growth rate.r = Required Return.