← Back to year fins.2023.1 Issue Contents

Effectiveness of Monte-Carlo simulation of the S&P 500 index before and after the outbreak of the SARS-CoV-2 pandemic

Piotr Nawrocki

Abstract: Risk and uncertainty analysis is an integral part of the study on the behavior of global financial markets. Emergencies, crises or political events pose a major challenge to analysts, trying to predict the future movements of stock indexes, calling into question their assumptions. One such event was the announcement of the coronavirus pandemic, which undoubtedly affected the functioning of today's economy around the world. The purpose of this study is to examine the strength of the impact of the coronavirus pandemic on the behavior of the U.S. market and to assess the effectiveness of the Monte-Carlo method before and after COVID-19 outbreak. The analysis was conducted with 12 Monte-Carlo simulations of daily closing prices of the S&P 500 index using historical data in the time interval from March 11, 2015, to March 11, 2021 by projecting logarithmic rates of return one year ahead over the period 2019-2022. The results showed a significant and negative impact of the pandemic announcement on the effectiveness of forecasting using Monte-Carlo simulation, reducing the confidence of the estimates. In addition, differences in the sensitivity of the simulation were shown depending on the data period adopted. The results obtained can, on the one hand, provide a basis for considering modifications to Monte-Carlo simulations in order to more effectively reflect market reality during periods of economic instability, as well as, on the other hand, provide important information for market analysts to use shorter time series to guarantee efficiency in MC simulations used during periods of crisis.

