0% found this document useful (0 votes)
112 views12 pages

Stock Price Prediction Using Geometric Brownian Mo

This document summarizes a research paper that predicts stock prices using geometric Brownian motion. The paper describes collecting stock price data, performing normality tests, calculating stock returns and estimating drift and volatility values. It then forecasts future stock prices, calculates forecast accuracy using MAPE, and determines a 95% confidence level for the expected stock price. The output analysis found that geometric Brownian motion achieved high prediction accuracy with MAPE values less than 20%.

Uploaded by

Ismail Ouaadi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
112 views12 pages

Stock Price Prediction Using Geometric Brownian Mo

This document summarizes a research paper that predicts stock prices using geometric Brownian motion. The paper describes collecting stock price data, performing normality tests, calculating stock returns and estimating drift and volatility values. It then forecasts future stock prices, calculates forecast accuracy using MAPE, and determines a 95% confidence level for the expected stock price. The output analysis found that geometric Brownian motion achieved high prediction accuracy with MAPE values less than 20%.

Uploaded by

Ismail Ouaadi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Journal of Physics: Conference Series

PAPER • OPEN ACCESS

Stock price prediction using geometric Brownian motion


To cite this article: W Farida Agustini et al 2018 J. Phys.: Conf. Ser. 974 012047

View the article online for updates and enhancements.

This content was downloaded from IP address 181.41.203.252 on 22/03/2018 at 00:32


International Conference on Mathematics: Pure, Applied and Computation IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 974 (2018)
1234567890 ‘’“”012047 doi:10.1088/1742-6596/974/1/012047

Stock price prediction using geometric Brownian motion

Farida Agustini W, Ika Restu Affianti, Endah RM Putri


Department of Mathematics, Faculty of Mathematics and Science, Institut Teknologi Sepuluh
Nopember (ITS), Jl. Arief Rahman Hakim, Surabaya 60111 Indonesia

E-mail: [email protected]

Abstract. Geometric Brownian motion is a mathematical model for predicting the future price
of stock. The phase that done before stock price prediction is determine stock expected price
formulation and determine the confidence level of 95%. On stock price prediction using
geometric Brownian Motion model, the algorithm starts from calculating the value of return,
followed by estimating value of volatility and drift, obtain the stock price forecast, calculating
the forecast MAPE, calculating the stock expected price and calculating the confidence level of
95%. Based on the research, the output analysis shows that geometric Brownian motion model
is the prediction technique with high rate of accuracy. It is proven with forecast MAPE value ≤
20%.

1. Introduction
Capital market are markets for various long term financial instruments that can be traded. Capital
markets are vital for fuction of country economy since capital markets generate two functions, first as
decision variable for investor or as a facility for companies to get funding from investors, second as
capital markets become facility for society to invest on financial instruments and one of them is stock
[1].
Stock price index is indicator for stock price movement. The index is one of the references for
investor to invest in capital markets, especially stock. One of the stock price indexes in Indonesia
Stock Exchange (IDX) is Indeks Harga Saham Gabungan (IHSG) or Jakarta Composite Index. To be
able to describe reasonable market condition, IHSG use all companies registered as index calculation
components [2].
Stock is one of the popular instruments in financial market. It is because stock able to give high
rate of profit return which interest the investors. However, stock trading has high rate of risk. The
fluctuation of stock price affect the investor’s decision on investing their capital. Mistake in decision
making will result loss for investor. Thus, to minimize the high risk investor needs information as a
reference for decision making of which stock they should buy, sell, and maintain[3].
There are 2 factors that has significant influence in stock price modelling, which previous state of
stock that influence the current stock price and stock response towards latest information of stock [4].
Based on those factors, it can be concluded that the change of stock price follows the Markov chain.
The Markov chain process is a stochastic process which make current price has influence to forecast
the future stock price.
Forecasting is the best method to predict the future of stock price [5]. However, the rate of loss risk
using this method is relatively still high due to the innacurate forecast output. The forecasting method
used for forecast the fututre stock closing price for short term investment with low rate of. One of the
model that can be used for forecasting stock price is geometric Brownian motion model or as known

Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution
of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
Published under licence by IOP Publishing Ltd 1
International Conference on Mathematics: Pure, Applied and Computation IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 974 (2018)
1234567890 ‘’“”012047 doi:10.1088/1742-6596/974/1/012047

