<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JCC</journal-id><journal-title-group><journal-title>Journal of Computer and Communications</journal-title></journal-title-group><issn pub-type="epub">2327-5219</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jcc.2021.95006</article-id><article-id pub-id-type="publisher-id">JCC-109491</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  A Comparative Study of Support Vector Machine and Artificial Neural Network for Option Price Prediction
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Biplab</surname><given-names>Madhu</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Md.</surname><given-names>Azizur Rahman</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Arnab</surname><given-names>Mukherjee</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Md.</surname><given-names>Zahidul Islam</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Raju</surname><given-names>Roy</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Lasker</surname><given-names>Ershad Ali</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Mathematics Discipline, Science, Engineering and Technology School, Khulna University, Khulna, Bangladesh</addr-line></aff><pub-date pub-type="epub"><day>12</day><month>05</month><year>2021</year></pub-date><volume>09</volume><issue>05</issue><fpage>78</fpage><lpage>91</lpage><history><date date-type="received"><day>1,</day>	<month>May</month>	<year>2021</year></date><date date-type="rev-recd"><day>25,</day>	<month>May</month>	<year>2021</year>	</date><date date-type="accepted"><day>28,</day>	<month>May</month>	<year>2021</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  Option pricing has become one of the quite important parts of the financial market. As the market is always dynamic, it is really difficult to predict the option price accurately. For this reason, various machine learning techniques have been designed and developed to deal with the problem of predicting the future trend of option price. In this paper, we compare the effectiveness of Support Vector Machine (SVM) and Artificial Neural Network (ANN) models for the prediction of option price. Both models are tested with a benchmark publicly available dataset namely SPY option price-2015 in both testing and training phases. The converted data through Principal Component Analysis (PCA) is used in both models to achieve better prediction accuracy. On the other hand, the entire dataset is partitioned into two groups of training (70%) and test sets (30%) to avoid overfitting problem. The outcomes of the SVM model are compared with those of the ANN model based on the root mean square errors (RMSE). It is demonstrated by the experimental results that the ANN model performs better than the SVM model, and the predicted option prices are in good agreement with the corresponding actual option prices.
 
