A Mathematical Model Reveals That Both Randomness and Periodicity Are Essential for Sustainable Fluctuations in Stock Prices

Author(s)
Motohisa Osaka

Affiliation(s)

Department of Basic Science, Nippon Veterinary and Life Science University, Musashino, Tokyo, Japan.

Department of Basic Science, Nippon Veterinary and Life Science University, Musashino, Tokyo, Japan.

ABSTRACT

Is it true that there is an implicit understanding that Brownian motion or fractional Brownian motion is the driving force behind stock price fluctuations? An analysis of daily prices and volumes of a particular stock revealed the following findings: 1) the logarithms of the moving averages of stock prices and volumes have a strong positive correlation, even though price and volume appear to be fluctuating independently of each other, 2) price and volume fluctuations are messy, but these time series are not necessarily Brownian motion by replacing each daily value by 1 or –1 when it rises or falls compared to the previous day’s value, and 3) the difference between the volume on the previous day and that on the current day is periodic by the frequency analysis. Using these findings, we constructed differential equations for stock prices, the number of buy orders, and the number of sell orders. These equations include terms for both randomness and periodicity. It is apparent that both randomness and periodicity are essential for stock price fluctuations to be sustainable, and that stock prices show large hill-like or valley-like fluctuations stochastically without any increasing or decreasing trend, and repeat themselves over a certain range.

Is it true that there is an implicit understanding that Brownian motion or fractional Brownian motion is the driving force behind stock price fluctuations? An analysis of daily prices and volumes of a particular stock revealed the following findings: 1) the logarithms of the moving averages of stock prices and volumes have a strong positive correlation, even though price and volume appear to be fluctuating independently of each other, 2) price and volume fluctuations are messy, but these time series are not necessarily Brownian motion by replacing each daily value by 1 or –1 when it rises or falls compared to the previous day’s value, and 3) the difference between the volume on the previous day and that on the current day is periodic by the frequency analysis. Using these findings, we constructed differential equations for stock prices, the number of buy orders, and the number of sell orders. These equations include terms for both randomness and periodicity. It is apparent that both randomness and periodicity are essential for stock price fluctuations to be sustainable, and that stock prices show large hill-like or valley-like fluctuations stochastically without any increasing or decreasing trend, and repeat themselves over a certain range.

1. Introduction

It is generally considered difficult to forecast the behavior of stock prices, and thus many methods have been proposed. For example, fundamental analysis and technical analysis are widely used approaches. Fundamental analysis involves investigating any data that can be expected to impact the price of a stock. The advantage of this method is that the estimation is objective because the selected economic indicators such as future growth, return on equity, and profit margins are inputted into a particular relational expression to predict the stock price. However, because there is often a time lag prior to the release of economic indicators, one drawback of this approach is that the economic indicators may be outdated. In contrast, technical analysis focuses only on the trading and price history of a stock. The principle underlying technical analysis is that the market price reflects all available information that could affect the stock market. As a result, there is no need to take new economic developments into account because they are already priced into a given security. Technical analysts generally believe that prices move in trends, and that history tends to repeat itself. However, these trends may be a product of chance, and there may actually be a chance that large hill-like or valley-like fluctuations are also considered to be trends. It seems that the market fluctuates based on psychological aspects. There are two major types of technical analysis: chart patterns and technical indicators. Chart patterns are a subjective form of analysis wherein technicians attempt to identify areas of support and resistance on a chart by observing specific patterns. These patterns, identified based on experience and behavioral economics, are designed to predict where prices are headed following a breakout or breakdown from a specific price point. Technical indicators are a statistical form wherein technicians apply various mathematical formulas to prices and volumes. The most common technical indicators are moving averages, which smooth price data to make it easier to spot trends.

