Since the precursory research of Markowitz  , the mean-variance (MV) criterion has become the most commonly used theoretical assumption and basis in portfolio selection and has been extended to many different kinds of applications. For example, Merton  studied the portfolio selection under a continuous time setting. By the embedding techniques, Li and Ng  and Zhou and Li  transformed the original portfolio selection problem into the auxiliary problem which is then solved by the dynamic programming approach.
However, previous works focused only on the static market state. In reality, the market state includes different states. For example, when the market is at the bullish state, the market response may be enthusiastic and the market may be profitable beyond the expectation of the public. When the state is bearish, investors will have pessimistic attitude toward the market and the return rates of assets may not be positive. Therefore, the regime-switching model, which is pioneered by Neftci  , has become one of the most important extensions of the MV portfolio selestion problem, and for details we refer the reader to the works of Zhou and Yin  , Yin and Zhou  , Çakmak and Özekici  , Xie  and Elliott et al.  .
Since the early regime-switching models only concern the problems with fixed investment period, recently the uncertain time horizon framework has become another important branch of the MV portfolio selection problem. For the works on uncertain time horizon, we refer the reader to Guo and Hu  , Yi et al.  , Wu and Li  and Yao et al.  . Besides, the study of Karatzas and Wang  , Martellini and UrosÌŇevicÌĄ  and Blanchet-Scalliet et al.  further regarded the asset price as an uncertain factor which affects the investment time horizon.
From the existing literature on portfolio selection in a regime-switching market, there are two important factors that are always neglected. Firstly, there is very few research on the extreme market state in which a company might proclaim the bankruptcy. In such an extreme state like the financial crisis in 2008, companies in the market are struggling with heavy liability that bankruptcy is the best option for themselves. Investors who invest in such companies can only retrieve part of the funds from the bankrupt company. Because of universality of the company bankruptcy in this market state, investors would rather invest the money to the risk-less asset than risky assets in order to avoid the investment risk. In reality, bankruptcy is not a rare situation. According to the statistical data by www.afsa.gov.au, the number of business related bankruptcy in Australia for just the June quarter 2018 is 1213, which suggests that it is fairly meaningful and realistic to consider the bankruptcy state.
The other factor is the exit probability which relies on the time and the market state. In this context, when the investment background becomes worse or the market state is currently being bearish, it is more likely that investors will quit the market to avoid the investment risk. On the other hand, the exit probability may differ as time goes by, for example, an investor generally quits the market after the investment reaches maturity, which means that the exit probability is higher at the end of the time horizon than any other time points. Based on the above consideration, we cannot predetermine the state-dependent time horizon since the market state is unknown prior to the corresponding time point, which suggests that this assumption is different and much more realistic than those in the existing literature. Because both the bankruptcy state and the state-dependent investment time horizon often occur in the real world, it is significant and necessary to combine and study these two factors with the MV portfolio selection problem in the regime-switching market. Wu and Zeng  studied the portfolio selection with bankruptcy state, but do not consider the factor of exit probability. Based on the multi-period mean-variance portfolio selection. Wu et al.  assumed that the uncertain time horizon depends on the market state, however, the exit probability is not considered. Because of this novel research angle in this paper, the wealth process becomes fairly different from previous formulations, and we assume that the conditional exiting probability depends on the current market state including the bankruptcy state. Therefore, in order to obtain the optimal strategy and the corresponding efficient frontier, innovative expressions of the wealth formulation and the iteration process are needed, which is the main difficulty and contribution in this paper. Besides, we prove that our work is a general model including several existing models in literature as special cases. By comparing the efficient frontiers in different situations, numerical examples illustrate that both of the two factors affect the investment strategy and the corresponding efficient frontier significantly.
The rest of this paper is organized as follows. Section 2 introduces the mean-variance formulation of the portfolio selection problem under the regime-switching framework, and the auxiliary problem is also given. The closed-form expression of the optimal strategy in the auxiliary problem is established in Section 3. Section 4 is devoted to detailed transformation and derivation of the optimal strategy and efficient frontier of the original problem. Sections 5 and 6 provide extreme cases and numerical analysis respectively. The conclusion of this paper is presented in Section 7.
2. Problem Formulation
This paper assumes that an investor enters the market at time 0 with initial wealth . Denote by the market state at time and assume that is a time-homogeneous Markov chain with a transition matrix Q. Let L denote the bankruptcy state in which the investor will get back of the wealth from the bankrupt company, where refers to the retrieval rate which is assumed to be a random variable ranging between . Since in the bankruptcy market state risky assets will have similar economic performance, this paper assumes that there are only one risky asset and one risk-less asset in the market in order to underline the effects of the bankruptcy state on the optimal investment strategy. Let and signify the return rate of the risky asset and the risk-less asset respectively. With regard to the state-dependent exiting probability, suppose that the investor quits the market with the probability which depends on the current market state. Let represent the exit time and define
Proof. (i) First, we prove Equation (12) according to Equation (6), for , we have
Based on A2, we rewrite Equation (13) as follows:
Note that Equation (14) is equivalent to Equation (12), which means that Equation (12) holds true for .
Then we prove the expressions(10)-(11) for by using mathematical induction. First, we show that the expressions are true for in (ii), and then in (iii) prove that if the expressions hold true for , then they are also true for .
(ii) For , based on Equation (4) and (5) and (12), we have
As in Lemma 2, the optimal solution for exists and can be obtained by setting to yield
Substituting Equation (15) into the expression for , we have
Hence, Equations (10) and (11) are true for .
(iii) Assume that Equation (10), (11) and (12) hold true for , then when , we have
Substituting Equation (2) into Equation (17), we have
Note that in Equation (18), when ; when , where is the retrieval rate of the money that has been invested into the bankrupt company.
Then we rewrite Equation (18) as follows:
According to N8 and N9, we rewrite Equation (19) as follows:
Based on the equations above, we have the following equations:
Then based on the equations above and Equation (29), we have the following corresponding efficient frontier when there is no bankruptcy state:
which is in accordance with that in Çakmak and Özekici  .
6. Numerical Analysis
This section has three parts and focuses on the changes in the efficient frontier. The first part studies the different transition probabilities to bankruptcy state . In the second part we consider the effect of various state-dependent exit probability . The third part focuses on the effect of the factor of the retrieval rate .
In numerical analysis, we assume that there are three market states during the four-period time horizon including the bullish state, the bearish state and the bankrupt state represented by and 3 respectively. Note that the investment condition under the bullish market state ( ) is better than that under the bearish market state ( ) which in turn is superior to the one under the bankrupt state ( ). In the bankrupt state, the company invested goes bankrupt and the investor can get back of the wealth. Besides, assume that the initial wealth and the initial market state , and other parameters are as follows:
We define the transition matrix Q as follows:
Besides, we define the state-dependent exit probability at each time point as follows:
Case 1. In this case, we focus on the effects of different transition probabilities from state to on the corresponding efficient frontiers. Assume in Q and we then calculate the efficient frontier respectively. Note that when n increases, the probability of entering the bankrupt state decreases, which suggests that the company tends to be more safer. Besides, in order to make comparison we also consider the case with no bankrupt state ( ). Figure 1 shows the corresponding efficient frontiers based on different n.
From Figure 1 we can see that when n increases, namely, the transition probability to bankrupt state L decreases, the corresponding efficient frontier moves down to get closer to the efficient frontier with no bankrupt state which is at the lowest position in Figure 1, and the slope of the efficient frontier also gets smaller. This figure is reasonable because in order to obtain the same level of the expected terminal wealth, the investor will take more risks if there is a bankrupt state in the market, namely, they have to face the possibility that the invested company goes bankrupt and they lost their investment. Otherwise, the investor does not need to worry about the bankruptcy risks and consequently has relatively low variance of the investment.
Case 2. This case underlines the importance of the state-dependent exit probability. Besides the state-dependent exit probability mentioned above, we define another two sets of probabilities as follows in order to make a comparison and show the differences.
Table 2 shows indifference between the market state and the exit probability, namely, the exit probability becomes deterministic and is just like that in literature. In Table 3, we underlines the difference between the bullish state and the bearish state. The bankrupt state, however, has the same exit probability with that in the bearish state, which suggests that the exit probability is partially dependent on the market state. On the other hand, Table 1 shows the total dependence of the exit probability on the market state. Besides, we assume that n = 8 and the other parameters are the same as those at the beginning of this section. We then obtain the results as shown in Figure 2.
Figure 1. Mean-variance efficient frontiers for Case 1.
Figure 2. Mean-variance efficient frontiers for Case 2.
Table 1. Three different sets of probabilities.
With an increase in the exit probability under the bankruptcy state during the time horizon, the efficient frontier moves downward. However, the slope of the efficient frontier with Table 2 is larger than those with Table 1 and Table 3.
Table 2. The same set of probabilities.
Table 3. Two different sets of probabilities.
This result is realistic and logical. When the exit probability is deterministic and independent of the market state, people will take higher investment risks for the sake of the same level of the expected terminal wealth. This is because when the exit probability depends on the market state, for example, Table 1, the investor quits the market with higher exit probability when the market is being the bankruptcy state. Regardless of whatever reasons the investor quits the market, and the bankruptcy market state makes it easier for the company to go bankrupt and this high exit probability indeed provides more possibility for the investor to quit the market and prevent further investment loss. Therefore, the dependency of exit probability on the market state is like a “fuse” that indirectly protects people from further investment loss. On the other hand, investors who are under a situation like Table 2 or Table 3, when the market state is being the worst, their exit probability is always unchanged. Hence, the exit probability makes no extra contribution to the protection for the investment.
Case 3. This case considers the impact of δ on the corresponding efficient frontier. Note that δ stands for the retrieval part of the wealth after bankruptcy happens. We assume that there are five sets of data about the expectation of δ and are shown as follows: (Table 4)
Note that we assume that the variance of δ is unchanged ( ). Besides, let and use the state-dependent exit probability as in Table 1, and the other parameters remain unchanged. We then have the results as shown in Figure 3.
From Figure 3 we see that when the expectation of δ increases, the efficient frontier moves downward and its slope also decreases. When the expectation of δ is large, one will have high expectation of terminal wealth which can obtain the global minimum variance, which is not surprising, as one knows that bankruptcy has little impact on their investment since they can get more money back from the bankrupt company. Therefore, one has smaller global minimum variance and larger corresponding expectation. Besides, the efficient frontier with larger δ has smaller slope, this is because when people get the money back
Table 4. The expectation of δ.
Figure 3. Mean-variance efficient frontiers for Case 3.
from the bankrupt company, they invest it into the risk-less asset. Hence, this kind of investment situation is always of relatively small investment risks from the beginning to the end.
Based on multi-period mean-variance portfolio selection under the regime-switching framework, we consider two fairly new and important factors: the bankruptcy state and the state-dependent exit probability, both of which are fairly meaningful in the real world. When the market state is in the bankruptcy state, the company goes bankrupt and the investor can only get part of the investment back. On the other hand, there are exit probabilities that depend on the market state: the exit probabilities under bad states tend to be larger than that in good states. We then create an innovative expression for the wealth process and value functions by dynamic programming, then we obtain the closed-form of optimal strategy and the efficient frontier. Our study shows that 1) the model in this paper generalizes those in literature, when ignoring certain factors, we can derive the previous models and results; 2) in order to obtain the same level of terminal wealth expectation, investors will take more investment risks when it is easier for the market state to enter the bankruptcy state; 3) when the exit probability depends on the bad market state such as the bearish state and the bankruptcy state, the efficient frontier moves down and its slope gets larger, which suggests that the high exit probability provides more possibility for the investor to quit the market and prevent further investment loss; 4) when the retrieval parameter δ becomes larger, the efficient frontier moves down and its slope decreases, which suggests that investors will take less risks to obtain the same level of expected terminal wealth.