</p></abstract><kwd-group><kwd>Machine Learning</kwd><kwd> Support Vector Machine</kwd><kwd> Artificial Neural Network</kwd><kwd> Prediction</kwd><kwd> Option Price</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The financial market may be regarded as the propellant of any country’s economy. However, the relationship between the currency market and the country’s economy is really complicated. Identifying this relationship is one of the most important parts of any money investment decision making framework [<xref ref-type="bibr" rid="scirp.109491-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.109491-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.109491-ref3">3</xref>]. In this context, derivatives such as option became very significant part of the financial market over the past few decades. Option is a financial contract between two parties that provides the buyer (the owner or holder) of the option the right (but not an obligation) to buy or sell the underlying asset for the settled price (strike price) on or before expiring time (maturity time) of the contract, depending on the form of the option. There exist two fundamental types of options namely, call option (option for buying) and put option (option for selling). The seller and buyer can protect their financial risk with the help of option contract. For this reason, the problem of option price prediction has received considerable attention from scientific community. It is important to predict option price to know rigorously the future trends of financial market. However, accurately forecasting option price is a major challenge in stock market as it follows a complex pattern and shows stochastic behavior. In addition, it has been pointed out that forecasting option value is dynamic, sophisticated and chaotic in nature [<xref ref-type="bibr" rid="scirp.109491-ref4">4</xref>]. Thus, the study on the option price prediction is very worthy.</p><p>Several researchers have worked out to predict option value by adopting some ancient and innovative techniques. Examples of such techniques include moving-average (MA), regression (R), auto-regression (AR), AR moving-average (ARMA), and AR integrated moving-average (ARIMA). In these techniques, the correlated data is used in the process and different types of assumption are required for different parametric specifications, and consequently, the standard of the prediction results degrades [<xref ref-type="bibr" rid="scirp.109491-ref5">5</xref>]. In addition, these models are not capable of handling non-stationary time series data. Thus, it is essential to develop updated models with higher capacities for accomplishing the task of forecasting. Soft computing techniques can be used in this regard that covers mimic biological processes. These techniques include Artificial Neural Network (ANN), Numerical Rationale (NR), Support Vector Machine (SVM), Molecule Swarm Improvement (MSI), etc. Among these models, ANN and SVM models have been widely used in a variety of fields of science and technology, including prediction problems.</p><p>The objective of this paper is to carefully examine, compare and analyze the performance of two highly promising and frequently used soft computing techniques of SVM and ANN for predicting option price. For this reason, both techniques are first evaluated individually and the predicted results are compared with the actual results. Then, the results of both techniques are compared with each other. The experimental outcomes indicate that the ANN model shows better performance than the SVM model for the prediction of option price. The rest part of this paper is organized as follows. The next section (Section 2) reviews some related work. A brief introduction of NN, ANN and SVM models is presented in Section 3. Section 4 contains the details of the dataset and the methodology to accomplish the task of this paper. The experimental results and the discussion of the results with comparison are reported in Section 5. And the final section (Section 6) offers the conclusion of the paper.</p></sec><sec id="s2"><title>2. Related Work</title><p>Various researchers have been designed and developed different architectures with the help of modern technology for effectively handling prediction problems. Some of the related literatures are reviewed in this section. The ANN model was successfully applied for the forecasting of different option prices by Liu in 1996 [<xref ref-type="bibr" rid="scirp.109491-ref6">6</xref>], Yao et al. in 2000 [<xref ref-type="bibr" rid="scirp.109491-ref7">7</xref>] and Andreou et al. in 2008 [<xref ref-type="bibr" rid="scirp.109491-ref8">8</xref>]. Besides that, the ANN based predicting frameworks for stock prices forecasting were reported in [<xref ref-type="bibr" rid="scirp.109491-ref9">9</xref>] [<xref ref-type="bibr" rid="scirp.109491-ref10">10</xref>] [<xref ref-type="bibr" rid="scirp.109491-ref11">11</xref>]. Moreover, some authors paid their attention to developing forecasting models using a variety of strategies. Saxena proposed a hybrid model for estimating the value of option by integrating the ANN model and Black Scholes model [<xref ref-type="bibr" rid="scirp.109491-ref12">12</xref>]. He tested his model with European-style CNX Nifty Options traded at National Stock Exchange of India Ltd. and showed that the hybrid model outperforms the Black Scholes model. While Mitra combined the ANN model and Black Scholes model with the S&amp;P CNX Nifty index call options in India and reported its superior performance than the original Black Scholes model [<xref ref-type="bibr" rid="scirp.109491-ref13">13</xref>]. In addition, Lajbcygier and Connor proposed a hybrid algorithm by using the ANN model and bootstrap algorithm to improve the option pricing [<xref ref-type="bibr" rid="scirp.109491-ref14">14</xref>]. On the other hand, Hassan et al. studied on forecasting the financial market behavior through a fusion model by combining Hidden Markov Model, ANN and Genetic Algorithm [<xref ref-type="bibr" rid="scirp.109491-ref15">15</xref>]. Their hybrid approach performed well compared to the conventional forecast method.</p><p>Kara et al. developed ANN and SVM models and compared their effectiveness for the prediction of the direction of movement in the daily Istanbul financial stock exchange (ISE) National 100 record [<xref ref-type="bibr" rid="scirp.109491-ref16">16</xref>]. They showed that the ANN model performs better than the SVM model in this specific case. In [<xref ref-type="bibr" rid="scirp.109491-ref17">17</xref>], Zhu et al. used a component based ANN to predict one-step ahead stock index increments. They trained ANN with the data of stock returns and volumes from NASDAQ, DJIA and STI list. Their experimental results demonstrated that expanded ANN models with corporate greed volumes can improve the performance of stock index increments prediction under medium and long-term horizons. Chen et al. studied on forecasting the six significant Asian stock markets by adopting SVM and back propagation ANN [<xref ref-type="bibr" rid="scirp.109491-ref18">18</xref>]. They showed a comparison between SVM and back propagation ANN and found the better performance of both models compared to other existing models. Li et al. established a dynamic prediction model for surface movements through the knowledge of the time series analysis and the theory of SVM [<xref ref-type="bibr" rid="scirp.109491-ref19">19</xref>].</p><p>Hutchinson et al. proposed a nonparametric procedure for pricing and hedging derivative asset through learning networks and compared its superiority with the Black Scholes option pricing model [<xref ref-type="bibr" rid="scirp.109491-ref20">20</xref>]. Kim applied SVM to predicting the stock price index and compared its capability with the back propagation ANN [<xref ref-type="bibr" rid="scirp.109491-ref21">21</xref>]. His experiments showed that SVM can be considered as a promising alternative technique for stock market prediction. Yoshihara et al. used a recurrent deep NN framework with real-world data of Nikkei companies for the prediction of stock market trend [<xref ref-type="bibr" rid="scirp.109491-ref22">22</xref>]. Its performance was compared with SVM and Deep Belief Network (DBN) and found a better forecast than both SVM and DBN. Lekhani proved by experiments that ANN is better and more accurate model than the Support Vector Regression (SVR) model for the stock prediction [<xref ref-type="bibr" rid="scirp.109491-ref23">23</xref>]. Recently, Madhu et al. adopted various kernels in the SVR to predict option price [<xref ref-type="bibr" rid="scirp.109491-ref24">24</xref>]. Their experiments illustrated that the SVR with Gaussian Kernel performs well compared to other kernel functions.</p></sec><sec id="s3"><title>3. Methods of Study</title><p>In this section, we give a brief introduction of the methods under consideration in this study. The Neural Network (NN), ANN with biological NN and SVM models are briefly discussed in the following subsections consecutively.</p><sec id="s3_1"><title>3.1. Neural Network</title><p>The term Neural Network (NN) can be specified as a logical model, which is designed based on the human brain. The human brain contains interconnected nerve cells named neurons. In fact, the human brain holds about 10 billion neurons and 60 trillion connections, synapses, between them. A nerve cell or neuron consists of three modules—the summing function, the activation function, and the output. The term “Neural” comes from the “neuron” or nerve cells, the basic functional unit of the human (animal) nervous system that exist in the brain and other parts of the human (animal) body. There are mainly three parts in a typical nerve cell or neuron of a human brain such as dendrite, cell body and axon. There is also another important part called Synapses. The definition of each part of a neuron is given below:</p><p>Dendrite:  It accepts signals from other neurons.</p><p>Cell body (Soma): It sums all the arriving signals to produce input.</p><p>Axon:  When the sum influences a threshold value, neuron fires and the signal journeys down the axon to the other neurons.</p><p>Synapses:  It is the point of interconnection of one neuron with other neurons. The amount of signal transmitted depends upon the strong point (synaptic weights) of the connections. The connections can be preclusive (decreasing strength) or manifest (increasing strength) in nature.</p><p>In general, NN is a highly interconnected network of billions of neurons with trillion of interconnections between them which influence to run the human body. A typical neuron with its different parts is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p></sec><sec id="s3_2"><title>3.2. Artificial Neural Network with Biological Neural Network</title><p>The dendrites of the biological NN are analogous to the weight inputs based on their synaptic interconnection in the ANN. The cell body is analogous to the artificial neuron unit in the ANN which comprises with the summation and threshold unit. On the other hand, the axon carries the output which is also analogous to the output unit in the case of ANN. Therefore, the ANN model is worked</p><p>based on the basic working functions of the biological neurons. A biological ANN is presented graphically in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><p>The ANN is a biologically enthused network of artificial neurons, which is executed on a computer basis to perform certain tasks such as clustering, classification, pattern detection, etc. In fact, the architecture of ANN is designed based on the approach and act of the human brain’s neurons. The ANN contains non-linear and non-parametric units which process information, knowledge, intelligence, instruction etc. It is a computational method intended by the study of the brain and nervous system. The ANN follows the structure and operations of the three-dimensional lattice of network among brain cells. The network learns gradually by smoothing the connections between electronic neurons in its system. The learning process of the network can be deliberated like as a child learns to identify patterns, shapes and sounds, and discerns among them. For example, the child has to be illuminated to a number of examples of a particular type of animals for her to be skilled to recognize that type of animal later on. In addition, the child has to be irradiated to different types of animals for her to be capable to differentiate among animals. There are many different kinds of ANN architectures and several algorithms for network training. The choice of the ANN model depends on the prior knowledge of the system to be modeled. A feed forward neural network with one hidden layer is adopted in this study to forecast the option price in the stock market.</p></sec><sec id="s3_3"><title>3.3. Support Vector Machine</title><p>The SVM was first applied by Vladimir N. Vapnik and A. Y. Chervonenkis in the year of 1963 [<xref ref-type="bibr" rid="scirp.109491-ref24">24</xref>]. It is a classifier of supervised learning, also known as a support vector network. The SVM was originally designed for classification, regression and outlier detection; however, later it has expanded in other directions. Indeed, it is a classifier derived from the theory of statistical learning based on</p><p>structural risk minimization that is used to maximize the accuracy of predictions and to reduce the problem of overfitting. It can efficiently perform classification of both linear and nonlinear problems and work well for many practical problems. The basic idea of SVM is to generate a line or a hyperplane that separates the data into classes.</p><p>In the linear SVM model, each input data is plotted as a point in the n-dimensional space where n is input dimensions. After that, the classification task is accomplished by getting the hyperplane which differentiate the data into two classes. <xref ref-type="fig" rid="fig3">Figure 3</xref> represents the SVM margin and hyperplane with trained samples classes. Let us consider a linear classifier (or, hyperplane) [<xref ref-type="bibr" rid="scirp.109491-ref24">24</xref>]:</p><p>f ( x ) = w T x + b (1)</p><p>In the above equation, x represents the input feature vector of the classifier, w indicates the weight vector, w<sup>T</sup> is the transpose of the weight vector, and b holds for the hyperplane position. The linear Equation (1) represents a straight line, a plane and a hyperplane, if the input vector is 2-dimensional, 3-dimensional, and more than 3-dimensional, respectively. The SVM model finds an optimal hyperplane for the classification of two classes. Let the equation of hyperplane is w T x + b = 0 . The distance between w ⋅ x + b = + 1 and w ⋅ x + b = − 1 is the margin of this hyperplane. By using the formula to calculate the distance between two straight lines, we get the following margin:</p><p>m = 2 ‖ w ‖ (2)</p><p>On the other hand, the SVM model performs a classification task for nonlinear problems by adopting the kernel function. In this case, the original input vector projects into the higher dimensional feature space in a nonlinear manner. After transforming data into the new higher space, the new space is searched for a linear separating hyper-plane. To get a nonlinear SVM regression model, the dot product x 1 T ⋅ x 2 is exchanged with a nonlinear kernel function K ( x 1 , x 2 ) = 〈 φ ( x 1 ) , φ ( x 2 ) 〉 where, φ ( x ) is a transformation operator that maps x to a high-dimensional space. There are many kernel functions in the literature and some popular kernel functions are given below:</p><p>1) Linear kernel function is expressed by K ( x j , x k ) = x j T x k</p><p>2) Gaussian kernel function is presented by K ( x j , x k ) = exp ( − ‖ x j − x k ‖ 2 )</p><p>3) Polynomial kernel function is figured out by K ( x j , x k ) = ( 1 + x j T x k ) q</p><p>Here x i and x j represent the support vectors. Actually, support vectors are the input vectors of SVM classifier that just touch the boundary of the margin of the hyperplane. Simply, support vectors are the information points that are closest to the decision surface.</p></sec></sec><sec id="s4"><title>4. Data and Methodology</title><p>To conduct experiments, we collect data from the Yahoo Finance community named SPY option price-2015 [<xref ref-type="bibr" rid="scirp.109491-ref24">24</xref>] [<xref ref-type="bibr" rid="scirp.109491-ref26">26</xref>]. Actually, the Yahoo Finance community is a publicly available excellent source of financial data, which has received considerable attention from the research community to deal with very difficult and challenging problems. Both models are tested with the same dataset. The sample of data is presented in <xref ref-type="table" rid="table1">Table 1</xref>. From the table, it is observed that there are 4742 data with seven input variables in the dataset. It is difficult to conduct the experiments with this high dimension data. For this reason, we convert original data partially through Principal Component Analysis (PCA). The detailed process of adopting PCA for dimension reduction is presented in our earlier work [<xref ref-type="bibr" rid="scirp.109491-ref24">24</xref>]. The converted dataset contains 4742 data with two variables and based on it, the experimental task is accomplished.</p><p>The performance measure indicator of our study is root mean square errors (RMSE). Indeed, the RMSE for both models under consideration is calculated based on Equation (4). The predicting price error of SVM and ANN for each option can be expressed as follows:</p><p>E i = M i − P i (3)</p><p>In the above equation, parameter E i illustrates the error of the prediction value of an option for input i, M i denotes the market value of that option, and P i represents the predicted option price. We apply the formula (Equation (3)) for calculating the predicting error for each option. Since the errors can be either</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Market value data of Yahoo option [<xref ref-type="bibr" rid="scirp.109491-ref24">24</xref>] [<xref ref-type="bibr" rid="scirp.109491-ref26">26</xref>]</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >S/N</th><th align="center" valign="middle" >Strike Price</th><th align="center" valign="middle" >Stock Price</th><th align="center" valign="middle" >High/Low</th><th align="center" valign="middle" >Price (Call/Put)</th><th align="center" valign="middle" >Vega (Λ)</th><th align="center" valign="middle" >Gamma (Γ)</th><th align="center" valign="middle" >Rho (ρ)</th><th align="center" valign="middle" >Volatility</th></tr></thead><tr><td align="center" valign="middle" >01</td><td align="center" valign="middle" >81.732</td><td align="center" valign="middle" >120</td><td align="center" valign="middle" >82</td><td align="center" valign="middle" >87.161</td><td align="center" valign="middle" >5.10361e−04</td><td align="center" valign="middle" >0.0129431</td><td align="center" valign="middle" >0.992285</td><td align="center" valign="middle" >2.19259</td></tr><tr><td align="center" valign="middle" >02</td><td align="center" valign="middle" >76.731</td><td align="center" valign="middle" >125</td><td align="center" valign="middle" >77</td><td align="center" valign="middle" >82.162</td><td align="center" valign="middle" >5.84782e−04</td><td align="center" valign="middle" >0.0134769</td><td align="center" valign="middle" >0.991642</td><td align="center" valign="middle" >2.03664</td></tr><tr><td align="center" valign="middle" >03</td><td align="center" valign="middle" >71.734</td><td align="center" valign="middle" >130</td><td align="center" valign="middle" >72</td><td align="center" valign="middle" >77.173</td><td align="center" valign="middle" >6.73353e−04</td><td align="center" valign="middle" >0.014018</td><td align="center" valign="middle" >0.988927</td><td align="center" valign="middle" >1.88642</td></tr><tr><td align="center" valign="middle" >04</td><td align="center" valign="middle" >66.735</td><td align="center" valign="middle" >135</td><td align="center" valign="middle" >67</td><td align="center" valign="middle" >72.171</td><td align="center" valign="middle" >7.79894e−04</td><td align="center" valign="middle" >0.0145372</td><td align="center" valign="middle" >0.987126</td><td align="center" valign="middle" >1.74082</td></tr><tr><td align="center" valign="middle" >05</td><td align="center" valign="middle" >61.736</td><td align="center" valign="middle" >140</td><td align="center" valign="middle" >62</td><td align="center" valign="middle" >67.172</td><td align="center" valign="middle" >9.09641e−04</td><td align="center" valign="middle" >0.0150652</td><td align="center" valign="middle" >0.989221</td><td align="center" valign="middle" >1.60017</td></tr><tr><td align="center" valign="middle" >06</td><td align="center" valign="middle" >56.737</td><td align="center" valign="middle" >145</td><td align="center" valign="middle" >57</td><td align="center" valign="middle" >62.183</td><td align="center" valign="middle" >0.00103995</td><td align="center" valign="middle" >0.0155902</td><td align="center" valign="middle" >0.989185</td><td align="center" valign="middle" >1.46322</td></tr><tr><td align="center" valign="middle" >07</td><td align="center" valign="middle" >51.731</td><td align="center" valign="middle" >150</td><td align="center" valign="middle" >52</td><td align="center" valign="middle" >57.184</td><td align="center" valign="middle" >0.00167137</td><td align="center" valign="middle" >0.0161117</td><td align="center" valign="middle" >0.984988</td><td align="center" valign="middle" >1.33017</td></tr><tr><td align="center" valign="middle" >08</td><td align="center" valign="middle" >46.732</td><td align="center" valign="middle" >155</td><td align="center" valign="middle" >47</td><td align="center" valign="middle" >52.192</td><td align="center" valign="middle" >0.00172959</td><td align="center" valign="middle" >0.0166296</td><td align="center" valign="middle" >0.983581</td><td align="center" valign="middle" >1.20041</td></tr><tr><td align="center" valign="middle" >09</td><td align="center" valign="middle" >41.733</td><td align="center" valign="middle" >160</td><td align="center" valign="middle" >42</td><td align="center" valign="middle" >47.193</td><td align="center" valign="middle" >0.00186875</td><td align="center" valign="middle" >0.0171404</td><td align="center" valign="middle" >0.982901</td><td align="center" valign="middle" >1.07365</td></tr><tr><td align="center" valign="middle" >. .</td><td align="center" valign="middle" >. . .</td><td align="center" valign="middle" >. . .</td><td align="center" valign="middle" >. . .</td><td align="center" valign="middle" >. . .</td><td align="center" valign="middle" >. . .</td><td align="center" valign="middle" >. . .</td><td align="center" valign="middle" >. . .</td><td align="center" valign="middle" >. . .</td></tr><tr><td align="center" valign="middle" >4742</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >265</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0.11372</td></tr></tbody></table></table-wrap><p>positive or negative, we use the square amount of these predicting errors. Therefore, the formula for enumerating RMSE for whole data is presented in Equation (4).</p><p>RMSE = ∑ i = 1 n E i 2 n (4)</p><p>In the Equation (4), variable n is the number of samples. The smaller value of RMSE means the smaller predicting errors, and consequently, it means better option price prediction.</p><p>The purpose of this study is to explore the best learning method between ANN and SVM for option price prediction. For both models, the input dataset is divided into two parts—the training dataset and the testing dataset. In fact, the training dataset contains 70% of the data and the remaining 30% of the data are considered for testing. The dataset is transformed to get relevant attributes according to the input format of ANN and SVM. We use experiments through the trial and error method to get the minimum RMSE for each model. To get the output, we use some input variables which are listed in <xref ref-type="table" rid="table2">Table 2</xref>. There are two main things to keep in mind to designing the architecture of this study. Firstly, we need to know the architecture of the SVM model. Different kinds of kernel functions are used in the process of SVM model to minimize the prediction errors. Secondly, we regulate the architecture of ANN model by adopting a feed forward neural network with one hidden layer. There are several stages to developing an ANN model. The first stage is to determine the training cycles. Training cycles are selected based on the result of the smallest RMSE. After obtaining the training cycles, the learning rate is determined to conducting a test input</p><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> List of input parameters</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >S/N</th><th align="center" valign="middle" >Name of Parameter</th><th align="center" valign="middle" >Description of the Parameter</th></tr></thead><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >S</td><td align="center" valign="middle" >Spot price of the security</td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" >X</td><td align="center" valign="middle" >Exercise price of call option</td></tr><tr><td align="center" valign="middle" >3</td><td align="center" valign="middle" >R</td><td align="center" valign="middle" >Rate of Risk-free interest</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >T</td><td align="center" valign="middle" >Time left until option expiry (date in year fraction)</td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" >σ</td><td align="center" valign="middle" >A measure of implied volatility (calculated as standard deviation)</td></tr></tbody></table></table-wrap><p>value. Learning rate is also selected based on the result of the smallest RMSE. For minimizing the prediction errors, we use weight vectors randomly with input variables. In addition, we use different types of activation functions in ANN model to minimize the prediction errors. Architecture of comparing the performance of ANN and SVM models for predicting option price is illustrated in <xref ref-type="fig" rid="fig4">Figure 4</xref>.</p></sec><sec id="s5"><title>5. Experimental Results and Discussion</title><p>For learning compositions of models ANN and SVM, we partition the information into two sections by using cross-validation, training data and testing data. Cross-validation is castoff since it ended up standard procedure in practical terms. Cross-validation makes the process to perform training 15 times because divided training data into 15 equal parts. The training and testing process in this study are performed by using MATLAB 2018a software. The parameters are optimized by the experiments through the trial and error method based on the smallest RMSE. Optimize parameters with the smallest RMSE for ANN model are reported in <xref ref-type="table" rid="table3">Table 3</xref>. It is noticed that the best results (smallest RMSE 1.743) in the experiment are found with one hidden layer, 5 inputs parameter with respective weight vectors and 4 neuron size.</p><p>The idea of SVM model can be demonstrated by considering an informational collection { ( x 1 , y 1 ) , ( x 1 , y 1 ) , ⋯ , ( x n , y n ) } , where x ∈ R d is the d dimensional input space and y ∈ ℝ is the corresponding output. In dot function, it is defined by k ( x , y ) = x ∗ y ; where k ( x , y ) is the inner product of x and y. There are two parameters in the SVM model namely C and Epsilon. Parameter C is regularization constant, which determines the trade-off between the empirical risk and the regularization term. While the parameter Epsilon is specified as the insensitivity constant. This parameter is a part of the loss function. No loss occurs if the prediction lies this close to true value. Optimize parameters with the smallest RMSE for SVM model is summarized in <xref ref-type="table" rid="table4">Table 4</xref>. From the table, it is found that the optimum values of C and Epsilon are 0.1 and 0.5, respectively. And these optimum values are found when the minimum RMSE of SVM is 1.752.</p><p>By using the optimized parameter (displayed in <xref ref-type="table" rid="table3">Table 3</xref> and <xref ref-type="table" rid="table4">Table 4</xref>), both models are tested in the testing phase for forecasting option price in the stock</p><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Optimized parameters of artificial neural network model</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Name of Parameter</th><th align="center" valign="middle" >Optimize Value of Parameter</th></tr></thead><tr><td align="center" valign="middle" >Training Cycle</td><td align="center" valign="middle" >150</td></tr><tr><td align="center" valign="middle" >Learning Rate</td><td align="center" valign="middle" >0.1</td></tr><tr><td align="center" valign="middle" >Hidden Neuron Size</td><td align="center" valign="middle" >4</td></tr><tr><td align="center" valign="middle" >RMSE</td><td align="center" valign="middle" >1.743</td></tr></tbody></table></table-wrap><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> Optimized parameters of support vector machine model</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Name of Parameter</th><th align="center" valign="middle" >Optimize Value of Parameter</th></tr></thead><tr><td align="center" valign="middle" >C</td><td align="center" valign="middle" >0.1</td></tr><tr><td align="center" valign="middle" >Epsilon</td><td align="center" valign="middle" >0.5</td></tr><tr><td align="center" valign="middle" >RMSE</td><td align="center" valign="middle" >1.752</td></tr></tbody></table></table-wrap><p>market. The predictive results of ANN and SVM models are displayed in <xref ref-type="table" rid="table5">Table 5</xref>. From <xref ref-type="table" rid="table5">Table 5</xref>, it can be seen that both models find the results close to the actual results. It can be also seen that the ANN model predicts the option price more accurately than the SVM model. In fact, the computed RMSE of the ANN model in this testing phase is 0.274418, which is significantly better than the 0.409254 of the SVM model. In order to facilitate observation, the comparison of the predicted option price with the actual option price for both ANN and SVM models is illustrated graphically. This is shown in the form of scatter plot in <xref ref-type="fig" rid="fig5">Figure 5</xref>. From the comparison scatter plot, one can easily get an idea intuitively about the superior performance of the ANN model than the SVM model in this specific prediction problem. Therefore, it can be concluded that the ANN model might be considered as an alternative of the SVM model, which can show promising performance to predict the option price.</p><table-wrap id="table5" ><label><xref ref-type="table" rid="table5">Table 5</xref></label><caption><title> Prediction results for option price of both ANN and SVM models</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >S/N</th><th align="center" valign="middle"  rowspan="2"  >Actual Price (Call/Put)</th><th align="center" valign="middle"  colspan="2"  >Predicted Price</th></tr></thead><tr><td align="center" valign="middle" >SVM Model</td><td align="center" valign="middle" >ANN Model</td></tr><tr><td align="center" valign="middle" >01</td><td align="center" valign="middle" >87.161</td><td align="center" valign="middle" >78.27</td><td align="center" valign="middle" >82.47</td></tr><tr><td align="center" valign="middle" >02</td><td align="center" valign="middle" >82.162</td><td align="center" valign="middle" >74.47</td><td align="center" valign="middle" >79.83</td></tr><tr><td align="center" valign="middle" >03</td><td align="center" valign="middle" >77.173</td><td align="center" valign="middle" >68.74</td><td align="center" valign="middle" >75.45</td></tr><tr><td align="center" valign="middle" >04</td><td align="center" valign="middle" >72.171</td><td align="center" valign="middle" >65.19</td><td align="center" valign="middle" >70.92</td></tr><tr><td align="center" valign="middle" >05</td><td align="center" valign="middle" >67.172</td><td align="center" valign="middle" >59.24</td><td align="center" valign="middle" >64.29</td></tr><tr><td align="center" valign="middle" >06</td><td align="center" valign="middle" >62.183</td><td align="center" valign="middle" >54.77</td><td align="center" valign="middle" >59.16</td></tr><tr><td align="center" valign="middle" >07</td><td align="center" valign="middle" >57.184</td><td align="center" valign="middle" >47.38</td><td align="center" valign="middle" >48.93</td></tr><tr><td align="center" valign="middle" >08</td><td align="center" valign="middle" >52.192</td><td align="center" valign="middle" >39.37</td><td align="center" valign="middle" >41.43</td></tr><tr><td align="center" valign="middle" >09</td><td align="center" valign="middle" >47.193</td><td align="center" valign="middle" >29.43</td><td align="center" valign="middle" >30.94</td></tr><tr><td align="center" valign="middle" >. . .</td><td align="center" valign="middle" >. . .</td><td align="center" valign="middle" >. . .</td><td align="center" valign="middle" >. . .</td></tr><tr><td align="center" valign="middle" >4742</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle"  colspan="2"  >RMSE</td><td align="center" valign="middle" >0.409254</td><td align="center" valign="middle" >0.274418</td></tr></tbody></table></table-wrap></sec><sec id="s6"><title>6. Conclusion</title><p>Option pricing plays a very significant role in the financial market. Accurate predicting of option price helps the decision maker to take proper decision for developing better financial management. However, it still remains a challenging issue in the research community. In this paper, we have investigated the capability of two machine learning techniques such as ANN and SVM techniques to forecast option price. A decent exhibition of ANN and SVM models with performances measure indicator (RMSE) is presented in the paper. It is observed from our experiments that the ANN model yields RMSE of 1.743 and 0.274418 in training and testing stages respectively, which are better than the 1.752 and 0.409254 of SVM model. The experimental results indicate that the ANN model outperforms SVM model for predicting option price. The experimental results also suggest that the ANN model is a promising technique and it can be adopted as an alternative of the SVM model in predicting option price at this particular area. However, further research needs to be accomplished to identify the strength and weakness of this model.</p></sec><sec id="s7"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s8"><title>Cite this paper</title><p>Madhu, B., Rahman, Md.A., Mukherjee, A., Islam, Md.Z., Roy, R. and Ali, L.E. (2021) A Comparative Study of Support Vector Machine and Artificial Neural Network for Option Price Prediction. Journal of Computer and Communications, 9, 78-91. https://doi.org/10.4236/jcc.2021.95006</p></sec><sec id="s9"><title>NOTES</title></sec></body><back><ref-list><title>References</title><ref id="scirp.109491-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Hoti, S., McAleer, M. and Pauwels, L.L. (2008) Multivariate Volatility in Environmental Finance. Mathematics and Computers in Simulation, 78, 189-199. https://doi.org/10.1016/j.matcom.2008.01.038</mixed-citation></ref><ref id="scirp.109491-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Wen, Q., Yang, Z., Song, Y. and Jia, P. (2010) Automatic Stock Decision Support System Based on Box Theory and SVM Algorithm. Expert Systems with Applications, 37, 1015-1022. https://doi.org/10.1016/j.eswa.2009.05.093</mixed-citation></ref><ref id="scirp.109491-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Kampouridis, M., Alsheddy, A. and Tsang, E. (2013) On the Investigation of Hyper-Heuristics on a Financial Forecasting Problem. Annals of Mathematics and Artificial Intelligence, 68, 225-246. https://doi.org/10.1007/s10472-012-9283-0</mixed-citation></ref><ref id="scirp.109491-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Tan, T. Z., Quek, C. and Ng, G. S. (2005) Brain-Inspired Genetic Complementary Learning for Stock Market Prediction. 2005 IEEE Congress on Evolutionary Computation, Vol. 3, Edinburgh, 2-5 September 2005, 2653-2660. https://doi.org/10.1109/CEC.2005.1555027</mixed-citation></ref><ref id="scirp.109491-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Yu, L., Wang, S. and Lai, K.K. (2009) A Neural-Network-Based Nonlinear Metamodeling Approach to Financial Time Series Forecasting. Applied Soft Computing, 9, 563-574. https://doi.org/10.1016/j.asoc.2008.08.001</mixed-citation></ref><ref id="scirp.109491-ref6"><label>6</label><mixed-citation publication-type="book" xlink:type="simple">Liu, M. (1996) Option Pricing with Neural Networks. In: Amari, S.I., Xu, L., Chan, L.W., King, I. and Leung, K.S., Eds., Progress in Neural Information Processing, Vol. 2, Springer-Verlag, New York, 760-765.</mixed-citation></ref><ref id="scirp.109491-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Yao, J., Li, Y. and Tan, C.L. (2000) Option Price Forecasting Using Neural Networks. Omega, 28, 455-466. https://doi.org/10.1016/S0305-0483(99)00066-3</mixed-citation></ref><ref id="scirp.109491-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Andreou, P.C., Charalambous, C. and Martzoukos, S.H. (2008) Pricing and Trading European Options by Combining Artificial Neural Networks and Parametric Models with Implied Parameters. European Journal of Operational Research, 185, 1415-1433. https://doi.org/10.1016/j.ejor.2005.03.081</mixed-citation></ref><ref id="scirp.109491-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Zhang, Y. and Wu, L. (2009) Stock Market Prediction of S&amp;P 500 via Combination of Improved BCO Approach and BP Neural Network. Expert Systems with Applications, 36, 8849-8854. https://doi.org/10.1016/j.eswa.2008.11.028</mixed-citation></ref><ref id="scirp.109491-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Olatunji, S.O., Al-Ahmadi, M.S., Elshafei, M. and Fallatah, Y.A. (2011) Saudi Arabia Stock Prices Forecasting Using Artificial Neural Networks. 4th International Conference on the Applications of Digital Information and Web Technologies (ICADIWT 2011), Stevens Point, 4-6 August 2011, 81-86. https://doi.org/10.1109/ICADIWT.2011.6041425</mixed-citation></ref><ref id="scirp.109491-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Chang, T.S. (2011) A Comparative Study of Artificial Neural Networks, and Decision Trees for Digital Game Content Stocks Price Prediction. Expert Systems with Applications, 38, 14846-14851. https://doi.org/10.1016/j.eswa.2011.05.063</mixed-citation></ref><ref id="scirp.109491-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Saxena, A. (2008) Valuation of S&amp;P CNX Nifty Options: Comparison of Black-Scholes and Hybrid ANN Model. Proceedings of SAS Global Forum, San Antonio, 16-19 March 2008, 1-25.</mixed-citation></ref><ref id="scirp.109491-ref13"><label>13</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Mitra</surname><given-names> S.K. </given-names></name>,<etal>et al</etal>. (<year>2012</year>)<article-title>An Option Pricing Model That Combines Neural Network Approach and Black Scholes formula</article-title><source> Global Journal of Computer Science and Technology</source><volume> 12</volume>,<fpage> 1</fpage>-<lpage>11</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.109491-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Lajbcygier, P.R. and Connor, J.T. (1997) Improved Option Pricing Using Artificial Neural Networks and Bootstrap Methods. International Journal of Neural Systems, 8, 457-471. https://doi.org/10.1142/S0129065797000446</mixed-citation></ref><ref id="scirp.109491-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Hassan, M.R., Nath, B. and Kirley, M. (2007) A Fusion Model of HMM, ANN and GA for Stock Market Forecasting. Expert Systems with Applications, 33, 171-180. https://doi.org/10.1016/j.eswa.2006.04.007</mixed-citation></ref><ref id="scirp.109491-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Kara, Y., Boyacioglu, M.A. and Baykan, &amp;Ouml;.K. (2011) Predicting Direction of Stock Price Index Movement Using Artificial Neural Networks and Support Vector Machines: The Sample of the Istanbul Stock Exchange. Expert Systems with Applications, 38, 5311-5319. https://doi.org/10.1016/j.eswa.2010.10.027</mixed-citation></ref><ref id="scirp.109491-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Zhu, X., Wang, H., Xu, L. and Li, H. (2008) Predicting Stock Index Increments by Neural Networks: The Role of Trading Volume under Different Horizons. Expert Systems with Applications, 34, 3043-3054. https://doi.org/10.1016/j.eswa.2007.06.023</mixed-citation></ref><ref id="scirp.109491-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Chen, W.H., Shih, J.Y. and Wu, S. (2006) Comparison of Support-Vector Machines and Back Propagation Neural Networks in Forecasting the Six Major Asian Stock Markets. International Journal of Electronic Finance, 1, 49-67. https://doi.org/10.1504/IJEF.2006.008837</mixed-citation></ref><ref id="scirp.109491-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Li, P., Tan, Z., Yan, L. and Deng, K. (2011) Time Series Prediction of Mining Subsidence Based on a SVM. Mining Science and Technology (China), 21, 557-562. https://doi.org/10.1016/j.mstc.2011.02.025</mixed-citation></ref><ref id="scirp.109491-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Hutchinson, J.M., Lo, A.W. and Poggio, T. (1994) A Nonparametric Approach to Pricing and Hedging Derivative Securities via Learning Networks. The Journal of Finance, 49, 851-889. https://doi.org/10.1111/j.1540-6261.1994.tb00081.x</mixed-citation></ref><ref id="scirp.109491-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Kim, K.J. (2003) Financial Time Series Forecasting Using Support Vector Machines. Neurocomputing, 55, 307-319. https://doi.org/10.1016/S0925-2312(03)00372-2</mixed-citation></ref><ref id="scirp.109491-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">Yoshihara, A., Fujikawa, K., Seki, K. and Uehara, K. (2014) PREDICTING stock market Trends by Recurrent Deep Neural Networks. Pacific Rim International Conference on Artificial Intelligence, Gold Coast, 1-5 December 2014, 759-769.https://doi.org/10.1007/978-3-319-13560-1_60</mixed-citation></ref><ref id="scirp.109491-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Lekhani, R. (2017) Stock Prediction Using Support Vector Regression and Neural Networks. International Journal of Advance Research, Ideas and Innovations in Technology, 3, 441-445.</mixed-citation></ref><ref id="scirp.109491-ref24"><label>24</label><mixed-citation publication-type="other" xlink:type="simple">Madhu, B., Paul, A.K. and Roy, R. (2019) Performance Comparison of Various Kernels of Support Vector Regression for Predicting Option Price. International Journal of Discrete Mathematics, 4, 21-31. https://doi.org/10.11648/j.dmath.20190401.14</mixed-citation></ref><ref id="scirp.109491-ref25"><label>25</label><mixed-citation publication-type="other" xlink:type="simple">https://dlpng.com/png/6583820</mixed-citation></ref><ref id="scirp.109491-ref26"><label>26</label><mixed-citation publication-type="other" xlink:type="simple">https://finance.yahoo.com/quote/spy/options</mixed-citation></ref></ref-list></back></article>