Difficulties arise in terms of predicting stock prices because daily changes in stock prices seem to be quite random. In particular, fluctuations in stock prices are considered to follow Brownian motion, fluctuating independently of past stock prices. The notion of using a Brownian motion process to explain the behavior of stock prices was first proposed by Black et al. [1] . A Brownian motion process has the property of independent increments. This means that the present price does not affect future prices. However, the present stock price may influence the stock price at some time in the future. Hence, a Brownian motion process is not suitable for explaining stock price movements. Subsequently, a fractional Brownian motion process, which exhibits the property of long-range dependence, was proposed [2] . Meanwhile, it is also considered that there is a relationship between stock price and volume [3] [4] . Volume is an important aspect of technical analysis because it is used to confirm trends and chart patterns. Any price motion up or down with relatively high volume is seen as a stronger, more relevant move than a similar move with weak volume. Data that are available to general investors include time series of stock prices and volumes. As pointed out in the past, the trend of the stock price itself is random [5] , and using this data alone, it is completely unpredictable how the price will change in the near future. However, since volume is a measure of how much interest sellers and buyers have in the stock, volume data provide a better understanding of stock price fluctuations.

There is already a famous stochastic differential equation that attempts to mathematically elucidate the transition of one bond and one or more stock prices [1] , but the purpose of this study is to reveal the driving force behind sustainable fluctuations in the price of an arbitrary stock using a mathematical model. The rest of this paper is organized as follows. Sections 2 and 3 clarify the relationship between stock prices and volumes, Section 4 presents a model of the proposed relationship, Sections 5 and 6 present an interpretation of the simulation, and Section 7 discusses the effectiveness of the model by comparing the results of the simulation with real data.

2. Characteristics of the Real Data

It is possible to obtain time-series data (e.g., closing prices and volumes) in relation to stock prices for free via the Internet. Although it is acceptable to use data from any source, because the author lives in Japan, data for 50 stocks on the First Section of the Tokyo Stock Exchange were used. It is considered that the results will not lose generality outside Japan.

As an example, time-series data on the stock price of the Takeda Pharmaceutical Company Limited, one of the leading pharmaceutical companies in Japan, was examined.

Figure 1(a) shows the fluctuations in closing prices (abbreviated to prices hereafter) (p_{i}; i = 1, 2, …, 9012) from 4 January 1983 to 20 March 2019. Figure 1(b) shows the difference, Dp_{i}, between p_{i}_{+1} and p_{i} (i = 1, 2, …, 9011). Figure 1(c) shows the fluctuations in volume (v_{i}; i = 1, 2, …, 9012). Figure 1(d) shows that the difference, Dv_{i}, between v_{i}_{+1} and v_{i} (i = 1, 2, …, 9011) appears to be fluctuating periodically. Figure 1(e) shows the fluctuations in Dp_{i}/log_{e}(v_{i}) (i = 1, 2, …, 9011). Since this is an indicator of how much the volume affects the change in stock prices compared with the previous day, I have introduced it anew. If Dp_{i} is ³ 0, Bp_{i} is represented as 1 (i = 1, 2, …, 9011), otherwise Bp_{i} is represented as –1. Figure 1(f) shows the fluctuations in Bp_{i} (i = 1, 2, …, 9011). Bp_{i} indicates whether the price is rising or falling. The frequency of Bp_{i} = 1 is 0.5461. If Dv_{i} is ³ 0, Bv_{i} is represented as 1 (i = 1, 2, …, 9011), otherwise Bv_{i} is represented as –1. Bv_{i} indicates whether the volume is rising or falling. The frequency of Bv_{i} = 1 is 0.4924. Figure 1(g) shows the fluctuations in Bv_{i} (i = 1, 2, …, 9011). From the frequency analysis of Dp_{i} and Dv_{i}, it can be seen that the power of Dp_{i} is almost 0 compared with the power of Dv_{i}, and Dp_{i} has no characteristic period, but Dv_{i} has a period of one to three days (see Figure 2). Figure 3 shows the autocorrelation function of p_{i}, Rpp(τ) (=E[p_{i}·p_{i}_{+τ}]), the autocorrelation function of v_{i}, Rvv(τ) (=E[v_{i}·v_{i}_{+τ}]), and the cross-correlation function, Rpv(τ) (=E[p_{i}·v_{i}_{+τ}]), where τ represents the time lag in days. Although Rpp(τ) and Rpv(τ) are very small compared with Rvv(τ), and are almost zero, Figure 3 indicates that there is a significant correlation between v_{i} and v_{i}_{+1}. The moving averages are computed: Mp_{i}, the mean with a window of length 101 that includes the element in the current position, p_{i}, and 100 elements backward, and Mv_{i}, the mean with a window of length 101 that includes the element in the current position, v_{i}, and 100 elements backward. These are then converted to logarithms: LMp_{i} = log_{e}(Mp_{i}) and LMv_{i} = log_{e}(Mv_{i}). Figure 4 shows the relationship between LMv_{i} and LMp_{i}. The relationship is significant, with a correlation coefficient of 0.7312 (at the 0.05 significance level).

