conditional mean and variance-co-variance matrix

조회 수: 13 (최근 30일)
FEI
FEI 2015년 6월 27일
댓글: FEI 2015년 6월 30일
I have 9 time series R, which is N*9 matrix. i would like to get conditional mean and variance for these time series. how can i write the code in matlab Under two different models? one is AR and GARCH, and another one is EWMA. i also need conditional variance-Covariance matrix, how to write the code under both of models.
thanks

답변 (1개)

Adam Hug
Adam Hug 2015년 6월 30일
For the AR model, you can call the "estimate" function to generate an ARIMA/GARCH model object as well as the conditional variance-covariance matrix:
For an EWMA model, MATLAB has no builtin functionality that supports this. However, there are a few file exchange submissions that may help:
Both of these submissions contain tools for deriving the covariance matrix of an EWMA model.
  댓글 수: 1
FEI
FEI 2015년 6월 30일
Thank you for your suggestion, but i still confused. for example, i have data which contain weekly stock returns of 9 companies. Now, i want to construct a portfolio weights using mean-variance approach. in transitional method, the sample mean and variance-covariance is used. but, in my method, i would like to use conditional mean and variance-covariance matrix. how to estimate them in Matlab, if i use AR(1) and GARCH (1,1)? i know, the 'estimate' function can give me the estimated parameters of AR and Garch model. but it does not give me final conditional mean and variance matrix. such as use AR(1) and GARCH (1,1), model form are
the 'estimate' function just can give me parameters of model, but i need r and sigma. sure, if we estimated parameters, we can calculate the final r and sigma by hand. but, i perform a rolling-sample analysis, which means that i have to calculate them by Matlab code.
so, can you tell how to write the code?
Thank you.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Conditional Mean Models에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by