as Wiener process. Geometric Brownian motion model is stochastic model with continous time, where
the random variable follows the Brownian motion [5].
On the previous research the concept of geometric Brownian motion has been descibed by Dmouj
[4]. Based on [4] it is described the concept of random walk, Brownian motion and analytical solution
of model geometric Brownian motion model. In review [4] stated that the forecast of stock close price
is develop using confident level and mean function of lognormal distribution. Other research that
implement geometric Brownian motion model is research conducted by Omar dan Jaffar [5]. Their
research forecasted the stock close price for several small companies registered in Malaysia stock
exchange. The forecast is limited to short term investment. In their research it is proven that geometric
Brownian motion model is accurate in forecasting the stock close price for two weeks period. It is
proven by the small value of Mean Absolute Percetage Error (MAPE).
Based on that background, this research forecast the stock price of Jakarta Composite Index using
the geometric Brownian motion. With utilizing the daily stock close price during January 2014 to
December 2014 to forecast the stock price of January 2015. The stages for forecasting the stock price
are calculating return value, Estimating the parameter, result collection of stock price forecast, then
calculating the MAPE value. In this research 4 forecasts are obtained using geometric Brownian
motion. Based on analysis and discussion, the MAPE value ≤20%.

2. Research Methodology
The methodology in conducting this research as follows:
2.1. Data Collection
At this stage stock price data collection is conducted by using the source of yahoo finance. The stock
data that is used are several stock prices under the Jakarta Composite Index, which are: Charoen
Pokphand Indonesia Tbk, Harum Energy Tbk, Media Nusantara Citra Tbk, PP London Sumatra
Indonesia Tbk, Vale Indonesia Tbk, Indo Tambangraya Megah Tbk, Indocement Tunggal Prakasa
Tbk. The stock price data that is used are daily stock close price during January 2014 to December
2014. Then the normality test is conducted on the stock close price data using SPSS software with
Kolmogorov-Smirnov test.
2.2. Literature Study
At this stage, reference theories are collected for supporting fundamental, that is regarding the stock
price, random walk, Brownian motion, proses stokastik, lemma Ito and geometric Brownian motion.
2.3. Stock Price Forecasting
At this stage the expected stock price formulation is conducted, the formulation of 95% confidence
level and stock price forecasting using geometric Brownian motion. In forecasting the stock price the
common formula of volality and log volatility is used.
To obtain expected stock price with 95% confidence level, stages conducted as follow:
a. Determine pdf lognormal.
b. Determine the lognormal distribution mean function.
c. Determine new stock price model.
d. Determine 95% confidence level.
After the new stock price model is obtained then stock close price forecast is conducted on seven
stock. The stages in stock price forecasting as follow:
a. Normality test.
b. Calculate stock return.
c. Estimation of drift value (µ) and volatility (𝜎).
d. Forecast of stock price.
e. Calculate MAPE value.
f. Calculate 95% confidence level.
2.4. Conclusion
At this stage obtaining conclusion from analysis and discussion is done.
2.5. Simulation and Report Writing

2
International Conference on Mathematics: Pure, Applied and Computation IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 974 (2018)
1234567890 ‘’“”012047 doi:10.1088/1742-6596/974/1/012047

At this stage simulation from the research is done and report writing follows after the simulation.
2.6. A subsection
Some text.

3. Research Output and Discussion


3.1. Pdf lognormal
At this section pdf lognormal distribution is obtained from pdf normal. For example, 𝑞 is random
variable which lognormal distributed then 𝑣 = 𝑙𝑛 𝑞 a is random variable which normally distributed
with mean µ and variance 𝜎 2 thus defining pdf from variable 𝑣 as follows:
(𝑣−µ)2
1 −
𝑒 2𝜎2 , 𝑓𝑜𝑟 − ∞ < 𝑣 < ∞,
𝜎√2𝜋
𝑓(𝑣) = � (1)
0 , 𝑓𝑜𝑟 𝑜𝑡ℎ𝑒𝑟 𝑣 .