Figure 1. (a) Stock prices (p_{i}; i =1, 2, …, 9012) from 4 January 4 1983 to 20 March 2019; (b) The difference, Dp_{i}, between p_{i}_{+1} and p_{i} (i =1, 2, …, 9011); (c) Volumes (v_{i}; i = 1, 2, …, 9012); (d) The difference, Dv_{i}, between v_{i}_{+1} and v_{i} (i = 1, 2, …, 9011); (e) Dp_{i}/log_{e}(v_{i}) (i = 1, 2, …, 9011). If Dp_{i} is ≥ 0, Bp_{i} is represented as 1 (i = 1, 2, …, 9011), otherwise Bp_{i} is represented as –1; (f) Bp_{i} (i = 1, 2, …, 9011). If Dv_{i} is ≥0, Bv_{i} is represented as 1 (i = 1, 2, …, 9011), otherwise Bv_{i} is represented as –1; (g) Bv_{i} (i = 1, 2, …, 9011). The red lines in (a)-(e) represent the moving averages.

Figure 2. Frequency analysis of Dp_{i} and Dv_{i}. The two arrows indicate that the power of Dp_{i} is extremely small compared with the power of Dv_{i}.

Figure 3. The autocorrelation function of p_{i}, R_{pp}(τ) (=E[p_{i}·p_{i}_{+τ}]) (yellow line), the autocorrelation function of v_{i}, R_{vv}(τ) (=E[v_{i}·v_{i}_{+τ}]) (blue line), and the cross-correlation function, R_{pv}(τ) (=E[p_{i}·v_{i}_{+τ}])(yellow line); t represents the time lag in days.

Figure 4. Plots of LMv_{i} and LMp_{i}. LMv_{i} is the logarithm of moving averages of v_{i}, while LMp_{i} is the logarithm of moving averages of p_{i}.

The following findings are based on the information presented in Figures 1-4.

1) Comparing Figure 1(a) and Figure 1(c), it can be seen that there are days when the volume has increased before a rise in the stock price, but it appears that the price is not always linked to a change in the volume.

2) Comparing Figure 1(b) and Figure 1(d), it can be seen that Dp_{i} and Dv_{i} appear to fluctuate independently. Close observation of the fluctuations in price and volume reveals that Dv_{i} appears to change periodically. Figure 2 shows that Dv_{i} has a period of one to three days. Figure 3 shows that the present price is not correlated with the past stock price, and the stock price is not correlated with the volume, although the present volume is related to the volume over several days, especially that of the previous day.

3) Figure 1(f) and Figure 1(g) show that Bp_{i} and Bv_{i} do not return to the origin again after having done so several times near the beginning (18 times for Dp_{i} and 22 times for Dv_{i}). It is understandable that a return to the origin is unlikely in the case of Brownian motion processes because of the arc sine law of last returns, but even if Bp_{i} and Bv_{i} follow a Brownian motion process, the number of returns to the origin is at most 22 and the probability of this occurrence is low (0.1820), as shown in the theorem presented in the Appendix. Therefore, neither Bp_{i} nor Bv_{i} may be considered to follow a Brownian motion process.

