隱馬可夫模型之預測誤差研究
Forecasting Error of Markov-Switching Model
摘要
時間序列資料經常使用MSI(2)-AR(1)模型去估計,本文目標在於探討利用MSI(2)-AR(1)估計時誤差的來源及提供誤差計算的方法與公式,誤差分解的方法主要分為在模型參數已知及模型參數未知2種情況,首先會利用模擬的資料做分析,參數已知及模型參數未知分別會藉由公式分解成4個誤差及3個誤差,參數已知會藉由重複模擬了解誤差比例的分布,參數未知則藉由bootstrap了解模型誤差比例的分配用以建立其信賴區間,另外會將模型參數未知的方法套用在S&P500的日報酬中,了解真實資料其誤差來源的相對貢獻。此外模型參數未知的方法可以擴展到二維度進行探討,首先會說明如何最小化風險的資產配置,再探討誤差來源,一樣會利用模擬的資料做分析且藉由bootstrap了解模型誤差比例的分配用以建立其信賴區間。最後當模型來自於AR(1)模型時,用MSI(2)-AR(1)估計已知參數的方法,可以計算出估錯模型造成的的誤差占比。
Time series data are often estimated by the MSI(2)-AR(1) model. The goal of this article is to decompose the errors when using MSI(2)-AR(1) model to estimate and provide error decomposition methods and formulas. The error decomposition methods has two cases: the parameters are known and the parameters are unknown. First, we will simulate the data and analyze it. The known parameters case will be decomposed into 4 errors and the unknown parameters case will be decomposed into 3 errors respectively by formulas. Through repeated simulations to understand the distribution of error proportions. When the parameters are unknown, we find about the distribution and confidence interval of error proportions by bootstrap. The method of unknown parameters is further applied to the daily return of S&P500. In addition, the unknown-parameter method can be extended to two dimensions for discussion. First, we will explain how to minimize the risk of asset allocation, and then decompose the errors. It will also use simulated data for analysis and use bootstrap to find the distribution of model error ratios to establish its confidence interval. Finally, when the data comes from the AR(1) model but estimated by MSI(2)-AR(1), some of its error would come from the wrong guess of the model.