Using the pdf from variable v pdf from variable 𝑞 is obtained. Based on one – one randomize
variable theorem, result variable 𝑞 pdf is obtained from the following equation [4]:
𝑓(𝑣)𝑑𝑣
ℎ(𝑞) = . (2)
𝑑𝑞
With substitution 𝑣 = 𝑙𝑛(𝑞),obtain
𝑑𝑣 = 𝑑(ln 𝑞),
1
= 𝑑𝑞.
𝑞
1
The with substitution of 𝑑𝑣 = 𝑑𝑞 to equation (2), obtain
𝑞
𝑓(𝑣) 𝑑𝑣
ℎ(𝑞) = , (3)
𝑑𝑞
2
1 ln 𝑞−µ
1 �−2� 𝜎 � � 1
𝑒 𝑑𝑞
𝜎√2𝜋 𝑞
= ,
𝑑𝑞
Thius pdf lognormal from variable 𝑞 as follow [4]:
1 ln 𝑞−µ 2
1 �− � � �
ℎ(𝑞) = 𝑒 2 𝜎 , (4)
𝑞𝜎√2𝜋
where:
µ ∶ mean distribution of variable 𝑞 lognormal
𝜎 2 ∶ variance of lognormal sitribution of variable 𝑞.
3.2. Lognormal mean distribution
Using the lognormal distribution pdf which obtained from equation (4) then finding the mean of
lognormal distribution is conductedsela. Lognormal distribution meand from variable Mean 𝑞 is
defined as [4]:
+∞
𝐸(𝑞) = ∫−∞ 𝑞ℎ(𝑞)𝑑𝑞 . (5)

1 ln 𝑞−µ 2
+∞ 1 �− � � �
= ∫−∞ 𝑒 2 𝜎 𝑑𝑞. (6)
𝜎√2𝜋
1
Suppose if 𝑦 = ln 𝑞 − µ then dy = dq. Integral ln 𝑞 = −∞ become 𝑦 = −∞ and ln 𝑞 = +∞
𝑞
become 𝑦 = +∞. Thus 𝐸(𝑞)can be written as:
𝑦2
+∞ 1 −
𝐸(𝑒 𝑦+µ ) = ∫−∞ 𝑒 𝑦+µ 𝑒 2𝜎2 𝑑𝑦, (7)
𝜎 √2𝜋
𝜎2 −(𝑦−𝜎2 )2
+∞ 1
= 𝑒 µ𝑒 2 ∫−∞ 𝑒 2𝜎2 𝑑𝑦. (8)
𝜎 √2𝜋

3
International Conference on Mathematics: Pure, Applied and Computation IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 974 (2018)
1234567890 ‘’“”012047 doi:10.1088/1742-6596/974/1/012047

𝑦−𝜎 2 1
Next, Suppose if 𝑧 = then 𝑑𝑧 = 𝑑𝑦. Integral 𝑦 = −∞ become 𝑧 = −∞ and 𝑦 = +∞ become
𝜎 𝜎
𝑦+µ
𝑧 = +∞. Thus 𝐸(𝑒 ) can be written as:
𝜎2 –𝑧2
2 +µ +∞ 1
𝐸�𝑒 𝑧𝜎+𝜎 � = 𝑒 µ+ 2 ∫−∞ 2𝜋 𝑒 2 𝑑𝑧. (9)

Integral on equation (9) is pdf from standard normal distribution and has value of 1, Thus mean
fuction of variable 𝑞 lognormal distribution is
𝜎2
𝐸(𝑞) = 𝑒 µ+ 2 , (10)
where:
µ ∶ mean distribution of variable 𝑞 lognormal
2
𝜎 ∶ variance of lognormal sitribution of variable 𝑞.

3.3. Expected stock price