4) Figure 1(e) shows that, for example, even if Dp_{i} rises by only a little, Dp_{i}/log_{e}(v_{i}) will rise sharply when the volume is small. That is, Dp_{i}/log_{e}(v_{i}) represents the degree of interest in the stock.

5) Since Figure 4 shows that LMp_{i} and LMv_{i} have a significant positive correlation, it follows that there is a positive correlation between the transition of prices and the transition of its volumes from the logarithm of moving average of 101 days in total.

The following points can be used to construct a mathematical model from the above findings.

a) From (2), fluctuations in price and volume seem to be random and independent, but Dv_{i} appears to change periodically.

b) From (5), LMp_{i} and LMv_{i} have a significant positive correlation.

3. Behavioral Psychology of Investors Affecting Stock Prices

A high volume of turnover means that there are numerous buyers and sellers who are interested in the stock. It has become clear that the average price over the long term (101 days in the above example) is significantly correlated with the average volume during the same period. Therefore, it is essential to know the investors’ mindsets because the volume reflects the interest of buyers and sellers in the stock. Since Bv_{i} indicates whether the volume is rising or falling, it reflects rising or falling interest on the part of buyers and sellers.

The prospect theory of behavioral finance suggests that investors who are overly preoccupied with the negative effects of losses in comparison to an equivalent amount of gains tend to take a short-term view of an investment [6] . This leads those investors to pay far too much attention to the short-term volatility of their stock portfolios. Thus, in general, investors tend to limit their losses by selling their stocks, being overly preoccupied with their latest losses, even though the price of their stock may have subsequently risen.

The gambler’s fallacy occurs when, during a series of coin tosses, the gambler thinks that a tail is due following a series of heads. This idea is often used in behavioral economics. In relation to investment, it is easy to become susceptible to the gambler’s fallacy. For example, when prices rise over several successive days, many investors will come to believe that, even if there is no rational reason to think so, they will soon fall again. They have various criteria that they use in their decision-making, and even if they are not actually selling, there is a significant possibility that this feeling will affect their judgment. Investors think that the stock price will go up as they go down on a daily basis, and if the stock is bought, it will often happen that the stock price will go down further and lose.

In summary, investors tend to sell in the short term to secure a slight profit because they dislike losses in accordance with the loss avoidance aspect of prospect theory. Meanwhile, they tend to think that prices that are continuing to rise should fall soon, based on the gambler’s fallacy. However, there is also a tendency to think that prices will continue to rise. Then, the buying and selling behavior will be repeated periodically to some extent. This summary can be used to construct a mathematical model based on the following conditions. There are random fluctuations in relation to stock prices, the number of buy orders, and the number of sell orders. In particular, the number of buy orders and the number of sell orders fluctuate periodically.

4. Mathematical Model

Stock prices, the number of buy orders, and the number of sell orders are represented by P, B, and S, respectively. Figure 5 shows the interactions among P, B, and S. The formulations of these relationships are as follows:

$\frac{\text{d}P}{\text{d}t}=a\left(B-S\right)-{r}_{1}\cdot RN{D}_{1}\cdot P+{t}_{1}\cdot sign\left(RN{D}_{4}-{t}_{2}\right),$ (1)

$\frac{\text{d}B}{\text{d}t}=b\left(1-{r}_{2}\cdot RN{D}_{2}\cdot \mathrm{sin}\left(2\text{\pi}ft\right)\right)\cdot P-B,$ (2)

$\frac{\text{d}S}{\text{d}t}=c\left(1-{r}_{3}\cdot RN{D}_{3}\cdot \mathrm{sin}\left(2\text{\pi}ft\right)\right)\cdot P-S,$ (3)

