亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? garchpred.m

?? 灰色控制 灰色控制 matlab
?? M
?? 第 1 頁 / 共 2 頁
字號:
function [h , y , yTotalRMSE, yRMSE] = garchpred(spec , y , horizon , X , XF)
%GARCHPRED Univariate GARCH process forecasting.
%   Given specifications for the conditional mean and variance of an observed 
%   univariate return series, forecast the conditional mean and standard 
%   deviation of the return series NUMPERIODS into the future. Additionally, 
%   volatility forecasts of asset returns over multi-period holding intervals, 
%   and the standard errors of conditional mean forecasts are also computed. 
%   The conditional mean and variance may be of general ARMAX and GARCH form, 
%   respectively.
%   
%   [SigmaForecast, MeanForecast, ...
%    SigmaTotal   , MeanRMSE    ] = garchpred(Spec , Series)
%
%   [SigmaForecast, MeanForecast, ...
%    SigmaTotal   , MeanRMSE]     = garchpred(Spec, Series, NumPeriods, X, XF)
%
%   Optional Inputs: NumPeriods, X, XF
%
% Inputs:
%   Spec - Structure specification for the conditional mean and variance models.
%     Spec is a MATLAB structure with fields generated by calling the function 
%     GARCHSET, or the output of the estimation function GARCHFIT. For details, 
%     type "help garchset" or "help garchfit".
%
%   Series - Matrix of observations of the underlying univariate return series 
%     of interest. Series is the response variable representing the return 
%     series fit to conditional mean and variance specifications. Each column 
%     of Series in an independent realization (i.e., path). The last row of 
%     Series holds the most recent observation of each realization. Series is 
%     assumed to be a stationary stochastic process, and the ARMA component of 
%     the conditional mean model (if any) is assumed to stationary and 
%     invertible.
%
% Optional Inputs:
%   NumPeriods - Positive, scalar integer representing the forecast horizon of
%     interest, expressed in periods compatible with the sampling frequency 
%     of the input Series. If empty or missing, the default is 1.
%
%   X - Time series regression matrix of observed explanatory data. Typically, 
%     X is a matrix of observed asset returns (e.g., the return series of an 
%     equity index), and represents the 'past history' of the explanatory data. 
%     Each column of X is an individual explanatory variable in the regression 
%     component of the conditional mean. In each column of X, the first row 
%     contains the oldest observation and the last row the most recent. If X is 
%     specified, the most recent number of valid (non-NaN) observations in each 
%     column of X must equal or exceed the most recent number of valid 
%     observations in Series. When the number of valid observations in each 
%     column of X exceeds that of Series, only the most recent observations of 
%     X are used. If empty or missing, the conditional mean will have no 
%     regression component. 
%
%   XF - Time series matrix of forecasted explanatory data. XF represents the 
%     evolution of the same explanatory data found in X projected into the 
%     'future'. Thus, XF and X must have the same number of columns. In each 
%     column of XF, the first row contains the 1-period-ahead forecast, the 
%     second row the 2-period-ahead forecast, and so on. If XF is specified, 
%     the number of rows (forecasts) in each column (time series) of XF must 
%     equal or exceed the forecast horizon NUMPERIODS. When the number of 
%     forecasts in XF exceeds NUMPERIODS, only the first NUMPERIODS forecasts 
%     are used. If empty or missing, the conditional mean forecast will have 
%     no regression component.
%
% Outputs:
%   SigmaForecast - Matrix of minimum mean square error (MSE) forecasts of 
%     the conditional standard deviation of Series on a per period basis. 
%     SigmaForecast will have NUMPERIODS rows and the same number of columns as
%     Series. The first row contains the volatility forecast in the 1st period 
%     for each realization of Series, the second row contains the volatility 
%     forecast in the 2nd period, and so on. Thus, if a forecast horizon 
%     greater than one is specified (NUMPERIODS > 1), the per-period forecasts 
%     of all intermediate horizons are returned as well; in this case, the last
%     row will contain the forecast at the specified horizon.
%
%   MeanForecast - Matrix of minimum mean square error (MSE) forecasts of the
%     conditional mean of Series on a per period basis. MeanForecast will be 
%     the same size as SigmaForecast. The first row contains the forecast in 
%     the 1st period for each realization of Series, the second row contains 
%     the forecast in the 2nd period, and so on.
%
%   SigmaTotal - Matrix of volatility forecasts of Series over multi-period 
%     holding intervals. The first row contains the standard deviation of returns
%     expected for assets held for 1 period for each realization of Series, the 
%     second row contains the standard deviation of returns expected for assets 
%     held for 2 periods, and so on. Thus, the last row will contain the 
%     volatility forecast of the cumulative return that would be obtained if an 
%     asset was held for the entire NUMPERIODS forecast horizon. These forecasts
%     are correct for continuously-compounded returns, and approximate for 
%     periodically compounded returns. SigmaTotal is the same size as 
%     SigmaForecast provided the conditional mean is modeled as a stationary/
%     invertible ARMA process; for conditional mean models with regression 
%     components (i.e., X and/or XF are specified), an empty matrix, [], is 
%     returned.
%
%   MeanRMSE - Matrix of root mean square errors (RMSE) associated with 
%     MeanForecast. That is, MeanRMSE is the conditional standard deviation 
%     of the forecast errors (i.e., the standard error of the forecast) of the
%     corresponding MeanForecast matrix. MeanRMSE is the same size as 
%     MeanForecast and is organized in exactly the same manner, provided the
%     conditional mean is modeled as a stationary/invertible ARMA process; for 
%     conditional mean models with regression components (i.e., X and/or XF 
%     are specified), an empty matrix, [], is returned.
%
% Notes:
%   (1) Since a complete conditional mean specification is required to correctly
%     infer the innovations process which drives the forecasts, the regression 
%     matrix of observed returns (X), is typically the same X (if any) used for 
%     simulation (via GARCHSIM) and/or estimation (via GARCHFIT). XF, however, 
%     is just the forecast of X, and is ONLY needed for forecasting the 
%     conditional mean (MeanForecast). Thus, if only the conditional variance 
%     forecast (SigmaForecast) is needed, XF is unnecessary. Furthermore, 
%     although X may be specified without XF, the converse is NOT true. XF may 
%     be specified ONLY when X is specified.
%   (2) This function calls the function GARCHINFER to access the past history 
%     of innovations and conditional standard deviations inferred from Series. 
%     If the innovations and conditional standard deviations are needed, call 
%     GARCHINFER directly.
%
% See also GARCHSET, GARCHSIM, GARCHINFER, GARCHFIT.