At this section expected stock price formulation is conducted. Based on [4], equation
1
ln 𝑆𝑡 = ln 𝑆0 + �µ − 𝜎 2 � 𝑡 + 𝜎𝐵𝑡 , (11)
2
is Brownian motion with drift, where 𝐵𝑡 is Brownian motion in time t with µ = 0 and has value of 𝜀 √𝑡
[4]. Whereas Brownian motion definition with drift as follow [4]:
𝐵𝑡 = µ𝑡 + 𝜎𝑊𝑡 ,
(12)
where t represents time and 𝑊𝑡 adalah is random walk process with scale for big value of n and has
value of 𝜀√𝑡 [4]. Thus equation (11) and (12) can be written as :
1
ln 𝑆𝑡 = ln 𝑆0 + �µ − 𝜎 2 � 𝑡 + 𝜎𝐵𝑡 .
2
≡ (13)
𝐵𝑡 = µ𝑡 + 𝜎𝑊𝑡 .
First step to obtain expected stock price equation is by calculating mean value and variance of
Brownian motion with drift. Elaboration of the first step as follow
3.3.1. Calculate mean value of Brownian motion with drift
𝐸(𝐵𝑡 ) = 𝐸(µ𝑡 + 𝜎𝑊𝑡 ),
= 𝐸(µ𝑡) + 𝐸(𝜎𝑊𝑡 ),
= µ𝑡 + 𝐸(𝜎𝑊𝑡 ). (14)
Because 𝐸(𝑊𝑡 ) = 0, then
𝐸(𝐵𝑡 ) = µ𝑡. (15)

3.3.2. Calculate variance value of Brownian motion with drift


𝑉𝑎𝑟(𝐵𝑡 ) = 𝑉𝑎𝑟(µ𝑡 + 𝜎𝑊𝑡 ),
= 𝐸[(µ𝑡 + 𝜎𝑊𝑡 )2 ] − [𝐸(µ𝑡 + 𝜎𝑊𝑡 )]2 .
𝐸[(µ𝑡 + 𝜎𝑊𝑡 )2 ] = 𝐸[(µ𝑡)2 ] + 𝐸(2µ𝑡𝜎𝑊𝑡 ) + 𝐸[(𝜎𝑊𝑡 )2 ],
= (µ𝑡)2 + 2µ𝑡𝜎𝐸(𝑊𝑡 ) + 𝜎 2 𝐸�𝑊𝑡 2 �,
= (µ𝑡)2 + 0 + 𝜎 2 𝐸(𝑊𝑡 2 ). (16)
Based on definition of variance:
𝑉𝑎𝑟(𝑊𝑡 ) = 𝐸�𝑊𝑡 2 � − [𝐸(𝑊𝑡 )]2 ,
𝐸�𝑊𝑡 2 � = 𝑉𝑎𝑟(𝑊𝑡 ) + [𝐸(𝑊𝑡 )]2 , (17)
= 𝑡,
Then:
𝐸[(µ𝑡 + 𝜎𝑊𝑡 )2 ] = (µ𝑡)2 + 𝜎 2 𝑡.
[𝐸(µ𝑡 + 𝜎𝑊𝑡 )]2 = [𝐸(µ𝑡) + 𝐸( 𝜎𝑊𝑡 )]2 ,
= [µ𝑡 + 𝜎𝐸(𝑊𝑡 )]2 (18)
= (µ𝑡)2 ,

4
International Conference on Mathematics: Pure, Applied and Computation IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 974 (2018)
1234567890 ‘’“”012047 doi:10.1088/1742-6596/974/1/012047

Thus obtain:
𝑉𝑎𝑟(𝐵𝑡 ) = 𝐸[(µ𝑡 + 𝜎𝑊𝑡 )2 ] − [𝐸(µ𝑡 + 𝜎𝑊𝑡 )]2 ,
= (µ𝑡)2 + 𝜎 2 𝑡 − (µ𝑡)2 , (19)