where a, b, c, r_{1}, r_{2}, r_{3}, t_{1}, t_{2}, and f are positive constants. sign(x) is 1 if x > 0, 0 if x = 0, and –1 if x < 0. RND_{1}, RND_{2}, RND_{3}, and RND_{4} are uniformly distributed random numbers in the interval (0, 1), each of which changes every time step on solving these differential equations by using ode45 of MATLABÒ. In equation (1), B – S represents the volume. If
${t}_{1}\cdot sign\left(RN{D}_{4}-{t}_{2}\right)>0$ , prices are increasing, if
${t}_{1}\cdot sign\left(RN{D}_{4}-{t}_{2}\right)=0$ , prices display no trend, and if
${t}_{1}\cdot sign\left(RN{D}_{4}-{t}_{2}\right)<0$ , prices are decreasing. In Equations (1), (2), and (3), - r_{1}·RND_{1}·P, -B, and -S are necessary to prevent these variables from diverging to infinity. A preliminary study indicated that RND_{1}, RND_{2}, RND_{3}, and RND_{4} are required for P, B, and S to fluctuate randomly in various changes, similar to real data. This finding suggests that continuous up-and-down changes are the result of the randomness of prices.

Figure 5. Relationships among prices, buy orders, and sell orders. Arrows represent promotion, while blocked arrows represent suppression. The red lines represent random noise. A wave in the circle between prices and buy orders (or sell orders) indicates that the effect of promoting or suppressing the buy orders (or sell orders) on the stock price changes periodically.

5. Results

The parameters are set as follows: a = 0.2, b = 2, c = 1, r_{1} = 0.4, r_{2} = 2, r_{3} = 4, and f = 0.2.

5.1. t_{1} = 0, t_{2} = 0

Regardless of
${t}_{1}\cdot sign\left(RN{D}_{4}-{t}_{2}\right)=0$ , there are a couple of significant rises in prices, as if there was a trend (see Figure 6). However, the prices do not increase constantly. It can be seen from Figure 6(f) and Figure 6(g) that the number of times Bp_{i} and Bv_{i} cross the origin is extremely small. Figure 7 shows the relationship between LMv_{i} and LMp_{i}. The relationship is significant with a correlation coefficient of 0.7452 (at the 0.05 significance level).

Figure 6. Plots of P (=p_{i}), Dp_{i}, V (=v_{i}), Dv_{i}, Dp_{i}/log_{e}(v_{i}), Bp_{i}, and Bv_{i}, which are calculated at t_{1} = 0, t_{2} = 0. The red lines in (a)-(e) represent the moving averages.

Figure 7. Plots of LMv_{i} and LMp_{i}, which are calculated at t_{1} = 0, t_{2} = 0.

5.2. t_{1} = 0.001, 0.005, or 0.01, t_{2} = 0

As t_{2} = 0,
${t}_{1}\cdot sign\left(RN{D}_{4}-{t}_{2}\right)>0$ . When 0.001 < t_{1} < 0.005, prices do not necessarily show an upward trend. When t_{1} = 0.01, prices show a constant upward trend (see Figure 8). Thus, Bp_{i} and Bv_{i} are constantly increasing. Figure 9 shows the relationship between LMp_{i} and LMv_{i}. The relationship is significant with a correlation coefficient of 0.8778 (at the 0.05 significance level). The correlation between price and volume is stronger for the condition t_{1} = 0.01, t_{2} = 0 than for the condition t_{1} = 0, t_{2} = 0.

5.3. t_{1} = 0.01; t_{2} = 0.25, 0.5, or 0.75

When t_{2} = 0.25,
${t}_{1}\cdot sign\left(RN{D}_{4}-{t}_{2}\right)>0$ with probability of 0.75. When t_{2} = 0.5,
${t}_{1}\cdot sign\left(RN{D}_{4}-{t}_{2}\right)>0$ with probability of 0.5. When t_{2} = 0.75,
${t}_{1}\cdot sign\left(RN{D}_{4}-{t}_{2}\right)>0$ with probability of 0.25, in other words,
${t}_{1}\cdot sign\left(RN{D}_{4}-{t}_{2}\right)<0$ with probability of 0.75. When t_{2} = 0.25, prices show an upward trend. When t_{2} = 0.5, price fluctuations show various patterns. When t_{2} = 0.75, prices are constantly decreasing (see Figure 10).

6. Mathematical Analysis

