In complete, frictionless capital markets with no transaction costs and where the underlying securities follow geometric Brownian motions, the Black-Scholes framework  provides an elegant and tractable solution for pricing and hedging derivative securities, typically vanilla calls and puts. Unfortunately, actual financial markets are far more complex and empirical testing of the Black- Scholes model has highlighted its many shortcomings. Indeed, it is well docu- mented    that the observed properties of financial time series are not consistent with its underlying assumptions. Time-varying volatility, the presence of higher-order moments and serial correlation are now well established stylized facts of asset returns. Furthermore,    and  demonstrate that un- realistic assumptions about continuous-time hedging can lead to large hedging errors.
Over the past decade, several studies have proposed discrete time hedging models based on different objective functions (see for example  ,  and  ). The idea of dynamic hedging, as detailed in  and  , is to find a self- financing optimal investment strategy that replicates a terminal payoff. In this paper, we build on the previous work of     and  to derive a discrete time hedging strategy minimizing the expected risk of future contingent liabilities when asset returns follow a regime-switching random walk. Our hedging methodology is therefore robust to serially-correlated and non-Gaussian returns. Previous attempts to incorporate conditional returns in option pricing include GARCH models (see  for a complete review), stochastic volatility models    and jump models (  and  to cite a few). These approaches have generally been successful at reproducing market prices, however none of them offer an effective, let alone optimal, hedging strategy.
Regime-switching models, popularized by  and  , have many charac- teristics that lend themselves nicely to financial time series modeling. They allow for time-varying conditional moments, a feature that is consistent with the observed non-Gaussian properties of financial returns while being easy to inter- pret. Regime-switching models have previously been used by  to capture interest rate dynamics and by  and  to model volatility. However, very few papers have attempted to apply regime-switching models to returns for option pricing and hedging. The aim of this paper is to demonstrate how to implement optimal hedging strategies and obtain derivatives prices under this class of models. We review the EM algorithm  , which provides an efficient estimation procedure, and propose a novel goodness-of-fit test for selecting the optimal number of regimes based on the work of  .
To empirically assess the relevance of our approach, we compare the performance of various hedging methodologies in the context of harvesting the negative market volatility risk premium. The implied volatility of equity index options is known to include a significant negative time-varying premium  . In economic terms, there is an insurance cost to holding assets that co-vary positively with volatility (such as options), because the latter tends to increase in unfavorable market states   . In their seminal paper,  initiate short S & P 500 option positions and hedge the underlying risk until expiration. They empirically show gains from such strategy are proportional to the volatility risk premium. However, they derive daily optimal hedging ratios from the classical Black-Scholes approach adjusted for a GARCH conditional volatility. Even though their conclusion appears robust to such mis-specification, the impact on the strategy is unclear. In fact, investors should optimally account for time- varying volatility and discrete-time re-balancing when deriving hedging ratios. The proposed approach achieves this optimality under a quadratic (thus sym- metric) risk criterion for regime-switching models.
We first present empirical pricing results confirming the systematic down- ward bias in model prices relative to market prices. Secondly, we apply the proposed volatility-timing strategy. Intuitively, we expect the regime-switching methodology to under(over)-hedge relative to the Black-Scholes setting in low (high) volatility states. This is confirmed empirically as the proposed protocol decreases the annualized volatility of the strategy from 3.47% to 2.58% and increases the annualized expected return from 1.37% to 1.97% over the classical Black-Scholes delta-hedging approach.
The rest of the paper is structured as follows. Section 2 introduces the model by describing the filtering procedure to predict regimes, the estimation procedure and the goodness-of-fit test, together with an illustration for the S & P 500 index daily returns. The implementation of the estimation is presented in Appendix A and the implementation of the goodness-of-fit is presented in Appendix B. Then, in Section 3, we state the optimal dynamic discrete time hedging model for regime-switching processes and finally, in Section 4, we implement the proposed algorithm for European vanilla options written on the S & P 500 in the context of harvesting the volatility risk premium.
2. Regime-Switching Geometric Random Walk Models
Regime-switching models are quite intuitive. At period , given that the previous regime has value , the regime is chosen with probability , and given , the periodic return has cumulative distribution . Henceforth, is assumed Gaussian with mean and standard deviation . Following  , the non-observable regimes , with values in , are modeled by a Markov chain with transition matrix , and stationary distribution . A (d-dimensional) discrete time process forms a regime-switching random walk if, given the regimes , the random vectors are independent, with respective densities (associated to cumulative distributions ). As a result, the stationary distribution of is a mixture, with density .
The regime-switching geometric random walk model is then a process such that the associated (d-dimensional) log-returns process forms a regime-switching random walk. In general, is not a Markov process, unless the regimes are serially independent. However, the process is Markovian. These models are particular cases of Hidden Markov Models (HMM).
The law of financial time series can be modeled adequately by a regime- switching model with Gaussian densities , provided the number of regimes is large enough. Indeed, the serial dependence in regimes propagates to returns and captures the observed autocorrelation in financial time series. Also, the conditional distribution is time-varying, leading to conditional volatility, as well as conditional asymmetry and kurtosis. Finally, the model nests the Black- Scholes framework when the number of regimes is forced to one. Indeed, in such a case, the log-returns are independent and identically distributed with Gaussian density.
We now state results of practical interest pertaining to regime-switching models, including a regime prediction algorithm, an estimation algorithm and a goodness-of-fit test to determine the optimal number of regimes.
2.1. Regime Prediction
Since the regimes are not observable, we have to find a way to predict them. This will be of outmost importance for pricing and hedging derivatives.
In many applications, one has to find the most likely regime at period , given the values of the returns . This is known as a filtering problem. More precisely, one needs to compute . It is remarkable that for the present model, one can compute exactly this conditional distribution, given a starting distribution .
2.1.1. Filtering Algorithm
・ Choose an a priori probability distribution for the regimes. Equivalently, one can choose a non-negative vector and set , where . The choice of or is not critical, since its impact on predictions decays in time and have virtually no impact on terminal regime probabilities for any reasonable time series length. For simplicity, we assume a uniform distribution, that is .
・ For any , once is observed, compute, for every ,
Having computed the conditional probabilities, , one can finally estimate by
that is as the most probable regime.
Remark 2.1. Note that since , is the joint density of at . One can also write (1) only in terms of viz.
where is the conditional density of at , given .
2.1.2. Conditional Distribution and Stationary Law
From Remark 2.1, the joint density of , , can be expressed as . Also, for any , the conditional density of given , , can be expressed as a mixture:
Note that , for all . We can show that the conditional law of given has density
which is also a mixture with densities and weights , for .
If the Markov chain with transition matrix is ergodic, then the conditional law of given , converges as to the stationary distribution . That is, for long term predictions the behaviour of becomes independent of its past.
2.2. Estimation of Parameters
As proposed in  , the EM algorithm is a quite efficient estimation procedure for incomplete data sets. Under regime-switching models, observations are partial since is unobservable. The algorithm proceeds iteratively to converge to the maximum likelihood estimation of parameters  . Its implementation for regime-switching random walks is described in details in Appendix A. The optimal number of regimes must be known a priori, an issue that will be dealt with next.
As shown in  and  , when the densities are Gaussian with mean and covariance matrix , the EM estimators of and of are -consistent. In other words, and are asymptotically Gaussian. Furthermore, they are regular in the sense that parametric bootstrap can be applied. For more details, see  .
2.3. Goodness-of-Fit Test
Having estimated the parameters for a fixed number of regimes, one must next test the adequacy of the fitted model in order to select the optimal number of regimes. This is generally done by using a test based on likelihoods. However, as expressed in  , hypothesis testing using maximum likelihoods methods can be problematic due to singularities and unidentifiable parameters. Furthermore,  show that goodness-of-fit tests based on likelihood ratios are not recommended for regime-switching models.
Building on   proposed to evaluate the conditional distribution function at the observed data points. Intuitively, for univariate time series, these resulting pseudo-observations should approximately be uniformly distributed under the null hypothesis. To overcome the problem of unknown parameters,  suggest to estimate the parameters from the first half of the time series and use the second half to perform the goodness-of-fit test, as if the parameters were known. This can hardly be justified theoretically since the limiting distribution of the test statistics usually depends on the unknown parameters. Furthermore, the approach is less powerful since only half the data set is used for testing.
Building on  , a solution based on Khmaladze’s transform was proposed by  in the univariate case and extended in the multivariate case in  . However, its implementation can be quite difficult and computationally ex- pensive. We opt for a simpler approach based on parametric bootstrapping. It was shown to work for a large class of dynamic models, including regime- switching random walks. Its implementation is detailed in Appendix B.
Choosing the Optimal Number of Regimes
The goodness-of-fit test methodology described in Appendix B produces P-value from a Cramér-von Mises type statistic, for a given number of regimes, . As suggested in  , it makes sense to choose the optimal number of regimes, , as the first for which the P-value is larger than 5%. An illustration of the proposed methodology is given in Section 2.4.
2.4. Application on S & P 500 Daily Returns
To illustrate the model, we fit the close-to-close log-returns of the daily price series of the S & P 500 index from January 2nd 1985 to January 31th 2012 (6831 observations). As illustrated in Figure 1, the time series includes persistent periods of low and high volatility. For example, from Figure 1, the 1992-1996 and 2003-2006 represent low periods of volatility, since the variability is much smaller than everywhere else, while the period 2008-2010 is a good example of high volatility, since the variability in the returns is large. The latter coincides with the last financial crisis. It is thus a natural candidate for regime-switching models.
We performed the proposed goodness-of-fit test (see Appendix B) for Gaussian densities. The results are displayed in Table 1. According to Section 2.3.1, the first 3 P-values are 0, so according to our criteria, the number of regimes must be greater than 3. For 4 regimes, the P-value is 26.2% which is greater than 5%, so we optimally select a four-regime model, since 4 is the smallest number of regimes for which the P-value is larger than 5%.
The estimated parameters are presented in Table 2, where the mean and standard deviation of each Gaussian regime density are respectively denoted by and . Note that they are presented as annualized percentage values.
Figure 1. Log-returns of the S & P 500 Index (01/02/1985-12/31/2012).
Table 1. P-values (in percentage) for the proposed goodness-of-fit test using bootstrap samples on the S & P500 daily returns (01/02/1985-12/31/2012).
Table 2. Parameters estimation for the four-regime model on the S & P 500 daily returns (01/02/1985-12/31/2012). and are presented as annualized percentages.
The table further contains the estimated long-term, or stationary, regime probabilities , together with the terminal conditional regime probabilities, , and the estimated transition matrix, Q.
In Table 2, regimes are ordered by increasing standard deviation for convenience. Firstly, we observe that volatility tends to be inversely related to the expected premium. Indeed, the latter goes from −52.75% for the high-risk regime to 17.93% for the low-risk regime. Such observation is consistent with previous findings on the contemporaneous asymmetry between risk and returns  . Regime 1 and 2 are associated to bull markets, which are characterized by strong positive premiums and low risk. Regime 3 can be interpreted as an intermediate state. It displays less directionality with an expected return of roughly 2% and medium-risk with a standard deviation close to the long run, or unconditional, value. Finally, regime 4 is associated to bear markets, as highlighted by its strong negative premium of −52.75% and very high risk of 46.59%. Even though its steep premium could suggest the presence of crashes, such interpretation can be misleading. Indeed, the persistence of regime 4 is quite high as highlighted by a the value of of 0.96. Intuitively, given we are in a stressed market environment today, it will remain stressed for the forthcoming days with high probability. However, in the long-run, such state is rare. Indeed, we expect its realization only roughly 7% of the time as given by the stationary probability . In contrast, markets are expected to be in a bull market state (regime 1 or regime 2) roughly 53% of the time. Such findings are consistent with common perceptions about financial markets. Indeed, periods of high uncertainty and abrupt decreases in levels are usually very concentrated in time (but can last for days), while recoveries are slower processes that extend over several years.
Figure 2 displays the filtered most probable regimes (see Section 2.1 for the filtering procedure) for the whole time series. The regimes are depicted by different shades of grey, ranging from dark for the high risk regime to white for the low risk regime. The 1987 crisis is correctly captured by the high volatility state, together with the early 2000’s bubble burst and the recent financial meltdown (2008-2009).
3. Optimal Discrete Time Hedging
Denote the price process by , that is, is the value of underlying assets
Figure 2. Most probable regimes for the four-regime model fitted on the S & P 500 index from 01/02/1985 to 12/31/2012, together with the cumulative performance of the S & P 500 index. Darker areas represent higher volatility states.
at period and let a filtration under which is adapted. Further assume is square integrable. Set , where the discounting factors are predictable (that is is -measurable for ). We are interested in the optimal initial investment amount and the optimal predictable investment strategy that minimizes the expected quadratic hedging error for a given payoff, C, at time n (for example a call option). Formally, the problem is stated as
where , and is the current value of the replicating portfolio at time . In other words, it is the current value of the optimal predictable investment strategy, .
To solve (8), set , and define, for ,
We can now state Theorem 1 of  , which is an extension of a result from  .
Theorem 1. Suppose that P-a.s., for . This condition is always respected for regime-switching models. Then, the solution of the minimization problem (8) is , and
Remark 3.1. Note that is chosen such that the expected hedging error is zero.  also showed that (defined by
is the optimal investment at period so that the value of the portfolio at period is as close as possible to in terms of mean square hedging error . As such, can be interpreted as the option price at period . By increasing the number of hedging periods, tends to a price under a risk neutral measure  . For example, when there is only one regime and the density is Gaussian, tends to the usual Black-Scholes price, as the number of hedging periods tends to infinity.
The proposed optimal hedging implementation appears in Appendix C.
3.1. Global Hedging
In practice, an expected hedging error characterized by will emerge. In other words, the replicating portfolio at period t will not be worth the optimal investment . Under the Black-Scholes setting, such error is unaccounted for since derivatives can be replicated perfectly. In contrast, under the proposed optimal hedging protocol, the exposures linearly depend on the replicating portfolio value (see Equation (9)), which in turn depend on the past strategy path.
Under extreme scenarios, the replication of a call option might lead to optimal exposures greater than one share. Intuitively, this feature is optimal with respect to closing the gap between and .
3.2. Implementation Issues
There are two main problems related to the implementation of the hedging strategy: and defined by expressions (21) and (22) must be approximated and regimes must be predicted.
We discretize and with a grid G constituted of 103 equidistant points representing the underlying values s marginally covering at least 3 standard deviations under the respective highest volatility regimes. To solve the recursions given by (21) and (22), we interpolate or extrapolate linearly the simulated outcomes on G. 104 simulations are generated according to a stratified Monte Carlo sampling procedure. The details for the interpolations are presented in Appendix C2.
Next, we need to predict based on , and so on. The predicted regime is the one having the largest probability given the information on prices up to time , that is the most probable regime given by (3). See Section 2.1 for more details on regime prediction.
Then, according to (15), the optimal weights for period are approximated by
where is approximated by . In particular, the initial number of shares held is approximated by
while the remaining monies, , are invested in the riskless asset. Next, as is observed, one first computes the actual portfolio value , then one predicts the current regime and finally we approximate the optimal new weights . This process is iterated at each rebalancing period.
4. Out-of-Sample Vanilla Pricing and Hedging
To exhibit the proposed hedging protocol, we systematically sell vanilla options on the S & P 500 and hedge them until expiration. We then assess the impact of model specification on the delta-hedging strategy by examining the statistical properties of the harvested realized variance risk premium   . All hedging portfolios are re-balanced on a daily basis, as is often assumed in the volatility timing literature (see for example  ).
The market price of an option is defined as the last (i.e. at 4:15 PM EST) mid point between the bid and the ask. The price of the underlying is its listed close value. For simplicity, we neglect issues related to time-varying discount rates by assuming constant continuously compounded daily rates. Risk free rates, r, are linearly interpolated for a given maturity, n, from the zero-coupon U.S. yield curve.
4.1. The Underlying Asset
We make the reasonable assumption the spot S & P 500 is investable and tradable at a minimal cost. The forward rate is retrieved for the maturities of interest directly from the option data at hand, as proposed by  . From put-call parity, the option implied forward value at n is
where and are respectively the call and put market values expiring at T with strike K and is the at-the-money strike value minimizing for all strikes offered by the exchange. We use at-the- money options because they are the most liquid and are thus less likely to provide cash-and-carry type arbitrage opportunities. We then compute the daily forward rate as and the associated daily discounting factor , which reflects the current risk-free return on capital net of the implied continuous dividend yield.
4.2. Option Data Set
Exchange-traded options on the S & P 500 are European, heavily traded and have a high number of listed strikes and maturities.
Assuming 21 trading days per month, we select all dates from December 31th 1999 to January 31th 2012 that have at least one strike listed with 21 trading days to maturity. The period from January 2nd 1985 to December 30th 1999 is used as a burn-in to fit the various models. This gives a total of 165 inception dates from which we initiate the hedging protocols. Since options are listed monthly, this specification maximizes the sample size while avoiding overlaps.
Furthermore, under general continuous time stochastic volatility models,  demonstrate the expected hedged short option gain is a first-order homogeneous function of the sensitivity of the option value with respect to volatility, commonly called vega. We thus build a data set maximizing the exposure to the volatility premium by maximizing the vega.
It is well known that vega is maximized for at-the-money options. However, the vega difference with in-the-money and out-of-the-money options tends to decrease as volatility increases. This can easily be verified under the Black- Scholes framework. Thus, it makes sense to condition our selection in such a way that more strikes are included in the data set when expected volatility is high. With the at-the-money B & S implied volatility (IV) as a proxy for market expectations, we select all strikes that are within one IV deviation from the current underlying value,
where IV is annualized. This essentially allows us to filter out deeply in-the- money and out-of-the-money options, for which the expected volatility premium is low. Overall, we selected a total of 3189 strikes (6378 options including calls and puts). All selected options had significant open interest and non-zero bids at inception.
We apply the Gaussian regime-switching (OH-HMM) hedging methodology with a number of regimes ranging from 1 to 4. The case with 1 regime cor- responds to the Black-Scholes (OH-B & S) model and will serve as a benchmark, together with the Gaussian mixture (OH-GM) model. We are especially interested in the case with 4 regimes (OH-HMM4), since it was previously (see Section 2.4) identified as the optimal number of regimes for the S & P 500.
For each inception date, we estimate HMM parameters on the available S & P 500 log-returns from January 2nd 1985. The estimation sample window increases from inception date to inception date. The stability of parameters is highlighted in Figure 3 for the 4 regimes model.
The top graph shows the volatility of each regime versus the B & S at-the- money implied volatility, while the bottom graph shows the expected return under each regime versus the cumulative performance of the S & P 500. The three lower volatility regimes have quite stable parameters. The higher volatility regime parameters stabilize after 2003 and are later shocked by the 2008-2009 financial meltdown. Such behaviour is not surprising as the number of high volatility observations is low. Thus, stressed market observations entering the estimation window have a large impact on high volatility regime parameters.
From  , for a given moneyness (that is the strike value divided by the underlying value), the value of an option is homogeneous of degree one with respect to the underlying value. Thus, for each inception date, we normalize the option prices, the strike values and the underlying path at an initial S & P 500 value of 100. Results can thus be aggregated through time and interpreted as a percentage of S & P 500. Note that for each inception date, the hedging protocols are applied out-of-sample for the next 21 days, before re-estimating parameters.
To ensure comparability, the OH-GM assumes the stationary distribution of the OH-HMM, while the OH-B & S volatility match the stationary volatility of both the OH-HMM and OH-GM. Thus, OH-GM4 is a mixture of four Gaussian laws, corresponding to the stationary distribution of OH-HMM4. Both the OH- GM and OH-B & S optimal hedging exposures are derived from an algorithm similar to the one presented in Section 3. Optimal hedging under unconditional
Figure 3. Fitted regime volatility (top figure) and regime expected return (bottom figure) from December 31th 1999 to January 31th 2012 for the four-regimes HMM model, both presented as annualized percentage.
distributions is presented in  . All strategies minimize the expected quadratic hedging error under their respective null hypothesis, namely that return follow a regime-switching model (OH-HMM), a Gaussian mixture model (OH-GM) or a Gaussian model (OH-B & S).
OH-B & S is different from the classical Black-Scholes delta hedging. Indeed, the terminology only reflects the fact that we hedge and price under the Black- Scholes framework hypothesis, namely that assets follow geometric Brownian motions. Even though the OH-B & S prices converge to the usual Black-Scholes prices as the number of hedging periods tends to infinity, the discrete time hedging strategies will not necessarily be the same. The classical Black-Scholes delta-hedging methodology (B & S) is thus also considered. Similarly to OH-B & S, the B & S volatility is calibrated to the stationary volatility of OH-HMM and OH-GM.
4.4. Empirical Results―Pricing
4.4.1. One-Period Pricing Result
In Table 3, we present normalized model prices for the 21 days at-the-money puts on 01/19/2012. This day was characterized by a low-volatility regime for all HMM models.
The prices are increasing with the volatility of the regime, the lowest volatility
Table 3. 21 trading days to expiration at-the-money put prices on 01/19/2012 (for OH-HMM4 the most probable regime is highlighted in gray). Confidence intervals are computed from a sample of 100 pricing assuming normality.
Table 4. 21 trading days to expiration at-the-money put prices on 10/23/2008 (for OH- HMM4 the most probable regime is highlighted in gray). Confidence intervals are computed from a sample of 100 pricing assuming normality.
regime having the lowest price. The normalized market price for that day is 1.97%. For the four regimes model, the option price ranges from 1.43% to 4.64%. However, since on that day, the most probable regime is 1, the most probable OH-HMM4 option price is 1.43%. The market is overvalued with respect to this model, but undervalued with respect to B & S, OH-B & S and OH-GM4.
We present the same results for a highly volatile day during the 2008-2009 financial crisis. From Table 4, on 10/23/2008, the at-the-money put is priced at 6.88% by the market. On this day, the HMM is in its highest volatility state. Consequently, we estimate the option price for the four regimes HMM to be 4.16%, considerably lower than the market price. In this case, the market is overvalued with respect to all models.
Finally, to illustrate the behaviour of prices across strikes and maturities, we present Black-Scholes implied volatility surfaces on a low-volatility day in Figure 4. We first price the options using the different models and then solve for the Black-Scholes volatilities that return the computed prices.
Across strikes, the market displays a strong smirk effect that suggests high implied-skewness and high implied-kurtosis in the S & P 500 log-return distribution. Since OH-B & S is in line with Black-Scholes assumptions, we don’t expect it to price any skewness or excess kurtosis, which is confirmed by its flat surface. Thus, both the OH-HMM and the OH-GM overvalue out-of-the-money options with respect to Black-Scholes. Clearly, the HMM captures more kurtosis than the Gaussian mixture as evidenced by its very pronounced smile. However, neither of them succeed at matching the negative implied-skewness. Indeed,
Figure 4. Out-of-the-money implied Black-Scholes volatility surfaces for 21, 40, 50, 64, 103 and 113 trading days to expiration and a 10% moneyness range on 01/19/2012.
out-of-the money puts are considerably more expensive on the market than out-of-the-money calls. Even though both the OH-GM and OH-HMM can theoretically accommodate negatively skewed distributions, their smirk effect are almost unnoticeable, suggesting markets are overvaluing skewness with respect to models.
Since volatility is low, longer maturity options are priced at a higher implied volatility in the market to account for the mean-reverting nature of volatility. The OH-HMM captures this term-structure effect, while, unsurprisingly, both the OH-B & S and OH-GM failed to do so. Indeed, only the HMM allows for time-varying distributions.
4.4.2. Back-Test Pricing Results
In Table 5, we present the pricing results for 21 trading days to expiration puts for the whole period, from December 31th 1999 to January 31th 2012. Letting the model price and the market price, we consider the root-mean-squared pricing error:
where denotes the sample mean. Similarly, we let the pricing bias be:
The pricing bias is negative, ranging from −0.41 to −0.20, which suggests
Table 5. Root-mean-squared pricing error and pricing bias for 21 trading days to expiration puts for all selected strikes from December 31th 1999 to January 31th 2012.
options are indeed overpriced with respect to historical observations in the market. In other words, under their respective null hypothesis, each model is expected to generate a profit from the volatility premium strategy. Overall, pricing results are very similar for all static models, namely B & S, OH-B & S and OH-GM, with a bias of 0.41% and a pricing error of roughly 1.13%. Interestingly, the smaller bias of the OH-HMM4 suggests the other models overvalue the premium.
4.5. Empirical Results―Hedging
We now turn to the terminal value of the replicating portfolio minus the liability at expiration, , for all inception dates from December 31th 1999 to January 31th 2012. Once actualized, this quantity can be interpreted as the excess profits & losses (PNL) of the strategy in percent of initial S & P 500 value.
First, the annualized root-mean-squared hedging error, , are presented in Table 6 for put options. This realized risk is the empirical counterpart of the quantity we minimized (see program (8)) and as such, is the most relevant metric for comparing the different models. Results for call options are similar and can be found in Tables 8-10 of Appendix D.
Surprisingly, OH-GM and OH-B & S perform worse than B & S. In fact, the classical delta-hedging strategy performs relatively well with a RMSE of roughly 3.48 versus 3.82 for the worst performer, namely the four regimes Gaussian mixture. Furthermore, the performance of both OH-GM and OH-HMM increases with the number of regimes (results not shown). Overall, the OH- HMM performs best by decreasing the RMSE from 3.48 for the B & S benchmark to 2.64.
Next, we present the profits & losses statistics for all models in Table 7. Both OH-B & S and OH-GM perform worse than B & S under all PNL metrics. The OH-HMM4 yields greater profits, increasing the annualized expected excess PNL from 1.37% for the classical delta-hedging to 1.96%. Furthermore, all higher moments are more desirable under the OH-HMM4 protocol. Indeed, the skewness goes from −2.16 to −0.64 and the kurtosis from 13.35 to 7.69. Furthermore, the extreme negative PNL are better controlled, with a 99% value- at-risk of 2.57% versus 4.11% and a maximum drawdown of 4.63% versus 6.52%.
Finally, we present two common performance metrics, the Sharpe and Omega ratio. The former should be used with caution since its underlying normality
Table 6. Root-mean-squared hedging error for the different hedging strategies applied to 21 trading days to expiration puts for all selected strikes.
Table 7. Descriptive statistics and various performance metrics of the excess PNL, , for the four regimes hedging strategy applied to 21 trading days to expiration puts for all selected strikes from December 31th 1999 to January 31th 2012. The mean and volatility statistics are annualized. Since all returns are already discounted, the Sharpe and Omega ratio are computed by assuming a zero threshold. The value-at-risk is estimated as an empirical quantile.
assumption is clearly violated for the resulting profits & losses. Overall, the Sharpe ratio doubles over the delta-hedging protocol, while the Omega ratio shows gains from 0.67 to 0.89. Overall, the OH-HMM4 outperforms the other specifications, including Black-Scholes both in terms of expected return and risk.
In this paper, we propose a discretized version of the continuous time regime- switching model used by  , and demonstrate how to implement an optimal hedging strategy when the underlying asset returns are modeled as regime- switching random walks.
We first present estimation and filtering procedures for regime-switching models. Building on the work of   , and  , we then propose a novel goodness-of-fit test for univariate and multivariate Markovian regime-switching models that builds from Rosenblatt’s transform. This test is particularly useful to determine the optimal number of regimes.
To illustrate the proposed methodology, we model the daily return series of the S & P 500. The resulting dynamics is consistent with commonly assumed characteristics of financial markets, such as the contemporaneous asymmetry between volatility and expected returns.
Furthermore, we state the regime-switching specialization of the optimal hedging algorithm  which generates optimal discrete-time (in our case, daily) exposures minimizing a symmetric quadratic criterion for the hedging error risk. It further performs pricing from which we confirmed a downward bias with respect to market prices. Such finding is consistent with the presence of a volatility risk premium and motivated the implementation of a systematic hedged short option strategy  . We compare our hedging results to the classical delta-hedging protocol and to optimal hedging protocols when the underlying asset returns are either modelled by a Gaussian or a Gaussian mixture distribution. Gaussian regime-switching models generate lower hedging errors than static models. Interestingly, they further yield greater profits and have favourable PNL distribution characteristics, such as less kurtosis and less negative skewness. Overall, the Sharpe ratio of the regime-switching hedging methodology doubles over the classical delta-hedging framework and the Omega ratio increases by roughly 0.2.
The hedging algorithm could easily be extended to American options, and further adapted to conditional volatility models, such as GARCH models. One limitation of our work is the weak dependence induced by the regimes. It would be preferable to have serial dependence involving also the past returns. This will be done in a future work.
This research was supported by the Montreal Institute of Structured Finance and Derivatives, the Natural Sciences and Engineering Research Council of Canada, the Institut de Finance Mathématique de Montréal, and Desjardins Global Asset Management.
Appendix A. Estimation of Regime-Switching Models
The EM algorithm for estimating parameters consists of two steps, expectation and maximization:
(E-Step) Compute the conditional probabilities.
for all and .
(M-Step) Estimate the new parameters.
First, a rough estimate of the parameters must be provided. Then, the two- step procedure is repeated until a stopping criteria is met. The E-Step is described next for any densities, whilst the M-Step is stated only for Gaussian densities. For more details on the EM algorithm, see, for example,  .
A1. Conditional Distribution of the Regimes (E-Step)
First, define, for all ,
Then, for all , one can check that
We can now verify (13) and (14) are consistent. Indeed, for all ,
using the definition of . Also, . Similarly, for all ,
A2. Estimation for Gaussian Regime-Switching Models (M-Step)
For the estimation procedure, we assume the densities are Gaussian with means , and covariance matrices .
The M-step consists of updating the parameters , , and according to
for all and where .
Note that is not the stationary distribution for since for any ,
Hence, when n is large, is close to the stationary distribution of . In practice, we estimate the stationary distribution from , rather than , for consistency.
A3. Fitting of Sample Moments
Interestingly, the first two sample moments are preserved in the Gaussian case. In other words, the two first fitted stationary moments are coherent with the sample mean and covariance matrix, defined as
Indeed, from the M-step definitions, the stationary mean is
Finally, from the previous result, the stationary covariance matrix is given by
Appendix B. Goodness-of-Fit Test for Regime-Switching Models
In this Appendix, we state the goodness-of-fit test, which can be performed to assess the suitability of a regime-switching model as well as to select the optimal number of regimes, . The proposed test, based on the work of  ,  and  , uses the Rosenblatt’s transform. For conciseness, we detail the implementation for two dimensional Gaussian regime-switching models, but the approach can be easily generalized.
B1. Conditional Distribution Functions and Rosenblatt’s Transform
Let be fixed and be a random vector with density . For any , denote by the density of , and by the density of given . Further denote by the distribution function associated with density . By convention, denote the unconditional density of . Then, the Rosenblatt’s transform
is such that is uniformly distributed in .
For example, if is the density of a bivariate Gaussian distribution with mean and covariance matrix
is the density of a Gaussian distribution with mean and variance , with .
However, for regime-switching random walk models, past returns must also be included in the conditioning information set. For any , the (d-dimensional) Rosenblatt’s transform corresponding to the density (5) conditional on is given by
Suppose is a size n sample of d-dimensional vectors drawn from a joint (continuous) distribution . Also, let be the parametric family of Gaussian regime-switching models with regimes. Formally, the hypothesis to be tested is
Under the null, it follows that
are independent and uniformly distributed over , where are the Rosenblatt’s transforms conditional on the set of parameters .
Since is unknown, it must be estimated by some . Then, the pseudo- observations, are approximately uniformly distributed over and approximately independent. We next propose a test statistic based on these pseudo-observations.
B2. Test Statistic
The test statistic builds from the following empirical process:
To test against , we propose a Cramér-von Mises type statistic:
Since is almost uniformly distributed on under the null hypothesis, large values of should lead to rejection of the null hypothesis. Unfortunately, the limiting distribution of the test statistic will depend on the unknown parameter set, . Since it is impossible to construct tables, we use a different methodology, namely parametric bootstrap, to compute P-values. The validity of the parametric bootstrap approach has been shown for a wide range of assumptions in  . These results were recently extended to dynamic models  , including regime-switching random walks.
B3. Parametric Bootstrap
・ For a given number of regimes, estimate parameters with computed from the EM algorithm applied to .
・ Compute the test statistic,
from the estimated pseudo observations, , for .
・ For some large integer (say 1000), repeat the following steps for every :
- Generate a random sample from distribution .
- Compute by applying the EM algorithm to the simulated sample, .
- Let for , and finally compute
Then, an approximate P-value for the test based on the Cramér-von Mises statistic is given by
Appendix C. Optimal Hedging
C1. Optimal Hedging Algorithm
For any d-dimensional vector x, let be the diagonal matrix with diagonal elements , and further let denote the vector with components , . We assume a constant discounting factor, , with the daily continuously compounded discounting rate corresponding to the maturity, n, of C. Next, for every , set
According to  , if denotes the number of shares of the risky assets in the portfolio at the beginning of period , and is the value of the portfolio at period , the choice of and minimizing the mean square hedging error for a given payoff at maturity is and
First, let . Then, for all and every ,
(16) and (17) can be evaluated independently of the payoff, C, through offline computations. However, this is not the case for (18) and (19) for which integrals, or expectations, depending on C must be solved. This can be achieved with the Simulation/Interpolation method proposed in  , which we briefly describe next.
C2. Monte Carlo and Interpolation
Expression (18) and (19) are of the form
where and are known functions, and , . The methodology proposed in  for American options and in  for hedging is basically to use a Monte Carlo method to approximate for all points s in some finite grid G. Since the values of are approximated at discrete points only, an interpolation method is necessary to evaluate .
To estimate for every , one can:
・ Fix .
・ For , repeat the following steps:
- For every , generate .
・ For every , set
where is the linearly interpolated value from the discretized .
Appendix D. Call Results
Table 8. Root-mean-squared pricing error and pricing bias for 21 trading days to expiration calls for all selected strikes from December 31th 1999 to January 31th 2012.
Table 9. Root-mean-squared hedging error for the different hedging strategies applied to 21 trading days to expiration calls for all selected strikes from December 31th 1999 to January 31th 2012.
Table 10. Descriptive statistics and various performance metrics of the excess PNL, , for the two-regime hedging strategies applied to 21 trading days to expiration calls for all selected strikes from December 31th 1999 to January 31th 2012. The mean and volatility statistics are annualized. Since all returns are already discounted, the Sharpe and Omega ratio are computed by assuming a zero threshold. The value-at-risk is estimated as an empirical quantile.
 Potters, M., Bouchaud, J.P. and Sestovic, D. (2001) Hedged Monte-Carlo: Low Variance Derivative Pricing with Objective Probabilities. Journal of Physics A, 289, 517-525.
 Follmer, H. and Schweizer, M. (1991) Hedging of Contingent Claims under Incomplete Information. In: Davis, M. and Elliott, R., Eds., Applied Stochastic Analysis, Volume 5 of Stochastics Monographs, Gordon and Breach Science Publishers, 389-414.
 Heston, S. (1993) A Closed-Form Solution for Options with Stochastic Volatility with Application to Bond and Currency Options. Review of Financial Studies, 6, 327-343.
 Kim, C.J., Piger, J. and Startz, R. (2008) Estimation of Markov Regime-Switching Regression Models with Endogenous Switching. Journal of Econometrics, 143, 263-273.
 So, M.K.P., Lam, K. and Li, W.K. (1998) A Stochastic Volatility Model with Markov Switching. Journal of Business & Economic Statistics, 16, 244-253.
 Fong, W.M. and See, K.H. (2001) Modelling the Conditional Volatility of Commodity Index Futures as a Regime Switching Process. Journal of Applied Econometrics, 16, 133-163.
 Genest, C. and Rémillard, B. (2008) Validity of the Parametric Bootstrap for Goodness-of-Fit Testing in Semiparametric Models. Annales de l’Institut Henri Poincaré, 44, 1096-1127.
 Glosten, L.R., Jagannathan, R. and Runkle, D.E. (1993) On the Relation between the Expected Value and the Volatility of the Nominal Excess Return on Stocks. The Journal of Finance, 48, 1779-1801.
 Rémillard, B. (2011) Validity of the Parametric Bootstrap for Goodness-of-Fit Testing in Dynamic Models. Technical Report. SSRN Working Paper Series No. 1966476. Social Science Research Network, Amsterdam.
 Diebold, F.X., Gunther, T.A. and Tay, A.S. (1998) Evaluating Density Eorecasts with Applications to Financial Risk Management. International Economic Review, 39, 863-883.
 Bollerslev, T., Litvinova, J. and Tauchen, G. (2006) Leverage and Volatility Feedback Effects in High-Frequency Data. Journal of Financial Econometrics, 4, 353-384.
 Rémillard, B. and Rubenthaler, S. (2016) Option Pricing and Hedging for Regime-Switching Geometric Brownian Motion Models. Working Paper Series, SSRN Working Paper Series No. 2599064. Social Science Research Network, Amsterdam.
 Del Moral, P., Rémillard, B. and Rubenthaler, S. (2012) Monte Carlo Approximations of American Options that Preserve Monotonicity and Convexity. In: Camona, R., Moral, P.D., Hu, P. and Oudjane, N., Eds., Numerical Methods in Finance, Springer, New York, 117-145.