= 𝜎 2 𝑡.
Based on the verification above, Brownian motion with drift is normal distributed equation with
𝜎2
mean µ𝑡 and variance 𝜎 2 𝑡 thus 𝑙𝑛 𝑆𝑡 normally distributed with mean 𝑙𝑛 𝑆𝑡−1 + �𝜇 − 2
�𝑡 and
variance 𝜎 2 𝑡 [4]. Thus expected 𝐸(𝑆𝑡 ) future stock price when 𝑡 is
𝜎2
ln 𝑆0 +�𝜇− �𝑡+𝜎 2 𝑡
𝐸(𝑆𝑡 ) = 𝑒 2 ,
𝜎2
�𝜇− �𝑡+𝜎 2 𝑡
= 𝑒 ln 𝑆0 𝑒 2 ,

𝜎2
��𝜇+ 2 �𝑡�
= 𝑆0 𝑒 (20)

where:
𝑆0 ∶ Actual beginning stock price
𝜇 ∶ drift of stock price
𝜎 ∶ volatility of stock price.
3.4. Confidence Level
For testing the forecast accuracy of geometric Brownian motion then 95% confidence level is
implemented. Based on the following equation:
1
ln 𝑆𝑡 = ln 𝑆0 + �µ − 𝜎 2 � 𝑡 + 𝜎𝐵𝑡 . (21)
2
With 𝑆𝑡 is actial stock price when 𝑡, µ and 𝜎 are estimated parameter from big sample from
population. Thus with 95% confidence level shows the actual stock price in 95% confidence level.
𝜎2
By using the parameter of mean 𝑙𝑛 𝑆0 + �𝜇 − � 𝑡 and variance of 𝜎 2 𝑡 which obtained form
2
previous discussion of expected stock price sub chapter, so that 95% confidence level and variable
𝑙𝑛 𝑆𝑡 as follow:
𝜎2 𝜎2
ln 𝑆0 + �𝜇 − � 𝑡 − 1,96𝜎√𝑡 ≤ 𝑙𝑛 𝑆𝑡 ≤ ln 𝑆0 + �𝜇 − � + 1,96𝜎√𝑡,
2 2
𝜎2 𝜎2
ln 𝑆0 +�𝜇− �𝑡−1,96𝜎√𝑡 ln 𝑆0 +�𝜇− �+1,96𝜎√𝑡
𝑒 2 ≤ 𝑆𝑡 ≤ 𝑒 , 2 (22)
where:
𝑆0 ∶ beginning stock price
𝑆𝑡 ∶ stock price when 𝑡
𝜇 ∶ stock price drift
𝜎 ∶ Stock price volatility
3.5. Normality test
At this stage, normality test of stock price data during January 1st 2014 to December 31st 2014 period
is conducted. Normality test is conducted to find whether the stock data is normally distributed or not.
Based on Kolmogorov – Smirnov normality test, shown 𝑝 ≥ 0,05, so it can be concluded that the
stock price is normally distributed and feasible to do stock price forecast on the data.
3.6. Stock price forecasting
At this stage stock price is forecasted on several registered companies, they are stock of Charoen
Pokphand Indonesia Tbk, Harum Energy Tbk, Media Nusantara Citra Tbk, PP London Sumatra
Indonesia Tbk, Vale Indonesia Tbk, Indo Tambangraya Megah Tbk and Indocement Tunggal Prakasa
Tbk. Data used to estimate the is daily stock close price during January 1st 2014 to December 31st
2014 period [6], whereas forecasting is done for January 1st 2015 period.

5
International Conference on Mathematics: Pure, Applied and Computation IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 974 (2018)
1234567890 ‘’“”012047 doi:10.1088/1742-6596/974/1/012047

Figure 1. Normality test

These are the stages in stock price forecasting.

3.6.1. Calculating stock return


At this stage monthly stock return calculation is conducted during January 2014 to December 2014
period using the following stock return equation [7]:
𝑆𝑡 −𝑆𝑡−1
𝑅𝑡 = , (23)
𝑆𝑡−1
where:
𝑅𝑡 ∶ stock return when 𝑡
𝑆𝑡 ∶ stock price when 𝑡
𝑆𝑡−1 ∶ stock price when 𝑡 − 1.