The parameters are the same as in Section 5.1, namely, a = 0.2, b = 2, c = 1, r_{1} = 0.4, r_{2} = 2, r_{3} = 4, f = 0.2, t_{1} = 0, and t_{2} = 0. Then the prices do not increase constantly, and are confined within a certain range. This can be confirmed by mathematical analysis as follows. The volume, B – S, is represented by V.

Figure 8. Plots of P (=p_{i}), Dp_{i}, V (=v_{i}), Dv_{i}, Dp_{i}/log_{e}(v_{i}), Bp_{i}, and Bv_{i}, which are calculated at t_{1} = 0.01, t_{2} = 0. The red lines in (a)-(e) represent the moving averages.

Figure 9. Plots of LMv_{i} and LMp_{i}, which are calculated at t_{1} = 0.01, t_{2} = 0.

Figure 10. Plots of P and V, which are calculated at t_{1} = 0.01, t_{2} = 0.25, 0.5, or 0.75.

As t_{1} = 0, Equation (1) is expressed as follows.

$\frac{\text{d}P}{\text{d}t}=0.2\cdot V-{r}_{1}\cdot RN{D}_{1}\cdot P$ (4)

Equation (2) minus Equation (3) is expressed as follows.

$\frac{\text{d}V}{\text{d}t}=\left(1-4\cdot \left(RN{D}_{2}-RN{D}_{3}\right)\cdot \mathrm{sin}\left(2\text{\pi}ft\right)\right)\cdot P-V$ (5)

here ${r}_{1}\cdot RN{D}_{1},RN{D}_{2}-RN{D}_{3},\left(RN{D}_{2}-RN{D}_{3}\right)\cdot \mathrm{sin}\left(2\text{\pi}ft\right)$ are denoted as α, β, and γ, respectively. Since these parameters include random numbers or time variables, these parameters are considered below once as constants. Then Equations (4) and (5) are considered to be ordinary differential equations.

$\frac{\text{d}}{\text{d}t}\left(\begin{array}{c}P\\ V\end{array}\right)=\left(\begin{array}{cc}-\alpha & 0.2\\ 1-4\gamma & -1\end{array}\right)\left(\begin{array}{c}P\\ V\end{array}\right)$ (6)

The characteristic polynomial of Equation (6) is given by

${\lambda}^{2}+\left(1+\alpha \right)\lambda +\alpha +0.8\gamma -0.2=0$ . (7)

$\lambda =\frac{-\left(1+\alpha \right)\pm \sqrt{{\left(1+\alpha \right)}^{2}-4\left(\alpha +0.8\gamma -0.2\right)}}{2}$ (8)

If $-\alpha -0.8\gamma +0.2>0,\gamma <\left(1-5\alpha \right)/4$ . Then, one of the two eigenvalues is positive and the other is negative. Since α is distributed uniformly in (0, 0.4), $-1/4<\left(1-5\alpha \right)/4<1/4$ .

If $\gamma <-1/4$ , one of the two eigenvalues is always positive.

As $\gamma \left(=\left(RN{D}_{2}-RN{D}_{3}\right)\cdot \mathrm{sin}\left(2\text{\pi}ft\right)\right)$ is $\beta \cdot \mathrm{sin}\left(2\text{\pi}ft\right)$ , $\beta \cdot \mathrm{sin}\left(2\text{\pi}ft\right)<-1/4$ . Now, $-1<\beta <1$ .

If $\mathrm{sin}\left(2\text{\pi}ft\right)>0$ ,

$\beta <-\frac{1}{4\mathrm{sin}\left(2\text{\pi}ft\right)}\le -\frac{1}{4}$ (9)

If $\mathrm{sin}\left(2\text{\pi}ft\right)<0$ ,

$\beta >-\frac{1}{4\mathrm{sin}\left(2\text{\pi}ft\right)}\ge \frac{1}{4}$ (10)

