@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ INDEX OF GAUSS CODES AND DATA FILES FOR Valentina Corradi, and Norman R. Swanson, April 2009, "Predictive Density Construction and Accuracy Testing with Multiple Possibly Misspecified Diffusion Models" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Following are instructions to get results in 'CSTables.tex' ******************************************************************************************************************* 1. Table 7: CS Specification Test Results (CIR is the benchmark, Block size=5): Sample period 01/1989-12/1998 code: ModelSelec_7_1989_L5.prg input: Rff1989_1998.txt output: 1989_l5_1.txt (results for u_bar=(meanc(xxt)-0.5*stdc(xxt))|(meanc(xxt)+0.5*stdc(xxt));//the interval u_bar) 1989_l5_2.txt (results for u_bar=(meanc(xxt)-1*stdc(xxt))|(meanc(xxt)+1*stdc(xxt));//the interval u_bar) ---------------------------------------------------------------------------------------------------------------------- Estimation for SVJ model, we fix jump parameters as following: _co_A = {0 0 0 0 0 0 1 0 0 0, 0 0 0 0 0 0 0 1 0 0, 0 0 0 0 0 0 0 0 1 0, 0 0 0 0 0 0 0 0 0 1}; _co_B = {5.4979, 0.0006, 2.121, 0.002};// add equality constraint for this one, becoz H fails, fix lamda in SVJ estimation To find the jump parameter, we using "Modelselec_1989_grid.prg". Same for Tables 8-9 Code: Modelselec_1989_grid.prg Input: Rff1989_1998.txt output: estimated parameters and "f" value. we look for the set of parameters that minimize f --------------------------------------------------------------------------------------------------------------------- Bootstrap: see details in Bootstrap.tex file. ******************************************************************************************************************* 2. Table 8: CS Specification Test Results (CIR is the benchmark, Block size=10): Sample period 01/1989-12/1998 code:ModelSelec_7_1989_L10.prg input: Rff1989_1998.txt output: 1989_l10_1.txt (results for u_bar=(meanc(xxt)-0.5*stdc(xxt))|(meanc(xxt)+0.5*stdc(xxt));//the interval u_bar) 1989_l10_2.txt (results for u_bar=(meanc(xxt)-1*stdc(xxt))|(meanc(xxt)+1*stdc(xxt));//the interval u_bar) ---------------------------------------------------------------------------------------------------------------------- ******************************************************************************************************************* 3. Table 9: CS Specification Test Results (CIR is the benchmark, Block size=20): Sample period 01/1989-12/1998 code:ModelSelec_7_1989_L20.prg input: Rff1989_1998.txt output: CS_1989_L20_1.txt (results for u_bar=(meanc(xxt)-0.5*stdc(xxt))|(meanc(xxt)+0.5*stdc(xxt));//the interval u_bar) CS_1989_L20_2.txt (results for u_bar=(meanc(xxt)-1*stdc(xxt))|(meanc(xxt)+1*stdc(xxt));//the interval u_bar) ---------------------------------------------------------------------------------------------------------------------- ******************************************************************************************************************* 4. Table 9: CS Specification Test Results (CIR is the benchmark, Block size=5): Sample period 01/1999-04/2008 code:ModelSelec_7_1989_L20.prg input: Rff1999_2008.txt output: CIR_5.txt (results for u_bar=(meanc(xxt)-0.5*stdc(xxt))|(meanc(xxt)+0.5*stdc(xxt));//the interval u_bar) CIR_5_2.txt (results for u_bar=(meanc(xxt)-1*stdc(xxt))|(meanc(xxt)+1*stdc(xxt));//the interval u_bar) ---------------------------------------------------------------------------------------------------------------------- Estimation for SVJ model, we fix jump parameters as following: _co_A = {0 0 0 0 0 0 1 0 0 0, 0 0 0 0 0 0 0 1 0 0, 0 0 0 0 0 0 0 0 1 0, 0 0 0 0 0 0 0 0 0 1}; _co_B = {5.4979, 0.0011, 3.121, 0.002};// add equality constraint for this one, becoz H fails, fix lamda in SVJ estimation To find the jump parameter, we using "Modelselec_1999_grid.prg". Same for Tables 10-11 Code: Modelselec_1999_grid.prg Input: Rff1999_2008.txt output: estimated parameters and "f" value. we look for the set of parameters that minimize f ******************************************************************************************************************* 5. Table 10: CS Specification Test Results (CIR is the benchmark, Block size=10): Sample period 01/1999-04/2008 code:ModelSelec_7_1989_L20.prg input: Rff1999_2008.txt output: CIR_10.txt (results for u_bar=(meanc(xxt)-0.5*stdc(xxt))|(meanc(xxt)+0.5*stdc(xxt));//the interval u_bar) CIR_10_2.txt (results for u_bar=(meanc(xxt)-1*stdc(xxt))|(meanc(xxt)+1*stdc(xxt));//the interval u_bar) ---------------------------------------------------------------------------------------------------------------------- ******************************************************************************************************************* 6. Table 11: CS Specification Test Results (CIR is the benchmark, Block size=20): Sample period 01/1999-04/2008 code:ModelSelec_7_1989_L20.prg input: Rff1999_2008.txt output: CIR_20.txt and CIR_20-1.txt (results for u_bar=(meanc(xxt)-0.5*stdc(xxt))|(meanc(xxt)+0.5*stdc(xxt)); CIR_20_22.txt (results for u_bar=(meanc(xxt)-1*stdc(xxt))|(meanc(xxt)+1*stdc(xxt));//the interval u_bar) ---------------------------------------------------------------------------------------------------------------------- Following are procedures of the Main Code: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ INDEX OF GAUSS CODES AND DATA FILES FOR Valentina Corradi, and Norman R. Swanson, March 2007, "Model Selection Type Predictive Density Accuracy Tests for Diffusion Processes" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ################################################################################################################# DATA Federal fund rate(market data) : Weekly data for two samples: 01/06/1988-12/31/1998, 01/08/1999-04/30/2008 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/ File: Rff1999_2008.txt This file contains the data for Federal fund rate: Weekly data 01/1998-04/2008 Location: D:\lili\Norm @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/ ################################################################################################################# CODES ################################################################################################################# /*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ REQUIRED GAUSS LIBRARIES (a) CO @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/ Models considered in the code: model_ind; model indicator = 1 CIR = 2 SV = 3 SVJ = 4 CHEN = 5 CHEN_JUMP = 6 SM ***************************************************************************************************************** OUTLINE OF THE MAIN PROCEDURES: * 1. estimate model using first t obs 2. simulate x_sim(t+tao) N times for tao-step ahead prediction, based on parameters estimated step 1. 3. calculate simulated conditional distribution prob(u1