% Copyright 1999-2002 The MathWorks, Inc.   
% $Revision: 1.10 $   $ Date: 1998/01/30 13:45:34 $

%
% References:
%   Baillie, R.T., Bollerslev, T. (1992), "Prediction in Dynamic Models with 
%     Time-Dependent Conditional Variances", Journal of Econometrics, 
%     vol. 52, pp. 91-113.
%   Bollerslev, T. (1986), "Generalized Autoregressive Conditional 
%     Heteroskedasticity", Journal of Econometrics, vol. 31, pp. 307-327.
%   Box, G.E.P., Jenkins, G.M., Reinsel, G.C., "Time Series Analysis: 
%     Forecasting and Control", 3rd edition, Prentice Hall, 1994.
%   Engle, Robert (1982), "Autoregressive Conditional Heteroskedasticity 
%     with Estimates of the Variance of United Kingdom Inflation", 
%     Econometrica, vol. 50, pp. 987-1007.
%   Hamilton, J.D., "Time Series Analysis", Princeton University Press, 1994.
%

%
% Test for stationarity & invertibility of the ARMA model. This should be 
% done here because the input SPEC structure may be the output of the
% estimation function GARCHFIT which does NOT guarantee stationarity or
% invertibility of the ARMA model. 
%

AR  =  garchget(spec , 'AR');      % Conditional mean AR coefficients.
MA  =  garchget(spec , 'MA');      % Conditional mean MA coefficients.

if any(abs(roots([1 ; -AR(:)])) >= 1)
   error(' Auto-Regressive Polynomial must be Stationary.')
end

if any(abs(roots([1 ;  MA(:)])) >= 1)
   error(' Moving-Average Polynomial must be Invertible.')
end

%
% Check & scrub the observed return series matrix y(t).
%

if (nargin < 2)

   error(' Observed return series ''Series'' must be specified.');

else

   rowY  =  logical(0);     

   if prod(size(y)) == length(y)   % Check for a vector (single return series).
      rowY  =  size(y,1) == 1;     % Flag a row vector for outputs.
      y     =  y(:);               % Convert to a column vector.
   end

%
%  The following code segment assumes that missing observations are indicated
%  by the presence of NaN's. Any initial rows with NaN's are removed, and 
%  processing proceeds with the remaining block of contiguous non-NaN rows. 
%  Put another way, NaN's are allowed, but they MUST appear as a contiguous 
%  sequence in the initial rows of the y(t) matrix. Since the log-likelihood 
%  functions are designed to process y(t) as a matrix (instead of individual 
%  vectors!), any initial rows with NaN's are stripped. Thus, realizations 
%  with no missing observations will lose data if other realizations have 
%  missing values.
%
   i1  =  find(isnan(y));
   i2  =  find(isnan(diff([y ; zeros(1,size(y,2))]) .* y));

   if (length(i1) ~= length(i2)) | any(i1 - i2)
      error(' Only initial observations in ''Series'' may be missing (NaN''s).')
   end

   if any(sum(isnan(y)) == size(y,1))
      error(' A realization of ''Series'' is completely missing (all NaN''s).')
   end

   firstValidRow  =  max(sum(isnan(y))) + 1;
   y              =  y(firstValidRow:end , :);