As RND_{2} and RND_{3} are distributed uniformly in (0, 1), the probability density function, f(β), of β (=RND_{2} - RND_{3}) is expressed as shown in Figure 11. The probability of β < -1/4 is 9/32, and the probability of β > 1/4 is 9/32. The total time of
$\mathrm{sin}\left(2\text{\pi}ft\right)>0$ is 50% in any observation time. Similarly, the total time of
$\mathrm{sin}\left(2\text{\pi}ft\right)<0$ is 50% in any observation time. Hence, the total time of γ < -1/4 is at most 9/32 in any observation time. Conversely, if γ > 1/4, the two eigenvalues are always negative real numbers or complex numbers with negative real parts. In the same way as γ < -1/4, the total time of γ > 1/4 is at most 9/32 in any observation time. In the remaining time, when -1/4 < γ < 1/4, there are various combinations of the two eigenvalues: one positive and the other negative

Figure 11. Probability density function, f(β), of β (=RND_{2} - RND_{3}). The area of each blue triangle is 9/32.

real numbers, two negative real numbers, and two complex numbers with negative real parts. In no cases do two positive real eigenvalues or two complex eigenvalues with positive real parts occur. P does not diverge to infinity or converge to zero because the two eigenvalues are not always positive real numbers (or complex numbers whose real parts are positive numbers) and not always negative real numbers. Hence, P fluctuates within a certain range.

7. Discussion

In this study, the relationship between the price and trading volume of a stock is examined. Fluctuations in prices and volumes seem to be random and independent, but LMp_{i} and LMv_{i} have a significant positive correlation. In particular, Dv_{i} appears to change periodically, based on frequency analysis. The present volume is related to the volume over the last few days, especially the previous day. A preliminary study indicated that RND_{1}, RND_{2}, RND_{3}, and RND_{4} are required for P, B, and S to fluctuate daily in the same manner as real data. These findings suggest that fluctuations in stock prices are characterized by both randomness and periodicity. Although there is a tacit understanding that continual fluctuations in stock prices are the result of Brownian motion, Kong et al. reported the possibility that fractional Brownian motion is the driving force [2] . However, Brownian motion seems unlikely to be the only driving force based on the results for Bp_{i} and Bv_{i} obtained in Section 2. The prospect theory of behavioral finance suggests that investors who are overly preoccupied with the negative effects of losses tend to limit their losses by selling their stocks. Investors who have fallen into the gambler’s fallacy sell their stocks in the belief that prices are due to fall if they have been rising. However, when the stock price rises further, they then try to buy it back, thinking it will continue to rise. Thus, there is repeated buying and selling over a short period without sound underlying reasons. This is why stock prices include a periodic factor. Thus, the differential equations consist of a component for randomness, as well as one for periodicity (see Figure 5).

The prices of an arbitrary stock generally display up-and-down motions, but are generally confined within a certain range. Although technical analysts believe that prices generally move in trends and that history tends to repeat itself, the findings in Section 5.1 indicate that stock prices show large hill-like or valley-like fluctuations stochastically without any increasing or decreasing trend, and repeat themselves over a certain range. This seems to be natural at first glance, but the question arises as to what is the driving force.

From Section 5, it can be seen that the stock price increases almost monotonically if the change in the price of a certain stock is accompanied by an increasing trend without noise (as well as a decreasing trend). However, in reality, it seems that randomness mixes with this increasing or decreasing trend. Thus, stock prices can fluctuate unpredictably depending on the degree of this mixing, making it difficult to predict stock prices. From Section 5.2, it can be seen that if a noise-free increasing or decreasing trend is added to stock prices, LMp_{i} and LMv_{i} have a stronger positive correlation. Then, since the prices increase almost monotonically, they become predictable. In other words, if all of the information, including external factors, affecting stock prices is known, stock prices can be predicted. Otherwise, they are generally unpredictable.

8. Conclusion

The analysis of daily prices and volumes of a certain stock revealed the following findings: 1) price and volume fluctuations are random, 2) the difference between the volume on the previous day and that on the current day is periodic. Based on these findings, the differential equations of stock prices, the number of buy orders, and the number of sell orders were constructed. From simulation by these equations it is clear that both randomness and periodicity are essential for stock price fluctuations to be sustainable. In the future, I would like to clarify the conditions of the parameters in the mathematical model under which stock prices will continue to fluctuate within a certain range. This finding will reveal which parameters have a strong influence in order to make the stock price fluctuate continuously within the certain range.