3.6.2. Drift value (µ) and volatility (𝜎) estimation


At this stage drift and volatility are estimated. Drift value and volatility are constant parameter of
stock that is used for forecasting January 2015 stock price. Drift formulation as defined [7]:
1
𝜇= ∑𝑀 𝑅 , (24)
𝑀𝛿𝑡 𝑡=1 𝑡
where:
𝜇 ∶ drift
𝑅𝑡 ∶ stock return
𝑀 ∶ amount of stock return.
To obtain drift value, mean calculation of drift value is required monthly from January 2014 to
December 2014.
After the drift value is obtained, then volatility value is calculated. The volatility formulation that is
used in this research is volatility common formula and log volatility. The equation of volatility and log
volatility as defined [7]:

6
International Conference on Mathematics: Pure, Applied and Computation IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 974 (2018)
1234567890 ‘’“”012047 doi:10.1088/1742-6596/974/1/012047

1
𝜎1 = � ∑𝑀 (𝑅 − 𝑅� )2 , (25)
(𝑀−1)𝛿𝑡 𝑡=1 𝑡
1
𝜎2 = �(𝑁−1)𝛿𝑡 ∑𝑁 2
𝑡=2(log 𝑆𝑡 − log 𝑆𝑡−1 ) , (26)
where:
𝜎1 ∶ volatility
𝜎2 ∶ log volatility
𝑅� ∶ mean of stock return
𝑀 ∶ amount of stock return data
𝑁 ∶ amount of stock data.

3.6.3. Stock price forecasting


At this stage stock price forecasting is conducted on seven stock close price on January 2015 using
geometric Brownian motion model. Forecast 1 and Forecast 2 using geometric Brownian motion
model by implementing common volattility and log volatility equation. On forecast 1 and forecast 2 to
forecast stock price on t time use the beginning actual stock price on 𝑡 − 1 time. Equation
implemented for forecast 1 and forecast 2 as [4]:
1
�µ− 𝜎 2 �𝑡+𝜎𝐵𝑡
𝐹𝑡 = 𝑆𝑡−1 + 𝑒 2 , (27)

where:
𝐹𝑡 ∶ stock price forecast when 𝑡
𝑆𝑡−1 ∶ actual stock price when 𝑡 − 1
𝜇 ∶ drift
𝜎 ∶ volatility, where 𝜎 = 𝜎1 or 𝜎 = 𝜎2
𝐵𝑡 ∶ 𝜀 √𝑡

Where on forecast 3 and forecast 4 geometric Brownian motion model with common volatility
equation and log volatility, however to forecast stock price when 𝑡 use the beginning value which
taken from forecast 𝑡 − 1. Equation used for forecast 3 and forecast 4 as follow:
1
�µ− 𝜎 2 �𝑡+𝜎𝐵𝑡
𝐹𝑡 = 𝐹𝑡−1 + 𝑒 2 , (28)
with 𝐹0 is actual stock price.

3.6.4. MAPE calculation


To determine the forecast accuracy can be determined by calculating MAPE of forecast 1, forecast 2,
forecast 3, and forecast 4. MAPE equation as defined [10]:
�𝑆𝑡 −𝐹(𝑆𝑡 )�
∑𝑁
𝑡=1 𝑆𝑡
𝑀𝐴𝑃𝐸 = , (29)
𝑁
where:
𝑆𝑡 ∶ actual stock price when 𝑡
𝐹(𝑆𝑡 ) ∶ stock price forecast when 𝑡
𝑁 ∶ amount of stock price data.

On figure 2 and figure 3 show the graph of stock price forecast of Media Nusantara Citra Tbk using
geometric Brownian motion.

7
International Conference on Mathematics: Pure, Applied and Computation IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 974 (2018)
1234567890 ‘’“”012047 doi:10.1088/1742-6596/974/1/012047

Figure 2. Forecast graph based on beginning value which taken from previous actual stock price