end

%
% Check input parameters and set defaults.
%

if (nargin >= 3) & ~isempty(horizon)
   if prod(size(horizon)) > 1
      error(' Forecast horizon ''NumPeriods'' must be a scalar.');
   end
   if (round(horizon) ~= horizon) | (horizon <= 0)
      error(' Forecast horizon ''NumPeriods'' must be a positive integer.');
   end
else
   horizon  =  1;   % Set default.
end

%
% Scrub the regression matrix, and ensure the observed return series matrix y(t) 
% and the regression matrix X(t) have the same number of valid (i.e., non-NaN)
% rows (i.e., impose time index compatibility).
%

if (nargin >= 4) & ~isempty(X)

   if prod(size(X)) == length(X)   % Check for a vector.
      X  =  X(:);                  % Convert to a column vector.
   end
%
%  Retain the last contiguous block of non-NaN (i.e, non-missing valued) observations only. 
%
   if any(isnan(X(:)))
      X  =  X((max(find(isnan(sum(X,2)))) + 1):end , :);
   end

   if size(X,1) < size(y,1)
      error(' Regression matrix ''X'' has insufficient number of observations.');
   else
      X  =  X(size(X,1) - (size(y,1) - 1):end , :);    % Retain only the most recent samples.
   end
%
%  Ensure number of regression coefficients match number of regressors.
%
   regress =  garchget(spec , 'Regress'); % Conditional mean regression coefficients.

   if size(X,2) ~= length(regress)
      error(' Number of ''Regress'' coefficients unequal to number of regressors in ''X''.');
   end

else

   X        =  [];   % Ensure X exists.
   regress  =  [];

end

