volume. We choose the daily close as our target for
random walk simulation. In order to get more
practical knowledge on the simulations, the 20-year
KOSPI are furthermore divided into five sub-groups:
there are 248 daily closes for 2020, 1220 for 2016-
2020, 2456 for 2011-2020, 3700 for 2006-2020, and
4935 for 2001-2020.
2.2 Random Walk Model
The classical random walk is a path obtained by
tossing a fair coin continuously (
Feller, 1968
): define
a side of coin and the other side of coin as 1 and –1,
record 1 or –1 for each tossing, and finally add the
recorded 1 and –1 together. In graphic presentation,
the x-axis is time (number of tossing of coin), and the
y-axis is the addition of recorded 1 and –1. As the
tossing of coin is a random event, its addition is a
series of random events, which construct a random
walk.
2.3 KOSPI in a Simplified Form
Similar to the consideration in random walk, the
KOSPI can also be presented in a similar way, i.e. if
KOSPI close in a day is higher or lower than that in
its previous day, we record 1 or –1 for the day, and
finally we add these 1 or –1 step-by-step along the
time course. Graphically, this operation will have the
x-axis as time and y-axis as the addition of recorded
1 or –1. Basically, this graph is a simplified KOSPI
when we consider only its up or down movement
daily. In this type of simulation studies, we use the
random walk to fit this simplified KOSPI profile.
2.4 Random Walk in Decimal Format
Although the classical random walk is just related to
1 or –1, we should expand its concept to decimals to
accommodate KOSPI because KOSPI is in decimal
form. Conceptually, this means that we toss an item
with many sides, each of which represents a number
in decimals. This is possible because we do not toss a
physical coin to generate a random walk but use a
computer to generate a series of random numbers,
which in fact are decimal numbers. Actually, we have
to round the decimal numbers to integer in order to
construct a classical random walk. Hence, we can
simply use a computer to generate a series of random
numbers, and then add them along the time course,
which is a random walk in decimal format useful to
compare with the real-life KOSPI.
2.5 Simulation
The simulation is done by means of computation with
random numbers generated by Monte-Carlo
algorism. The generated random numbers are
rounded to integers for simplified KOSPI and without
rounding for real-life KOPIS. Thereafter, the random
walk in both 1/–1 and decimal formats are compared
with the simplified and real-life KOSPI. This process
is continued until the random walks are very
approximate to the simplified and real-life KOSPI.
Because the Monte-Carlo algorism requires a seed to
generate a series of random numbers, 100 thousand
seeds ranging from 0 to 10 are used to find the best
simulation in this range.
3 RESULTS AND DISCUSSION
Table 1 explains how to perform the random walk
simulation in both 1/–1 and decimal formats.
Columns 1and 2 are the first 10 trading days in 2020
and their corresponding KOSPI close. Column 3 is a
list comparing whether a KOSPI close is larger or
smaller than that in its previous day in terms of the
1/–1 format. For example, 2176.46, the KOSPI close
on January 3, 2020 is larger than 2175.17, the KOSPI
close on January 2, 2020, so 1 is assigned to the
second cell in column 3. Column 4 is the addition of
each cell in column 3, resulting in a KOSPI in the 1/–
1 format. Column 5 is the random numbers generated
by Monte Carlo simulation using SigmaPlot (
SPSS
Inc., 1986-2001
) with a seed of 0.78654, which is the
best one of 100,000 seeds. Column 6 is the
comparison of whether the generated random number
is larger or smaller than its preceding random number
in the 1/–1 format. Column 7 is the classical random
walk by adding each number in column 6, and is
compared with column 4 for goodness-of-fit. The last
two columns describe how to perform a random walk
simulation in the decimal format. Column 8 is the
random numbers generated by Monte Carlo
simulation using SigmaPlot with one of the following
ten seeds: 7.30548, 7.30549, . . . 7.30557. The
command for generation of random numbers
generally includes the generated number of random
numbers, seed, upper and lower ranges, and we use
the standard deviation of the KOSPI close in 2020
upper and lower ranges. Column 9 is the random walk
in the decimal format by adding each random number
in column 8, and then we can compare the KOSPI
close value in column 2 with the random walk
simulation in column 9.