Figure 3. Forecast graph based on beginning value which taken ftom previous forecast
On table 1 shown the MAPE value of forecasts.
Table 1. Forecast MAPE
MAPE value of each forecast
Stock Forecast Forecast Forecast Forecast
1 2 3 4
Charoen Pokphand
Indonesia 2,0935% 1,1675% 2,9320% 1,6933%

Harum Energy 2,2033% 1,4982% 3,9128% 3,3974%


Media Nusantara Citra 3,0529% 1,9875% 2,6096% 4,6496%
PP London Sumatra
Indonesia 1,8726% 1,6479% 3,0614% 2,9718%

Vale Indonesia 1,7580% 1,5921% 4,7672% 4,3637%


Indo Tambang-
raya Megah 2,7305% 2,1767% 4,6661% 3,5049%

Indocement Tunggal
2,5349% 1,9187% 4,1217% 4,8249%
Prakasa

8
International Conference on Mathematics: Pure, Applied and Computation IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 974 (2018)
1234567890 ‘’“”012047 doi:10.1088/1742-6596/974/1/012047

Based on [4], with equation


1
�µ− 𝜎 2 �𝑡+𝜎𝐵
𝐹𝑡 = 𝐹𝑡−1 + 𝑒 2 𝑡
, (30)
where 𝐹0 = 𝑆0 is actual stock price and 𝐵𝑡 = 𝜀 √𝑡 [4]. Simualtion is made for stock price forecasting
with 1000 realization of trajectory that may be from geometric Brownian motion, with every
1
�µ− 𝜎 2 �𝑡+𝜎𝐵
realization of trajectory usig the equation of 𝐹𝑡 = 𝐹𝑡−1 + 𝑒 2 𝑡
with 22 iterations.
Suppose if 𝑖 is every trajectory realization that may be from geometric Brownian motion. Thus
for 𝑖 = 1
1
�µ− 𝜎 2 �𝑡+𝜎𝜀√𝑡
𝐹1 = 𝑆0 + 𝑒 2 , (31)
1
�µ− 𝜎2 �𝑡+𝜎𝜀√𝑡
𝐹2 = 𝐹1 + 𝑒 2 , (32)
.
.
.
1
�µ− 𝜎 2 �𝑡+𝜎𝜀√𝑡
𝐹22 = 𝐹21 + 𝑒 2 . (33)
For 𝑖 = 2
1
�µ− 𝜎 2 �𝑡+𝜎𝜀√𝑡
𝐹1 = 𝑆0 + 𝑒 2 , (34)
1
�µ− 𝜎2 �𝑡+𝜎𝜀√𝑡
𝐹2 = 𝐹1 + 𝑒 2 , (35)
.
.
.
1
�µ− 𝜎 2 �𝑡+𝜎𝜀√𝑡
𝐹22 = 𝐹21 + 𝑒 2 . (36)
For 𝑖 = 3
1
�µ− 𝜎 2 �𝑡+𝜎𝜀√𝑡
𝐹1 = 𝑆0 + 𝑒 2 , (37)
1
�µ− 𝜎2 �𝑡+𝜎𝜀√𝑡
𝐹2 = 𝐹1 + 𝑒 2 , (38)
.
.
.
1
�µ− 𝜎 2 �𝑡+𝜎𝜀 𝑡

𝐹22 = 𝐹21 + 𝑒 2 . (39)
Replication above is done until 𝑖 = 1000.
On figure 4 and figure 5 the simulation shown simualtion output of stock price forecast of Media
Nusantara Citra Tbk until 𝑖 = 1000 using common volatility equation and log volatility.

Figure 4. Stock price simulation model using common volatility equation

9
International Conference on Mathematics: Pure, Applied and Computation IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 974 (2018)
1234567890 ‘’“”012047 doi:10.1088/1742-6596/974/1/012047

Figure 5. Stock price simulation model using Log Volatility Equation