%
% Scrub the regression forecast matrix XF(t) and ensure sufficient forecasts exist 
% to (at least) cover the forecast horizon. As opposed to X(t), which may contain 
% some missing data (i.e., NaN's), XF(t) is created by the user and should contain
% no missing data (i.e., XF(t) should be NaN-free). Also, XF(t) and X(t) MUST have 
% the number of columns (i.e., explanatory variables).
%

if (nargin >= 5) & ~isempty(XF)

%
%  Check XF(t) versus X(t).
%
   if isempty(X) & ~isempty(XF)
      error(' Forecast matrix ''XF'' cannot be specified without ''X''.');
   end

   if size(X,2) ~= size(XF,2)
      error(' Matrices ''XF'' and ''X'' must have the same number of columns.');
   end

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
69成人精品免费视频| 欧美日韩精品免费观看视频| 欧美96一区二区免费视频| 国产精品―色哟哟| 久久久综合精品| 91精品国产高清一区二区三区| 色妹子一区二区| 99久久婷婷国产综合精品| 国产呦萝稀缺另类资源| 蜜臀av性久久久久蜜臀aⅴ流畅| 亚洲靠逼com| 亚洲精品免费在线播放| 亚洲欧美一区二区在线观看| 成人欧美一区二区三区| 成人欧美一区二区三区视频网页| 国产精品色一区二区三区| 国产精品国产自产拍高清av| 亚洲综合偷拍欧美一区色| 亚洲天堂免费看| 亚洲天堂a在线| 亚洲免费观看高清完整版在线观看| 国产精品妹子av| 亚洲欧美在线另类| 久久精品水蜜桃av综合天堂| 精品国产免费久久| 国产亚洲午夜高清国产拍精品 | 日韩综合在线视频| 亚洲在线成人精品| 亚洲成人三级小说| 视频精品一区二区| 另类专区欧美蜜桃臀第一页| 久久国产精品第一页| 美国十次综合导航| 不卡av电影在线播放| 欧洲另类一二三四区| 欧美亚洲丝袜传媒另类| 欧美精品1区2区3区| 日韩一区二区三区电影| 精品国产免费久久| 久久看人人爽人人| 国产精品护士白丝一区av| 亚洲精品老司机| 日本女人一区二区三区| 国产福利精品一区二区| 92精品国产成人观看免费| 在线观看国产91| 欧美成人精品高清在线播放| 欧美国产精品专区| 夜夜精品浪潮av一区二区三区| 偷偷要91色婷婷| 国产高清精品网站| 欧美日韩中文一区| 精品91自产拍在线观看一区| www成人在线观看| 亚洲日穴在线视频| 日本91福利区| 懂色av一区二区三区免费观看| 国产成人综合在线观看| 粉嫩欧美一区二区三区高清影视 | 欧美成人a∨高清免费观看| 国产欧美中文在线| 日韩中文欧美在线| 成人深夜视频在线观看| 欧美精品电影在线播放| 欧美一级欧美三级| 中文字幕制服丝袜一区二区三区 | 同产精品九九九| 欧美人与禽zozo性伦| 欧美日韩大陆一区二区| 中文字幕国产一区| 日韩国产欧美在线播放| 99热在这里有精品免费| 欧美一区二区在线视频| 亚洲免费成人av| 国产白丝精品91爽爽久久| 欧美日韩夫妻久久| 1024成人网色www| 麻豆精品久久久| 在线精品视频免费播放| 亚洲国产成人一区二区三区| 亚洲九九爱视频| 99久久99久久精品国产片果冻| 91精品国产手机| 亚洲色图在线视频| 国产精品影视网| 欧美在线一二三四区| 国产欧美一区二区三区网站| 日韩国产高清影视| 在线视频一区二区三区| 国产精品国产三级国产| 精品一区二区免费视频| 欧美福利一区二区| 亚洲欧美自拍偷拍| 国产99久久久精品| 久久亚洲综合av| 亚洲国产一区视频| 在线欧美日韩精品| 亚洲人成人一区二区在线观看| 国产一二精品视频| 91精品福利在线一区二区三区 | 亚洲成人第一页| 99久久99久久精品免费观看 | 欧美大尺度电影在线| 亚洲一区二区三区影院| 色婷婷精品大在线视频| 国产精品美日韩| 国内外成人在线视频| 欧美大片日本大片免费观看| 日韩av成人高清| 欧美亚洲一区二区在线观看| 最新成人av在线| 91网址在线看| 亚洲欧美日韩国产另类专区 | 久久国产精品99久久久久久老狼| 欧美日韩国产小视频在线观看| 亚洲精品国产成人久久av盗摄 | 91网址在线看| 国产精品久久久久影院老司| 国产a久久麻豆| 日韩欧美一级在线播放| 日本午夜精品视频在线观看 | 在线视频你懂得一区| 一区二区三区电影在线播| 91黄色小视频| 午夜视黄欧洲亚洲| 欧美久久一二区| 日本不卡高清视频| 日韩欧美美女一区二区三区| 一区二区三区四区不卡视频| 欧美日韩不卡一区| 男人的天堂久久精品| 精品国产乱码久久久久久牛牛| 91丨九色丨蝌蚪丨老版| 亚洲妇女屁股眼交7| 欧美喷潮久久久xxxxx| 亚洲一区二区3| 欧美一级二级三级蜜桃| 国产中文字幕精品| 亚洲人被黑人高潮完整版| 在线观看成人免费视频| 精品一区免费av| 国产亚洲欧洲一区高清在线观看| 99热精品一区二区| 调教+趴+乳夹+国产+精品| 精品国产一区二区三区久久久蜜月| 成人永久免费视频| 亚洲免费资源在线播放| 精品久久免费看| 成人白浆超碰人人人人| 天天综合色天天| 久久免费偷拍视频| 国产成人精品亚洲777人妖| 亚洲国产你懂的| 欧美成人a在线| 欧美影院一区二区三区| 久久国内精品自在自线400部| 亚洲特黄一级片| 日韩一区二区三区免费看| 国产99一区视频免费| 亚洲综合色成人| 久久综合资源网| 欧美日韩免费电影| 国产电影一区二区三区| 日韩精品电影一区亚洲| 久久久久久久久久久久久夜| 欧美视频中文一区二区三区在线观看| 免费av网站大全久久| 国产精品水嫩水嫩| 欧美一级淫片007| aaa国产一区| 国产制服丝袜一区| 亚洲永久精品国产| 国产精品三级在线观看| 91精品国产入口| 国产成人精品www牛牛影视| 天堂成人国产精品一区| 国产精品久久久久久久久免费丝袜 | 欧美日韩一卡二卡三卡| 国产成人精品一区二区三区四区| 亚洲精品午夜久久久| xnxx国产精品| 3atv一区二区三区| 在线观看不卡视频| 成人一区在线观看| 国产乱码精品1区2区3区| 午夜免费欧美电影| 亚洲综合色视频| 成人欧美一区二区三区| 国产片一区二区| 久久综合国产精品| 97精品久久久久中文字幕| 懂色av一区二区三区蜜臀| 奇米四色…亚洲| 婷婷六月综合亚洲| 亚洲精品免费播放| 一区二区高清免费观看影视大全| 国产亚洲自拍一区| 亚洲国产精品精华液ab| www久久久久| 在线播放一区二区三区|