DOWNLOAD PDF
DOWNLOAD RIS METADATA
<a href="https://dx.doi.org/10.15611/fins.2023.1.01">DOI: 10.15611/fins.2023.1.01</a> <p>JEL Classification: G01, G17</p> <p>Keywords: Monte Carlo (MC) method, Black-Scholes(B-S) model, index simulation, COVID-19 pandemic</p> <h2>1. Introduction </h2> <p>Uncertainty and risk on financial markets, resulting from a multitude of macro and microeconomic factors, the behaviour of market participants and random events (Janasz, 2009) create an exceedingly difficult challenge for market analysts. On more than one occasion, the global economy has had to face so-called ‘black swans’, whose damage often exceeded the threshold of measurable risk in modelled event scenarios (Taleb, 2014). In addition, economic crises often caused a breakdown in the typical and partly predictable behaviour of market participants. As a result, analysts are constantly trying to find better methods of forecasting economic processes that would reduce the risks posed by the possibility of ‘black swans’ while maintaining the rate of return expected by investors. Today, focusing on automation and the increasing calculating power of computers, Monte Carlo simulations, among others, have become commonplace, to which market analysts are able to adapt many financial models. One of the most common is the Black-Scholes model, whose assumptions allow in symbiosis with the above method, to quickly perform thousands of simulations considering various market scenarios. Moreover, the increasing availability of financial data makes it possible to significantly increase the efficiency of such forecasts, thanks to the use of large statistical samples and the central limit theorem (Mitrenga, 2014). However, it is worth noting that Monte Carlo simulations still struggle with the problem of the occurrence of market emergencies, due to their reliance on Gaussian distributions.</p> <p>An example of an emergency in the financial markets currently dealt with is the SARS-CoV-2 virus pandemic, ongoing since 2020. Moreover, it can be considered an example of a ‘black swan’. Therefore, the following was set as a goal: to study the strength of the impact of the coronavirus pandemic on the behaviour of the S&amp;P 500 index and the effectiveness of the Monte Carlo method during the crisis.</p> <h2>2. Impact of the COVID-19 pandemic on financial markets</h2> <p>The coronavirus pandemic declared in 2020 has put the stability of the global financial markets in question. The halting of supply chains, the imposition of restrictions on the number of people in stores and shopping malls and travel restrictions, have set a new standard for the functioning of the global economy and as a result, increased investor uncertainty about the future of many businesses. This uncertainty does not spare the financial markets, whose performance depends closely on the financial capacity of companies and the savings of individuals. A number of studies tried to show the impact of the prevailing pandemic on financial markets in various aspects. Among others, one can point to an analysis of debt instrument markets (Mikita, 2021), which showed an upward trend in total debt issuance in selected EU countries from Q2 2020, which included not only ordinary companies, but also financial market players and local governments, both in developed countries (e.g. France and Spain) and in developing countries (Poland – a 39.7% increase between Q1 2020 and Q4 2020). Another analysed aspectwas the impact of COVID-19 on stock markets (Jaworski and Jaworska-Chodnicka, 2020), which showed a strong and positive reaction of European markets to the announcement of government aid programmes. For US markets, on the other hand, such news meant the reduction in prevailing interest rates. There was also an analysis of the profitability of the banking sector in Poland (Ostrowska, 2021), which revealed a deepening decline in the profitability of Polish banks, particularly evident in 2020, where the ROE ratio fell from 6.84% in the first quarter of 2020 to 3.83% in the last quarter. The above showed the real impact of the pandemic on the behaviour of financial market participants, corporate debt levels and capital market sensitivity. Consequently, this is also an important aspect for analysts trying to forecast the future values of stock market indices, stocks, and corporate financial performance during periods of instability and an indication of which methods retain predictive effectiveness. One should cite here Shaomin Yan and Guang Wu, who investigated the possibility of matching the impact of COVID-19 to the S&amp;P 500 index development by means of random motion using the Black-Scholes model, and showed that the shorter the time window adopted for the simulation, the better the match that could be obtained (Yan and Wu, 2020). Another paper, by Dong-Jin Pyo, used Monte Carlo methods and switching regression to examine the volatility of the Korean stock indices during the coronavirus pandemic, and showed an increase in the effect of asymmetric volatility of the indices (Pyo, 2021). Thus, it can be concluded that the topic of the impact of the pandemic on financial markets from the perspective of stock indices has been addressed in the past, however, it also requires an examination of what is the strength of the impact of the shock caused by the announcement of the pandemic on the effectiveness of Monte Carlo simulations.</p> <h2>3. Research methods – Monte Carlo simulation and Black-Scholes model</h2> <p>In this paper, the Monte Carlo method in conjunction with the Black-Scholes model was used as the research method. Conducting simulations with the above methods required the following steps:</p> <ul><li> <p>preparation of the historical closing prices of the index under study and determination of the logarithmic rates of return</p> </li> <li> <p>determination of the standard deviations and drift of calculated rates of return</p> </li> <li> <p>generation of pseudo-random numbers that follow a normal distribution</p> </li> <li> <p>creation of an algorithm that will calculate the simulated closing price</p> </li> </ul> <p>The determination of logarithmic rates of return can be represented by the following formula:</p> <p> <span>\[r_{l} = \ln\left( \frac{K_{t}}{K_{t - 1}} \right),\]</span> </p> <p>where <span>\(r_{l}\)</span> – the logarithmic rate of return, <span>\(K_{t}\ \)</span>– the price of the financial instrument in period <em>t</em>, <span>\(K_{t - 1}\)</span> – the price of the financial instrument in period <em>t</em>–1. For the selected time interval of historical data, a set of logarithmic rates of return is determined. The next step is to determine the standard deviation of rates mentioned above from the formula:</p> <p> <span>\[\sigma = \sqrt{\frac{{(x_{1} - \overline{X})}^{2} + {(x_{2} - \overline{X})}^{2} + \ldots + \left( x_{n} - \overline{X} \right)^{2},}{n}}\]</span> </p> <p>where <span>\(x_{n}\ \)</span>– logarithmic rate of return in the set, <span>\(\overline{X}\ \)</span>– arithmetic mean in the set, <span>\(n\)</span> – number of elements in the set. The calculation of the standard deviation is necessary to determine the drift, i.e. the parameter of the expected rate of return on the instrument. The drift is calculated with the following formula:</p> <p> <span>\[\alpha = \mu + \frac{1}{2}\sigma^{2}\]</span> </p> <p>where <em>μ</em> – the expected value of logarithmic rates of return, <em>σ</em> – the standard deviation of returns. Once a set of returns is created and the standard deviation and drift are calculated, the next step is to execute a loop that generates a pseudo-random number in a normal distribution, calculates the simulated price of the instrument using the formula from the B-S model (Jakubowski, 2011):</p> <p><span>\(S_{t} = S_{0}exp(\sigma W_{t} + \left( \mu + \frac{1}{2}\sigma^{2} \right)t)\)</span>,</p> <p>where <span>\(S_{t}\)</span> - stock price at time <em>t</em>, <span>\(\sigma W_{t}\)</span> – stock price volatility at time t, (<span>\(\mu + \frac{1}{2}\sigma^{2}\)</span>) – drift occurring in the process, <span>\(S_{0}\)</span> – initial price. In this way, a simulated path of the instrument's price movement can be created by adding successive prices to the time series.</p> <p>Thus, if the generated pseudorandom numbers in a normal distribution are taken as the <span>\(W_{t}\)</span> variable, it will be possible to perform Monte Carlo simulations using the Black-Scholes model (Ziętek-Kwaśniewska, 2006).</p> <p>Monte Carlo methods were first used in the 1940s to explain complex phenomena occurring in the movement of molecules. The main use of Monte Carlo methods is to describe processes that are too complex to use with other analytical methods (Homa and Mościbrodzka, 2017). Such phenomena are often characterised by the financial markets, where high dynamics and volatility pose a great challenge to analysts, and the multiplicity of factors affecting the formation of the processes describing them makes deterministic modelling much more difficult. The basis for using Monte Carlo methods is to know the probability distribution that characterises the process under study (Bialas, 2012). The idea behind this approach is based on the use of a pseudo-random number generator which draws quasi-random numbers based on the distribution determined (Pawlak, 2012). This allows analysts to estimate the possible development paths of the process under study in the form of the expected value of the simulation performed. The main problem behind this approach, in the case of financial markets, is the frequent lack of certainty about the actual distribution of the studied process and its instability over time, since these markets are extremely susceptible to the influx of information about macro and microeconomic conditions, even the emotions among the market participants (Rudny, 2016). In order to be able to put into practice such a form of forecasting for extremely volatile processes, analysts often use a simplification, which is the assumption about the normality of the distribution of the studied processes (Krawczyk, 2006). This approach can be justified if sufficiently large statistical samples are included. With the increasing availability of data in financial markets, it has become possible to use this method in conjunction with popular financial models, including the Black-Scholes model.</p> <p>The Black-Scholes model was developed in the 1970s and is used to value derivatives (Black and Scholes, 1973). It is one of the most widely used methods, due to its relative ease of calculation (Chernik, 2013). The B-S model is based on several assumptions, and one of the most important is the assumption that stock price dynamics is based on the Geometric Brownian Motion (Piontek, 2000) in context of applying MC simulation. It is also worth pointing out that the B-S model is not free of limitations and makes several assumptions that are often impossible to meet in practice, such as that the drift and variability of the process under study in the model is constant, which does not coincide with empirical studies and affects the result of the simulation (especially over an extended period). Another limitation is the assumption that companies do not pay dividends, which also affects the valuation of the stock index. Another important assumption rarely reflected in the reality is that market prices move according to Wiener’s process. This has a significant impact on the simulation of index prices if the pseudorandom numbers are generated in line with a normal distribution.</p> <p>Despite the indicated limitations, it is a popular forecasting tool used by stock market analysts in various aspects of financial markets. One can cite here Ziętek-Kwaśniewska, who described the classical application of this method to the valuation of European and American options (Ziętek-Kwaśniewska, 2006). Another application was indicated by Krawczyk, who used the Monte Carlo method to estimate the value at risk for the real estate market (Krawczyk, 2006). These models were also used to forecast stock prices, cf. Estember and Maraña, who assessed the capabilities of Monte Carlo simulation with the Black-Scholes model in valuing shares of Philippine companies (Estember and Maraña, 2016).</p> <h2>4. Analysis of research results</h2> <p>The basis of the Monte Carlo simulations conducted in the paper were the daily closing values of the S&amp;P 500 index for the period: 11.03.2015 - 11.03.2021<a href="#fn1">1</a>. Based on the collected data and in accordance with the methodology, sets of logarithmic returns, drifts and expected values of index returns over three consecutive years were determined. In this way, the 3-year, 2-year and 1-year drifts and expected values of returns at the specified four time points were determined:</p> <ul><li> <p>one year before the official announcement of the pandemic by the WHO (World Health Organization, 2020),</p> </li> <li> <p>on the day the pandemic was announced,</p> </li> <li> <p>for one and two years after the WHO announcement.</p> </li> </ul> <p>In this way, it is possible to show the performance of the Monte Carlo simulation both during the ‘normal’ period of the market development, as well as on the day of the pandemic announcement and after its two-year development. This approach will make it possible to see whether the uncertainty and risk present in the US stock market, deepens as the number of infections increases.</p> <p>In the next step, after determining the above characteristics, which are the basis of the study to be conducted, simulations of daily closing prices of the S&amp;P 500 index were generated using a customised program developed with the use of statistical libraries<a href="#fn2">2</a>, commonly employed in financial and statistical analysis in Python<a href="#fn3">3</a>. Determining four time points (the day of 11 March in 2019-2022) for which three simulations were performed, each considering historical drifts and expected values in time windows (from one to three years), 12 simulations were finally conducted. In each of them, 20,000 possible index value paths were generated for 252 trading days from the simulation start date. For each time case considered, the results were illustrated using plots generated in Gretl package:</p> <ul><li> <p>a histogram of the frequency distribution of the results of 20,000 simulations per 252 trading days,</p> </li> <li> <p>a box plot, including both the mean and median of the results, as well as the actual value of the index.</p> </li> </ul> <p>Based on the obtained graphs and descriptive statistics extracted from the simulations, a comparative analysis of effectiveness of the studied forecasting method was made for the time intervals indicated above. The first simulations analysed were for the forecast as of 11 March 2019, i.e. one year before the pandemic was announced, and the results are presented in Figure 1 and Table 1.</p> <p><strong>Table 1.</strong> Simulation results as of 11.03.2019</p> <table class="table table-bordered"> <colgroup> <col></col> <col></col> <col></col> <col></col> </colgroup> <thead> <tr><th><strong>Data</strong></th> <th><strong>11.03.2019</strong></th> </tr> <tr><th><strong>11.03.2015-11.03.2018</strong></th> <th><strong>11.03.2016-11.03.2018</strong></th> <th><strong>11.03.2017-11.03.2018</strong></th> </tr> </thead> <tr><td>Anderson-Darling test (p-value)</td> <td>32.245 (&lt;2.2e-16)</td> <td>17.611 (&lt;2.2e-16)</td> <td>22.366 (&lt;2.2e-16)</td> </tr> <tr><td>Expected value of historical rates of return</td> <td>-0.04%</td> <td>-0.06%</td> <td>-0.06%</td> </tr> <tr><td>Historical drift</td> <td>-0.04%</td> <td>-0.07%</td> <td>-0.07%</td> </tr> <tr><td>Simulation starting price (day 11.03.2018)</td> <td>2 786.57</td> <td>2 786.57</td> <td>2 786.57</td> </tr> <tr><td>Actual value (day 11.03.2019; dotted line on histogram and solid line on box plots)</td> <td>2 783.30</td> <td>2 783.30</td> <td>2 783.30</td> </tr> <tr><td>Expected value of the simulation (as of 11.03.2019; dashed line)</td> <td>2 514.56</td> <td>2 369.13</td> <td>2 369.65</td> </tr> <tr><td>µ of simulation + σ (solid line)</td> <td>2 836.48</td> <td>2 611.72</td> <td>2 613.84</td> </tr> <tr><td>µ of simulation – σ (solid line)</td> <td>2 192.64</td> <td>2 126.54</td> <td>2 125.46</td> </tr> <tr><td>Standard deviation of simulation</td> <td>321.92</td> <td>242.59</td> <td>244.19</td> </tr> </table> <p>Source: own study based on data from www.stooq.pl platform (access: 01.11.2021).</p> <p>Analysing the results of the MC simulations for the pre-pandemic period (stability in financial markets), it should be noted that for all time windows considered, the distribution of returns has a shape similar to a Gaussian distribution. This could indicate that the index was not characterised by strong asymmetry, as well as ‘heavy tails’. However, to be sure whether the distribution is normal, goodness-of-fit test should be performed. The Anderson-Darling test was chosen as this approach is particularly sensitive to heavy tails and skewness (Nelson, 1998). The results from normality tests indicate that no distributions of simulation results are normal as the p-values for all of them are close to 0. It can be observed that even before the start of the pandemic, distribution of S&amp;P 500 index was not normal. Therefore, the MC simulation method based on the B-S model could not be applied effectively. For the sake of this study, it was assumed that distribution before COVID-19 was normal in order to investigate what is the level of impact of the pandemic on the standardised Monte Carlo approach with normal distribution in place. The simulation based on the 3-year expected value and drift has the smallest forecasting error – only in this case the actual value was within +/- one standard deviation of the expected value of the forecast. For the other simulations, the index price was above the upper limit of the range. It is worth noting that for the two-year and one-year data ranges, the standard deviations were lower.</p> <p><strong>Fig. 1.</strong> Simulations of the value of the S&amp;P 500 index as of 11.03.2019 in three time windows</p> <p><img src="/articles/2023/Nawrocki OST/media/image1.png" /><img src="/articles/2023/Nawrocki OST/media/image2.png" /><img src="/articles/2023/Nawrocki OST/media/image3.png" /><img src="/articles/2023/Nawrocki OST/media/image4.png" /><img src="/articles/2023/Nawrocki OST/media/image5.png" /><img src="/articles/2023/Nawrocki OST/media/image6.png" />Source: own study based on data from www.stooq.pl platform (access: 01.11.2021).</p> <p>This means that 2015 was characterised by much higher volatility than the other years in the included time window, since only the simulation with a three-year drift included historical data from this period. The reason for this may have been the deficient performance of the energy and fossil fuel sector - the value of the S&amp;P 500 Energy index fell by more than 23% at the time (Standard &amp; Poor's, 2022). This decline was caused by extraordinary declines in oil prices (USA Today, 2016). However, because the time windows studied were still close to normal distribution, analysts were able to correctly apply the Monte Carlo simulation in the context of studying S&amp;P 500 index.</p> <p>The next simulations involve forecasting the value of the index as of 11 March 2020, the date the WHO announced the pandemic, and the results are shown in Figure 2 and Table 2.</p> <p><strong>Table 2.</strong> Simulation results as of 11.03.2020</p> <table class="table table-bordered"> <colgroup> <col></col> <col></col> <col></col> <col></col> </colgroup> <thead> <tr><th><strong>Data</strong></th> <th><strong>11.03.2020</strong></th> </tr> <tr><th><strong>11.03.2016-11.03.2019</strong></th> <th><strong>11.03.2017-11.03.2019</strong></th> <th><strong>11.03.2018-11.03.2019</strong></th> </tr> </thead> <tr><td>Anderson-Darling test (p-value)</td> <td>28,315 (&lt;2,2e-16)</td> <td>44,564 (&lt;2.2e-16)</td> <td>49,437 (&lt;2,2e-16)</td> </tr> <tr><td>Expected value of historical rates of return</td> <td>-0.042%</td> <td>-0.032%</td> <td>-0.00004%</td> </tr> <tr><td>Historical drift</td> <td>-0.046%</td> <td>-0.035%</td> <td>-0.00526%</td> </tr> <tr><td>Simulation starting price (day 11.03.2019)</td> <td>2 783.30</td> <td>2 783.30</td> <td>2 783.30</td> </tr> <tr><td>Actual value (day 11.03.2020; dotted line on histogram and black line on box plot)</td> <td>2 741.38</td> <td>2741.38</td> <td>2741.38</td> </tr> <tr><td>Expected value of the simulation (as of 11.03.2020; dashed line)</td> <td>2 498.42</td> <td>2 570.83</td> <td>2 784.14</td> </tr> <tr><td>µ of simulation + σ (solid line)</td> <td>2 810.19</td> <td>2 921.26</td> <td>3 237.01</td> </tr> <tr><td>µ of simulation – σ (solid line)</td> <td>2 186.65</td> <td>2 220.40</td> <td>2 331.27</td> </tr> <tr><td>Standard deviation of simulation</td> <td>311.77</td> <td>350.43</td> <td>452.87</td> </tr> </table> <p>Source: own study based on data from www.stooq.pl platform (access: 01.11.2021).</p> <p>The histograms are still nearly symmetrical and show the visual characteristics of a normal distribution, just as in the case of the simulation for 2019. However, the A-D tests for all the investigated periods show that all the distributions of the simulations are different from Gaussian. Therefore, the MC method still could not be applied effectively for this period. The smallest error was observed in the simulation with a one-year drift, for which the expected value was remarkably close to the actual value of the index as of 11 March 2020. This is quite different from the forecasts for 2019. The expected values of the other two simulations are within 50% of all generated observations, which was also not the case in the previous forecasts. Another difference between the 2019 and 2020 forecasts is the value of the standard deviations. It can be pointed out that for the 2020 forecasts, the uncertainty of the simulation results increases as the range of historical data shortens towards the date of the pandemic’s announcement.</p> <p><strong>Fig. 2.</strong> Simulations of the value of the S&amp;P 500 index as of 11.03.2020 in three time windows</p> <p> <img src="/articles/2023/Nawrocki OST/media/image13.png" /> <img src="/articles/2023/Nawrocki OST/media/image14.png" /> <img src="/articles/2023/Nawrocki OST/media/image15.png" /> <img src="/articles/2023/Nawrocki OST/media/image16.png" /> <img src="/articles/2023/Nawrocki OST/media/image17.png" /> <img src="/articles/2023/Nawrocki OST/media/image18.png" /> </p> <p>Source: own study based on data from www.stooq.pl platform (access: 01.11.2021).</p> <p>This is an interesting phenomenon, since the shock from the increase in infections has not yet occurred in the input data. The high standard deviation for the one-year time window is also interesting, as reports of the first cases of infection in China did not appear until November 2019, and the simulation only includes data up to March of the same year. A plausible reason for the increased volatility could have been growing investor uncertainty due to the announcements of the US presidential candidates and the ongoing trade war between the US and China (Warsaw Institute, 2021). Thus, there is no basis for the possibility that the COVID pandemic may have affected the results of the 2020 forecasts. Therefore, to show possible changes in the effectiveness of the Monte Carlo method due to the outbreak of the pandemic, simulations would also need to be performed for further periods that take into account the time of the market shock.</p> <p>The next simulations involve forecasting the value of the S&amp;P 500 index as of 11 March 2021, and the results are shown in Figure 3 and Table 3.</p> <p><strong>Table 3.</strong> Simulation results as of 11.03.2021</p> <table class="table table-bordered"> <colgroup> <col></col> <col></col> <col></col> <col></col> </colgroup> <thead> <tr><th><strong>Data</strong></th> <th><strong>11.03.2021</strong></th> </tr> <tr><th><strong>11.03.2017-11.03.2020</strong></th> <th><strong>11.03.2018-11.03.2020</strong></th> <th><strong>11.03.2019-11.03.2020</strong></th> </tr> </thead> <tr><td>Anderson-Darling test (p-value)</td> <td>55.574 (&lt;2.2e-16)</td> <td>55.347 (&lt;2.2e-16)</td> <td>67.785 (&lt;2.2e-16)</td> </tr> <tr><td>Expected value of historical rates of return</td> <td>-0.019%</td> <td>0.003%</td> <td>0.006%</td> </tr> <tr><td>Historical drift</td> <td>-0.024%</td> <td>-0.003%</td> <td>-0.001%</td> </tr> <tr><td>Simulation starting price (day 11.03.2020)</td> <td>2 741.38</td> <td>2 741.38</td> <td>2 741.38</td> </tr> <tr><td>Actual value (day 11.03.2021; dotted line on histogram and black line on box plot)</td> <td>3 939.34</td> <td>3 939.34</td> <td>3 939.34</td> </tr> <tr><td>Expected value of the simulation (as of 11.03.2021; dashed line)</td> <td>2 608.84</td> <td>2 760.28</td> <td>2 781.18</td> </tr> <tr><td>µ of simulation + σ (solid line)</td> <td>3 016.66</td> <td>3 245.99</td> <td>3 307.19</td> </tr> <tr><td>µ of simulation – σ (solid line)</td> <td>2 201.02</td> <td>2 274.57</td> <td>2 255.17</td> </tr> <tr><td>Standard deviation of simulation</td> <td>407.82</td> <td>485.71</td> <td>526.01</td> </tr> </table> <p>Source: own study based on data from www.stooq.pl platform (access: 01.11.2021).</p> <p>Analysing the graphs for the 2021 forecasts, one can point out the elongated right tails of the histograms, which means the occurrence of extremely high and rare forecast index values. Therefore, one can already see the preliminary impact of the crisis on the frequency distribution of simulation results after including Q1 2020 in the historical data. Moreover, the box plots are significantly underestimated relative to the actual value of the index, in contrast to previous simulations. This may indicate a decrease in the efficiency of the Monte Carlo method for the period under study. The observed situation is markedly different from the simulations for 2019 and 2020. The Anderson-Darling test confirms the lack of normality of the results of the distributions of the simulations for 2021. After extracting descriptive statistics from the performed forecasts, a significant change in the standard deviations can be observed in relation to the simulations for previous years. The largest difference was characterised by the simulation with a two-year drift and standard deviation – about 135 points, which gives an increase of 38.6% in the standard deviation relative to 2020. The shock is evident in terms of the distribution of the data itself, as well as the volatility of the process studied. The reaction of investors was very sharp, in the context of the studied crisis, as the announcement of the pandemic became an inflammatory factor for preventive and relief measures by governments around the world (including the United States), which had a significant impact on the functioning of the global economy and rising concerns about the future of operations in all industries.</p> <p><strong>Fig. 3.</strong> Simulations of the value of the S&amp;P 500 index as of 11.03.2021 in three time windows</p> <p> <img src="/articles/2023/Nawrocki OST/media/image25.png" /> <img src="/articles/2023/Nawrocki OST/media/image26.png" /> <img src="/articles/2023/Nawrocki OST/media/image27.png" /> <img src="/articles/2023/Nawrocki OST/media/image28.png" /> <img src="/articles/2023/Nawrocki OST/media/image29.png" /> <img src="/articles/2023/Nawrocki OST/media/image30.png" /> </p> <p>Source: own study based on data from www.stooq.pl platform (access: 01.11.2021).</p> <p>These observations demonstrate that the shock of the pandemic announcement had a significant and negative impact on the effectiveness and predictive ability of the MC method. The final issue worth exploring is to evaluate whether the pandemic has caused a shock that maintains increased uncertainty in subsequent years.</p> <p>The latest simulations are projections as of 11 March 2022. Figure 4 and Table 4 show how the index projections behave after a year from the announced start of the pandemic.</p> <p><strong>Table 4.</strong> Simulation results as of 11.03.2022</p> <table class="table table-bordered"> <colgroup> <col></col> <col></col> <col></col> <col></col> </colgroup> <thead> <tr><th><strong>Data</strong></th> <th>11.03.2022</th> </tr> <tr><th>11.03.2018-11.03.2021</th> <th>11.03.2016-11.03.2018</th> <th>11.03.2020-11.03.2021</th> </tr> </thead> <tr><td>Anderson-Darling test (p-value)</td> <td>106.41 (&lt;2.2e-16)</td> <td>134.06 (&lt;2.2e-16)</td> <td>202.76 (&lt;2.2e-16)</td> </tr> <tr><td>Expected value of historical rates of return</td> <td>-0.05%</td> <td>-0.07%</td> <td>-0.14%</td> </tr> <tr><td>Historical drift</td> <td>-0.06%</td> <td>-0.08%</td> <td>-0.16%</td> </tr> <tr><td>Simulation starting price (day 11.03.2021)</td> <td>3 939.34</td> <td>3 939.34</td> <td>3 939.34</td> </tr> <tr><td>Actual value (day 11.03.2022)</td> <td>-</td> <td>-</td> <td>-</td> </tr> <tr><td>Expected value of the simulation (as of 11.03.2022; dashed line)</td> <td>3 504.63</td> <td>3 312.66</td> <td>2 736.81</td> </tr> <tr><td>µ of simulation + σ (solid line)</td> <td>4 339.02</td> <td>4 196.95</td> <td>3 629.24</td> </tr> <tr><td>µ of simulation – σ (solid line)</td> <td>2 670.24</td> <td>2 428.37</td> <td>1 844.38</td> </tr> <tr><td>Standard deviation of simulation</td> <td>834.39</td> <td>884.29</td> <td>892.43</td> </tr> </table> <p>Source: own study based on data from www.stooq.pl platform (access: 01.11.2021).</p> <p>All the histograms indicate that the distributions of the simulation results for 2022 are asymmetric and left-skewed, so they deviate significantly from the characteristics of a Gaussian distribution. In contrast to the simulation results for 2019 and 2020, the deformation of S&amp;P 500 distribution is fully visible. In addition, the phenomenon of leptokurtosis, which justifies the higher value of the standard deviation, is becoming increasingly evident. Thus, it can be concluded that there was a collapse in the market, and the Monte Carlo method lost its predictive effectiveness. In 2021 in the US market, the historical returns of the S&amp;P 500 index had to deviate significantly from typical values, and their probability distribution began to change drastically. Market information also confirms the deepening crisis caused by the coronavirus pandemic. The World Health Organization indicated that between 2020 and 2021, there were 14.9 million deaths due to the COVID-19 pandemic globally, 84% of which occurred in Southeast Asia, Europe and North and South America (World Health Organization, 2022). In addition, global supply chains operated by major US companies such as Microsoft and Apple were disrupted by the imposed restrictions in China (Forbes, 2020), lowering expectations for the operational efficiency of these companies. The uniqueness of the pandemic crisis is also evidenced by the reactions of the rating agencies. In the period 01.2020-07.2020, S&amp;P Global downgraded 1015 entities in North America alone, and the total number of rating downgrades globally was similar to the number of downgrades in 2009, following the outbreak of the global financial crisis in 2007 (Reuters, 2020). The projections conducted reflect the negative effects of the ongoing pandemic and show the extent to which market information distorts the typical distribution of returns in the US market.</p> <p><strong>Fig. 4.</strong> Simulations of the value of the S&amp;P 500 index as of 11.03.2022 in three time windows</p> <p> <img src="/articles/2023/Nawrocki OST/media/image37.png" /> <img src="/articles/2023/Nawrocki OST/media/image38.png" /> <img src="/articles/2023/Nawrocki OST/media/image39.png" /> <img src="/articles/2023/Nawrocki OST/media/image40.png" /> <img src="/articles/2023/Nawrocki OST/media/image41.png" /> <img src="/articles/2023/Nawrocki OST/media/image42.png" /> </p> <p>Source: own study based on data from www.stooq.pl platform (access: 01.11.2021).</p> <p>Moreover, the left-skewed, leptokurtic histograms and significantly higher standard deviations demonstrate that not only did the shock maintain higher uncertainty in the market, but the uncertainty further increased as the crisis deepened.</p> <p>With all the periods studied, the efficiency of the MC method based on the Black-Scholes model dynamically decreased. Figure 5 shows a summary of the results of all 12 simulations.</p> <p><strong>Fig. 5.</strong> Summary of Monte Carlo simulation results (black lines = actual values of the index)</p> <p> <img src="/articles/2023/Nawrocki OST/media/image49.png" /> </p> <p>Source: own study based on data from www.stooq.pl platform (access: 01.11.2021).</p> <p>Analysing the box plots, the range of simulation values obtained increases with time. For the simulation with a 3-year drift for 2019, the range between the third and first quartiles was 428.97 points, and for the corresponding simulation for 2022, the value was already 1072.8. This result shows that uncertainty in the market deepened and the accuracy of the simulation results decreased, as the range of possible results increased by about 150%. This also shows that the effectiveness of the Monte Carlo method decreased in the event of an emergency and may be a signal for market analysts to revise models based on this method. Another phenomenon observed is the difference in the sensitivity of capturing changes in the range of results of the generated simulations. As the range of historical data widens, the simulations are less sensitive to the changes taking place in the market, and show more shocks when capturing a pandemic crisis. For the 3-year data range, this insensitivity can be seen in the Q3-Q1 intervals, which almost doubled in the simulation for the last year relative to 2021. On the other hand, for the 2-year data range, one can already see the greater sensitivity of changes in these intervals, where the change was about 77% between 2021 and 2022. For the shortest data range, the changes were even smaller, presenting change in intervals at about 61.6%. The reason for the reduced sensitivity of simulations with a wider range of data may be the effect of older results on the drift and expected value. When observing the impact of the COVID-19 pandemic on uncertainty in the US market, it seems that the best option is to adopt simulations for the shortest data range, as it is most sensitive to changes caused by macro and microeconomic information. Therefore, it can be concluded that the announcement of the coronavirus pandemic may have affected the efficiency of MC simulations, causing the range of possible outcomes to increase by about 61.6% if the shortest data range is applied.</p> <h2>5. Conclusion</h2> <p>The analysis of the generated Monte Carlo simulations in terms of the formation of probability distributions and descriptive statistics of the range of results obtained, showed a significant and negative change in the confidence with which the value of the S&amp;P 500 index can be estimated. The standard deviations of the simulations studied showed an increasing trend as the COVID-19 pandemic progressed, which also increased the range of possible estimation results, and thus the possible failure to meet the one-sigma rule. In addition, the difference between the actual value and the expected value of the simulation for 2021 was shown to be significantly larger than for the previous periods. Given that the starting point was the day the pandemic was announced, this may indicate that investors in the US market, through their actions, have already begun to show their uncertainty and risk aversion towards the market by observing the global increase in the number of coronavirus infections. Furthermore, for the simulations of the preceding years, the accuracy of the results relative to the actual values was shown to be significantly higher, confirming that MC simulations perform well for estimations during normal market periods. In the case of the juxtaposition of all the simulations conducted, the analysis of the box plots showed the induction of a shock in the context of the possible range of S&amp;P 500 values for 2022. The change in the Q3-Q1 interval between 2021 and 2022 was in the estimated range of 61.6%-100% (depending on historical data range) which indicates a definite decrease in the efficiency of forecasting using MC methods. The final observation is also the occurrence of the difference in the sensitivity of the simulations performed, depending on the adopted data range. The analysis showed that the shorter the range of data adopted, the more sensitive to substantial changes the Monte Carlo simulation of the S&amp;P 500 index. This may be a hint for US market analysts to use shorter ranges of data for forecasting using MC simulations in periods of crisis or extraordinary macroeconomic events, to better show the actual reaction of the market and to estimate the tested values with greater awareness.</p> <p>The above conclusions show that the effectiveness of MC simulations of the S&amp;P 500 index significantly decreased after the announcement of the coronavirus pandemic. This situation may prompt further research and testing of various modifications to the Monte Carlo simulation to see if they will positively affect the efficiency of the estimation when using this method for existing crises. Modifications may include using a different probability distribution, such as the stable Levy distribution, which, according to some studies (Duczkowski, 2021), shows better efficiency in explaining market processes, particularly financial markets.</p> <p>References</p> <p>Białas, M. (2012). Wykorzystanie symulacji Monte-Carlo do wyceny przedsiębiorstwa metodą APV<em>. Zarządzanie i Finanse</em>, <em>4</em>(1), 23-35.</p> <p>Black, F. i Scholes, M. (1973). The pricing of options and corporate liabilities<em>. Journal of Political Economy</em>, (81), 637-654.</p> <p>Czernik, T. (2013). Wpływ niepewności oszacowania zmienności na cenę instrumentów pochodnych<em>.</em> <em>Studia Ekonomiczne</em>, (124), 131-142.</p> <p>Duczkowski, N. (2021). Zastosowanie rozkładu α-stabilnego do modelowania zmian cen ubezpieczeń. <em>Wiadomości Ubezpieczeniowe,</em> (2), 109-127.</p> <p>Estember, R. D., and Maraña, M. J. (2016). <em>Forecasting of stock prices using Brownian motion–Monte Carlo simulation</em> (International Conference on Industrial Engineering and Operations Management).</p> <p>Forbes. (2020). <em>Microsoft Warning Is A Harbinger Of Coronavirus Impact On Business And The Economy.</em> https://www.forbes.com/sites/waynerash/2020/02/27/microsoft-warning-is-a-harbinger-of-coronavirus-impact-on-business-and-the-economy/?sh=169ee4fb7449</p> <p>Homa, M., and Mościbrodzka, M. (2017). Szacowanie wartości zagrożonej dla branż spółek giełdowych<em>.</em> <em>Finanse i Rachunkowość</em>, <em>3</em>(49).</p> <p>Jakubowski, J. (2011). <em>Modele matematyczne rynków instrumentów pochodnych I.</em> Uniwersytet Warszawski. Retrieved from <a href="https://mst.mimuw.edu.pl/wyklady/ip1/wyklad.pdf">https://mst.mimuw.edu.pl/wyklady/ip1/wyklad.pdf</a></p> <p>Janasz, K. (2009). Ryzyko i niepewność w gospodarce - wybrane aspekty teoretyczne<em>.</em> <em>Studia i Prace Wydziay Nauk Ekonomicznych i Zarządzania</em>, (14), 87-98.</p> <p>Jaworski, P., and Jaworska-Chodnicka, P. (2020). <em>Wrażliwość rynku akcji na publikacje danych rynkowych w czasie pandemii COVID-19.</em> Warszawa: Wydawnictwo Naukowe Wydziału Zarządzania Uniwersytetu Warszawskiego.</p> <p>Krawczyk, E. (2006). Zastosowanie modelu ryzyka Value at Risk (VaR) opartego na metodzie Monte Carlo do rynku nieruchomości<em>. Zeszyty Naukowe Szkoły Głównej Gospodarstwa Wiejskiego. Ekonomika i Organizacja Gospodarki Żywnościowej</em>, (58).</p> <p>Martinkutė-Kaulienė, R., Stankevičienė, J., and Žinytė, S. (2013). Option pricing using Monte Carlo simulation. <em>Journal of Security and Sustainability Issues</em>, <em>2</em>(4), 65-79.</p> <p>Mikita, M. (2021). Wpływ pandemii COVID-19 na rynek dłużnych papierów wartościowych - analiza na przykładzie wybranych krajów. <em>Ekonomia Międzynarodowa</em>, (33), 5-44.</p> <p>Mitrenga, D. (2014). Metodyczne podstawy symulacji stochastycznej Monte Carlo<em>.</em> <em>Studia Ekonomiczne,</em> (204), 164-180.</p> <p>Nelson, L. S. (1998), The Anderson-Darling test for normality. <em>Journal of Quality Technology</em>, <em>30</em>(3), 298</p> <p>Niemiro, W. (2013). <em>Symulacje stochastyczne i metody Monte-Carlo. Matematyka stosowana.</em> Warszawa: Uniwersytet Warszawski.</p> <p>Ostrowska, A. (2021). Wpływ pandemii COVID-19 na rentowność sektora bankowego w Polsce<em>.</em> <em>Zeszyty Naukowe Uniwersytetu Ekonomicznego w Krakowie/Cracow Review of Economics and Management</em>, <em>3</em>(993), 121-135.</p> <p>Pawlak, M. (2012). Symulacja Monte-Carlo w analizie ryzyka projektów inwestycyjnych<em>.</em> <em>Zeszyty Naukowe Uniwersytetu Szczecińskiego. Finanse, rynki finansowe, ubezpieczenia,</em> 51(690).</p> <p>Piontek, K. (2000). Efekt dni tygodnia i jego wpływ na wycenę opcji<em>. Finanse, Banki i Ubezpieczenia w Polsce u Progu XXI Wieku</em>.</p> <p>Pyo, D. J. (2021). The COVID-19 and stock return volatility: Evidence from South Korea<em>.</em> <em>East Asian Economic Review</em>, <em>25</em>(2), 205-230.</p> <p>Reuters. (2020). <em>How the coronavirus is crushing credit ratings.</em> Retreieved from https://www.reuters.com/article/us-health-coronavirus-ratings-graphic/how-the-coronavirus-is-crushing-credit-ratings-idUSKCN24U18Y</p> <p>Rudny, W. (2016). <em>Emocje w procesach decyzyjnych na rynkach finansowych.</em> <em>Studia Ekonomiczne</em>, (267), 163-174.</p> <p>Standard &amp; Poor's. (2022). <em>S&amp;P 500 energy</em>. S&amp;P Dow Jones Indices. Retrieved from https://www.spglobal.com/spdji/en/indices/equity/sp-500-energy-sector/#overview</p> <p>Taleb, N. N. (2014). <em>"Czarny Łabędź." O skutkach nieprzewidywalnych zdarzeń.</em> Warszawa: Kurhaus.</p> <p>USA Today. (2016). <em>Cheap gas, oil craters: 2015 rocked the energy sector.</em> Retrieved from https://eu.usatoday.com/story/money/columnist/2016/01/03/loveless-10-big-energy-developments-2015/78031490/</p> <p>Warsaw Institute. (2021). <em>U.S.-China trade war: Origins, timeline and consequences.</em> Retrieved from https://warsawinstitute.org/u-s-china-trade-war-origins-timeline-consequences/</p> <p>World Health Organization. (2020, March 11). <em>WHO Director-General's opening remarks at the media briefing on COVID-19.</em> Retrieved from https://www.who.int/director-general/speeches/detail/who-director-general-s-opening-remarks-at-the-media-briefing-on-covid-19---11-march-2020</p> <p>World Health Organization. (2022). 1<em>4.9 million excess deaths associated with the COVID-19 pandemic in 2020 and 2021.</em> Retrieved from https://www.who.int/news/item/05-05-2022-14.9-million-excess-deaths-were-associated-with-the-covid-19-pandemic-in-2020-and-2021</p> <p>Yan, S. i Wu, G. (2020). <em>Fitting of Impact of COVID-19 Pandemic on S&amp;P 500 Index Using Random Walk.</em> (2020 2nd International Conference on Economic Management and Model Engineering (ICEMME) (1007-1011). IEEE).</p> <p>Ziętek-Kwaśniewska, K. (2006). Symulacje Monte-Carlo jako metoda wyceny opcji<em>. Scientific Bulletin of Chełm, Section of Mathematics and Computer Science,</em> (2).<strong></strong></p> <p> <strong>Appendix 1. Source code for generating Monte Carlo simulations</strong> </p> <p># importing statistical libraries needed for MC analysis (requires installing first)</p> <p>import numpy as np</p> <p>import pandas as pd</p> <p>from pandas_datareader import data as wb</p> <p>import matplotlib.pyplot as plt</p> <p>from scipy.stats import norm</p> <p># functions from the pandas library to record historical index prices from the Stooq platform; the start and end variables are adjusted depending on the range of data covered in the paper</p> <p>df = wb.DataReader('^SPX', data_source='stooq', start='2020-3-11', end='2021-3-11')</p> <p># calculation of logarithmic rates of return, average rate of return and standard deviation and drift</p> <p>logarithmic_returns = np.log(1 + df['Close'].pct_change())</p> <p>mu_r = logarithmic_returns.mean()</p> <p>std_r = logarithmic_returns.std()</p> <p>drift = mu_r - 0.5*(std_r**2)</p> <p>wyniki = []</p> <p># function that generates 20,000 rates of return consecutive trading days according to Monte Carlo simulation</p> <p>for i in range(20000):</p> <p>d_returns = np.exp(drift + std_r * norm.ppf(np.random.rand(252)))</p> <p>list_prices = [df['Close'][0]]</p> <p># function that calculates the new price after taking into account the generated rate of return from the simulation</p> <p>for x in d_returns:</p> <p>list_prices.append(list_prices[-1]*x)</p> <p>plt.plot(list_prices)</p> <p>wyniki.append(list_prices)</p> <p>lista=[]</p> <p># A loop that adds the results to the time series to be visualized</p> <p>for z in results:</p> <p>lista.append(z[-1])</p> <p># Data visualization functions from matplotlib library - price paths, title changed according to selected time range</p> <p>plt.axhline(df['Close'][0],color='r', linestyle='solid',linewidth=2)</p> <p>plt.xlabel("Dni")</p> <p>plt.ylabel("Wartość indeksu SP500")</p> <p>plt.title("Symulacja ruchu wartości indeksu SP500 na dzień 2022-3-11 (1 rok danych)")</p> <p>plt.show()</p> <p># functions that calculate the mean and standard deviation of simulation results</p> <p>m_pri = np.mean(lista)</p> <p>dev_one = np.std(lista)</p> <p>dev_two = dev_one * 2</p> <p># functions that generate a histogram with the frequency distribution of the results, bins, that is the number of intervals selected to show the corresponding ranges of the values of the results obtained</p> <p>plt.hist(lista,bins=20)</p> <p>plt.axvline(m_pri + dev_one,color='b',linestyle='dashed',linewidth=2)</p> <p>plt.axvline(m_pri - dev_one,color='b',linestyle='dashed',linewidth=2)</p> <p>plt.axvline(np.mean(lista),color='g',linestyle='dashed',linewidth=2)</p> <p>plt.axvline(df['Close'][0],color='r',linestyle='dashed',linewidth=2)</p> <p>plt.xlabel("Wartość indeksu SP500")</p> <p>plt.ylabel("Częstość")</p> <p>plt.title("Symulacja Monte-Carlo - histogram dla SP500")</p> <p>plt.show()</p> <p># function which generates box plot of simulation’s results</p> <p>plt.boxplot(lista, showmeans=True)</p> <p># function that generates simulation results in text form, date changed according to the simulation day being analyzed</p> <p>print("Prognoza na 11-3-2022")</p> <p>print("Mu_r: ", str(mu_r))</p> <p>print("Drift: ", str(drift))</p> <p>print("Actual price (red): ", str(df['Close'][0]))</p> <p>print("Expected price (green): ", str(m_pri))</p> <p>print("Std dev +: ", str(m_pri + dev_one))</p> <p>print("Std dev -: ", str(m_pri - dev_one))</p> <p>plt.show()</p> <p># function which saves simulation results to .csv file</p> <p>df = pd.DataFrame(lista)</p> <p>df.to_csv('2022_1.csv')</p> <ol><li><p>Platform: Stooq.pl, day: 07.01.2022.<a href="#fnref1">↩︎</a></p></li> <li><p>Libraries included: Pandas, Matplotlib, Scipy, Numpy<a href="#fnref2">↩︎</a></p></li> <li><p>The source code can be found in Appendix 1 on page 21.<a href="#fnref3">↩︎</a></p></li> </ol>

Table of contents

Indexing Services
& Digital Libraries

  • cejsh logo
  • ceeol logo
  • Biblioteka Nauki logo
  • bazekon logo
  • ebsco logo
  • erih plus logo
  • dbc logo

Newsletter