3.7. Simulation Model Analysis
Based on geometric Brownian motion simulation model with 1000 possible trajectory, At this stage
calculation of expected stock price and 95% confidence level for each stock price data is conducted.
Based on [4], to calculate expected stock price when 𝑡 = 22 use the equation (7), as follow:
𝜎2
��𝜇+ 2 �𝑡�
𝐸(𝑆𝑡 ) = 𝑆0 𝑒 . (40)
Wherwas to calculate 95% confidence level from stock price required the following equation (8):
𝜎2 𝜎2
ln 𝑆0 +�𝜇− �𝑡−1,96𝜎√𝑡 ln 𝑆0 +�𝜇− �+1,96𝜎√𝑡
𝑒 2 ≤ 𝑆𝑡 ≤ 𝑒 2 . (41)

On table 2 and table 3 shown the confidence levelof 95% from seven stock price data.

Table 2. Confidence level of stock price with common volatility equation


95% Confidence Level
Stock
𝐸(𝑆𝑡 ) L 𝑆𝑡 U
Charoen Pokphand Indonesia 3853 3231 3955 4527
Harum Energy 1606 1533 1520 1722
Media Nusantara Citra 2555 2097 2860 3055
PP London Sumatra Indonesia 1914 1563 1840 2299
Vale Indonesia 3802 3036 3450 4007
Indo Tambangraya Megah 14820 12026 16750 18155
Indocement Tunggal Prakasa 25648 21442 23000 30214

Table 3. Confidence level of stock price using log volatility equation


95% Confidence Level
Stock
𝐸(𝑆𝑡 ) L 𝑆𝑡 U
Charoen Pokphand Indonesia 3841 3560 3955 4132
Harum Energy 1601 1476 1520 1730
Media Nusantara Citra 2545 2336 2860 2763
PP London Sumatra Indonesia 1907 1737 1840 2071
Vale Indonesia 3784 3434 3450 4150
Indo Tambangraya Megah 14759 13479 16750 16094
Indocement Tunggal Prakasa 25569 23673 23000 27535

10
International Conference on Mathematics: Pure, Applied and Computation IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 974 (2018)
1234567890 ‘’“”012047 doi:10.1088/1742-6596/974/1/012047

Based on table 2 and table 3, 95% confidence level using log volatility equation tends to have
narrow interval compared to 95% confidence level using common volatility equation. Thus on the
simulation there is several actual stock price located outside trajectory realization that may be from
geometric Brownian motion.

4. Conclusions
Based on the analysis and discussion, it can be concluded that short term forecasting which are
forecast 1 and forecast 2 have MAPE value of ≤ 𝟐𝟎%. Whereas long term forecast which are forecast
3 and forecast 4 are dissatisfactory because actual stock price located outside green line or outside the
area of forecast value.

References
[1] “http://www.idx.co.id/id/id-id/beranda/informasi/bagiinvestor/pengan tarpasarmodal.aspx”
accessed on 6 February 2015.
[2] “http://www.idx.co.id/id/id-id/beranda/informasi/bagiinvestor/indeks. aspx” accessed on 6
February 2015.
[3] “http://www.idx.co.id/id/id-id/beranda/informasi/bagiinvestor/saham. aspx” accessed on 6
February 2015.
[4] Dmouj, A. 2006. “Stock price modelling:Theory and Practice”. Vrije Universiteit Faculty of
sciences Amsterdam, The Netherlands.
[5] Omar, A., Jaffar, M.M., 2014. “Forecasting Share Price of Small Size Companies in Bursa
Malaysia Using Geometric Brownian Motion”. An Journal International, Applied Mathematics &
Information Sciences 8, No, 1:107-112. Faculty of Computer and Mathematical Sciences,
Universiti Teknologi MARA, 40450 Selangor, Malaysia.
[6] “finance.yahoo.com” accessed on 12 January 2015.
[7] Willmot, P., 2007. “Introduces Quabtitative Finance”. 2nd Edition, John Wiley & Son, Ltd,
Chichester.
[8] Lawrence, K. D., Klimberg R. K., & Lawrence S. M. 2009. “Fundamentals of forecasting using
excel”. Industrial Press Inc, America.

11

You might also like