Acknowledgements

We thank Geoff Whyte, MBA, from Edanz Group (www.edanzediting.com/ac) for editing a draft of this manuscript.

Appendix

Theorem (normal approximation)

The length of paths is 2n. Suppose that n is large and α is a fixed positive number. The probability, f(α), that fewer than $\alpha \cdot \sqrt{2n}$ changes of sign occur tends to

$f\left(\alpha \right)=\sqrt{\frac{2}{\text{\pi}}}\cdot {\displaystyle {\int}_{0}^{\alpha}\mathrm{exp}\left(-\frac{{s}^{2}}{2}\right)\text{d}s}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{as}\text{\hspace{0.17em}}n\to \infty $ (11)

Cite this paper

Osaka, M. (2019) A Mathematical Model Reveals That Both Randomness and Periodicity Are Essential for Sustainable Fluctuations in Stock Prices.*Applied Mathematics*, **10**, 383-396. doi: 10.4236/am.2019.106028.

Osaka, M. (2019) A Mathematical Model Reveals That Both Randomness and Periodicity Are Essential for Sustainable Fluctuations in Stock Prices.

References

[1] Black, F. and Scholes, M. (1973) The Pricing of Options and Corporate Liabilities. Journal of Political Economy, 81, 637-654.

https://doi.org/10.1086/260062

[2] Kong, X., Jing, B. and Li, C. (2013) Is the Driving Force of a Continuous Process a Brownian Motion or Fractional Brownian Motion. Journal of Mathematical Finance, 3, 454-464.

https://doi.org/10.4236/jmf.2013.34048

[3] Amihud, Y. and Mendelson, H. (1989) Market Microstructure and Price Discovery in the Tokyo Stock Exchange. Japan and the World Economy, 1, 341-370.

https://doi.org/10.1016/0922-1425(89)90013-3

[4] Chan, W.S. and Tse, Y.K. (1993) Price-volume Relation in Stocks: A Multiple Time Series Analysis on the Singapore Market. Asia Pacific Journal of Management, 10, 39-56.

https://doi.org/10.1007/bf01732223

[5] Iwaki, H. and Luo, L. (2013) An Empirical Study of Option Prices under the Hybrid Brownian Motion Model. Journal of Mathematical Finance, 3, 329-334.

https://doi.org/10.4236/jmf.2013.32033

[6] Pan, Z. (2019) A Review of Prospect Theory. Journal of Human Resource and Sustainability Studies, 7, 98-107.

[1] Black, F. and Scholes, M. (1973) The Pricing of Options and Corporate Liabilities. Journal of Political Economy, 81, 637-654.

https://doi.org/10.1086/260062

[2] Kong, X., Jing, B. and Li, C. (2013) Is the Driving Force of a Continuous Process a Brownian Motion or Fractional Brownian Motion. Journal of Mathematical Finance, 3, 454-464.

https://doi.org/10.4236/jmf.2013.34048

[3] Amihud, Y. and Mendelson, H. (1989) Market Microstructure and Price Discovery in the Tokyo Stock Exchange. Japan and the World Economy, 1, 341-370.

https://doi.org/10.1016/0922-1425(89)90013-3

[4] Chan, W.S. and Tse, Y.K. (1993) Price-volume Relation in Stocks: A Multiple Time Series Analysis on the Singapore Market. Asia Pacific Journal of Management, 10, 39-56.

https://doi.org/10.1007/bf01732223

[5] Iwaki, H. and Luo, L. (2013) An Empirical Study of Option Prices under the Hybrid Brownian Motion Model. Journal of Mathematical Finance, 3, 329-334.

https://doi.org/10.4236/jmf.2013.32033

[6] Pan, Z. (2019) A Review of Prospect Theory. Journal of Human Resource and Sustainability Studies, 7, 98-107.