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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? garchinfer.m

?? 灰色控制 灰色控制 matlab
?? M
字號:
function [innovations , sigma , LLF] = garchinfer(spec , y , X)
%GARCHINFER Infer GARCH innovations process from an observed return series.
%   Given a conditional mean specification of ARMAX form and conditional
%   variance specification of GARCH form, infer the innovations and conditional
%   standard deviations from an observed univariate return series. Since 
%   GARCHINFER is a wrapper around the appropriate log-likelihood objective 
%   function, the log-likelihood value is also computed for convenience.
%
%   [Innovations , Sigma , LogLikelihood] = garchinfer(Spec , Series)
%   [Innovations , Sigma , LogLikelihood] = garchinfer(Spec , Series, X)
%
%   Optional Input: X
%
% Inputs:
%   Spec - Structure specification for the conditional mean and variance 
%     models. Spec is a MATLAB structure with fields generated by calling the 
%     function GARCHSET. Type "help garchset" for details.
%
%   Series - Matrix of observations of the underlying univariate return series 
%     of interest. Series is the response variable representing the time 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.
%
% Optional Input:
%   X - Time series regression matrix of explanatory variable(s). Typically, X 
%     is a regression matrix of asset returns (e.g., the return series of an 
%     equity index). Each column of X is an individual time series used as an 
%     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.
%
% Outputs:
%   Innovations - Innovations matrix inferred from the input Series matrix. The
%     size of Innovations is the same as the size of Series.
%
%   Sigma - Conditional standard deviation matrix corresponding to Innovations.
%     The size of Sigma is the same as the size of Series.
%
%   LogLikelihood - Vector of log-likelihood objective function values for each 
%     realization of Series. The length of LogLikelihood is the same as the 
%     number of columns in Series.
%
% See also GARCHSET, GARCHSIM, GARCHPRED, GARCHFIT, GARCHLLFN.

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

%
% 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

%
% 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). During estimation, the innovations
% process e(t) must be inferred from the conditional mean specification, which 
% may include a regression component if desired. In contrast to simulation, 
% estimation of the innovations process e(t) is NOT independent of X. 
%

if (nargin >= 3) & ~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

%
% Ensure all coefficients exist and have proper dimensions.
%

R       =  garchget(spec , 'R');       % Conditional mean AR order.
M       =  garchget(spec , 'M');       % Conditional mean MA order.
P       =  garchget(spec , 'P');       % Conditional variance order for lagged variances.
Q       =  garchget(spec , 'Q');       % Conditional variance order for lagged squared residuals.

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

K       =  garchget(spec , 'K');       % Conditional variance constant.
GARCH   =  garchget(spec , 'GARCH');   % Conditional variance coefficients for lagged variances.
ARCH    =  garchget(spec , 'ARCH');    % Conditional variance coefficients for lagged squared residuals.

if isempty(C)
   error(' Conditional mean constant ''C'' must be specified.');
end
if isempty(AR) & (R ~= 0)
   error(' Auto-regressive ''AR'' coefficients must be specified.');
end
if isempty(MA) & (M ~= 0)
   error(' Moving-average ''MA'' coefficients must be specified.');
end
if isempty(K)
   error(' Conditional variance constant ''K'' must be specified.');
end
if isempty(GARCH) & (P ~= 0)
   error(' ''GARCH'' coefficients of lagged variances must be specified.');
end
if isempty(ARCH)  & (Q ~= 0)
   error(' ''ARCH'' coefficients of lagged squared residuals must be specified.');
end

%
% Format the parameter estimation vector.
%
% NOTES:
% Let y(t) = return series of interest (assumed stationary)
%     e(t) = innovations of the model noise process (assumed invertible)
%     h(t) = conditional variance of the innovations process e(t)
%
% The input coefficient vector 'Parameters' is formatted exactly as the 
% coefficients would be read from the recursive difference equations when 
% solving for the current values of the y(t) and h(t) time series. 
%
% For example, consider the following equations for the conditional mean 
% and variance of an ARMAX(R=2,M=2,nX=1)/GARCH(P=2,Q=2) composite model:
%
%   y(t) =  1.3 + 0.5y(t-1) - 0.8y(t-2) + e(t) - 0.6e(t-1) + 0.08e(t-2) + 1.2X(t)
%   h(t) =  0.5 + 0.2h(t-1) + 0.1h(t-2) + 0.3e(t-1)^2  +  0.4e(t-2)^2
%
% The above equations are examples of the following general 
% ARMAX(R,M,nX)/GARCH(P,Q) form:
%
%   y(t) =  C + AR(1)y(t-1) + ... + AR(R)y(t-R) + e(t) 
%             + MA(1)e(t-1) + ... + MA(M)e(t-M) + B(1)X(t,1) + ... + B(nX)X(t,nX)
%
%   h(t) =  K + GARCH(1)h(t-1)   + ... + GARCH(P)h(t-P) 
%             +  ARCH(1)e(t-1)^2 + ... +  ARCH(Q)e(t-Q)^2
%
% For the example listed above, the coefficient vector 'Parameters' would be
%
%   Parameters = [ C     AR(1:R)     MA(1:M)  B(1:nX)  K   GARCH(1:P)   ARCH(1:Q)]'
%              = [1.3   0.5 -0.8   -0.6 0.08    1.2   0.5    0.2 0.1     0.3 0.4 ]'
%
% Notice that the coefficient of e(t) in the conditional mean equation is
% defined to be 1, and is NOT included in 'Parameters' vector because it
% is not estimated.
%

Parameters = [ C ; AR(:) ; MA(:) ; regress(:) ; K ; GARCH(:) ; ARCH(:)];

%
% Get the probability distribution of the innovations process e(t) 
% and call the appropriate log-likelihood objective function.
%

distribution  =  garchget(spec , 'Distribution');
distribution  =  distribution(~isspace(distribution));

switch upper(distribution)
   case 'GAUSSIAN'
      [LLF,G,H,innovations,sigma] = garchllfn(Parameters , y , R , M , P , Q , X);
   otherwise
      error(' Distribution of innovations must be ''Gaussian''.')
end

%
% Negate objective function value to compensate for the minimization function FMINCON.
%

LLF  =  -LLF;

%
% Re-format outputs for compatibility with the SERIES input. When 
% SERIES is input as a single row vector, then pass the outputs 
% as a row vectors. 
%

if rowY
   innovations  =  innovations(:).';
   sigma        =  sigma(:).';
end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲欧美在线| 欧美日韩精品系列| 日本亚洲电影天堂| 最新日韩在线视频| 26uuu亚洲| 欧美久久婷婷综合色| av一本久道久久综合久久鬼色| 蜜臀av性久久久久蜜臀av麻豆 | 精品久久久久久久久久久久久久久| k8久久久一区二区三区| 久久成人18免费观看| 亚洲电影第三页| 最新国产成人在线观看| 久久久亚洲精品一区二区三区| 欧美老肥妇做.爰bbww视频| 北条麻妃国产九九精品视频| 国内不卡的二区三区中文字幕| 亚洲第一av色| 亚洲欧美激情一区二区| 中文字幕在线不卡一区| 久久婷婷久久一区二区三区| 91精品国产综合久久精品| 91论坛在线播放| 91香蕉国产在线观看软件| 国产成人综合亚洲网站| 激情深爱一区二区| 日产精品久久久久久久性色| 亚洲国产aⅴ天堂久久| 亚洲欧美另类久久久精品2019| 国产精品视频免费| 欧美高清在线一区| 国产亚洲一区二区三区| 久久蜜桃av一区二区天堂| 欧美成人精品3d动漫h| 91精品国产综合久久香蕉的特点| 欧美日韩国产首页在线观看| 欧美亚洲精品一区| 欧美在线一二三四区| 日本高清不卡在线观看| 欧美专区在线观看一区| 色欧美片视频在线观看| 在线免费观看成人短视频| 在线日韩一区二区| 欧美日韩国产一二三| 91精品国产丝袜白色高跟鞋| 制服丝袜中文字幕一区| 日韩三区在线观看| 久久夜色精品国产欧美乱极品| 久久亚洲精华国产精华液| 久久久国产精品午夜一区ai换脸| 久久综合av免费| 中文字幕av一区二区三区| 亚洲欧洲色图综合| 一区二区在线观看av| 亚洲成va人在线观看| 日本欧美大码aⅴ在线播放| 蜜桃精品视频在线观看| 国产电影精品久久禁18| 99精品久久99久久久久| 欧美探花视频资源| 日韩免费观看2025年上映的电影| 精品久久久影院| 久久精品视频免费观看| 亚洲天堂久久久久久久| 午夜激情久久久| 国产一区二区美女诱惑| 99riav久久精品riav| 欧美在线视频你懂得| 精品国产乱子伦一区| 国产精品色哟哟网站| 亚洲午夜在线电影| 加勒比av一区二区| 99re这里只有精品首页| 91精品国产综合久久久久| 国产日韩欧美精品在线| 一区二区三区电影在线播| 欧美aaa在线| 不卡欧美aaaaa| 欧美丝袜丝nylons| 久久久久久久综合日本| 亚洲乱码一区二区三区在线观看| 丝袜亚洲精品中文字幕一区| 国产剧情一区在线| 欧美无砖专区一中文字| 精品人在线二区三区| 亚洲少妇屁股交4| 日韩影院在线观看| 成人av手机在线观看| 91精品欧美福利在线观看| 国产精品久久久久久亚洲毛片| 午夜天堂影视香蕉久久| 国产成人免费在线视频| 欧美欧美午夜aⅴ在线观看| 国产视频一区不卡| 美女视频黄a大片欧美| a美女胸又www黄视频久久| 日韩欧美一区中文| 亚洲曰韩产成在线| 成人免费视频网站在线观看| 日韩一区二区电影| 一区二区三区小说| 国产精品系列在线播放| 欧美精品 国产精品| 亚洲视频一二三区| 国产精品一区二区免费不卡| 555www色欧美视频| 亚洲精品国产无天堂网2021| 国产激情偷乱视频一区二区三区| 91精品国产色综合久久久蜜香臀| 亚洲精品菠萝久久久久久久| 国产成人自拍高清视频在线免费播放| 91精品免费在线| 性做久久久久久免费观看| 一本久久精品一区二区| 国产精品久久久久天堂| 国产盗摄精品一区二区三区在线 | 欧美日韩一区二区三区免费看| 日本一二三四高清不卡| 久久99精品国产麻豆婷婷| 欧美嫩在线观看| 亚洲主播在线播放| 91丨porny丨国产入口| 国产欧美一二三区| 国产欧美日韩久久| 国产在线一区观看| 精品国产一区二区三区四区四 | 91精品午夜视频| 亚洲一级在线观看| 91福利视频久久久久| 亚洲日本免费电影| 91麻豆高清视频| 亚洲精品中文字幕在线观看| 91无套直看片红桃| 亚洲精品你懂的| 欧美怡红院视频| 天堂蜜桃91精品| 欧美一区二区三区日韩视频| 毛片av一区二区| 亚洲精品一线二线三线无人区| 久久成人久久爱| 国产片一区二区| 成人动漫精品一区二区| 亚洲色图制服丝袜| 欧美优质美女网站| 性欧美疯狂xxxxbbbb| 欧美日韩一区精品| 蜜芽一区二区三区| 精品国免费一区二区三区| 国产一区在线不卡| 中文av字幕一区| 95精品视频在线| 一区二区三区久久| 91麻豆精品国产91久久久久| 奇米影视7777精品一区二区| 日韩欧美的一区| 国产精品亚洲专一区二区三区| 国产精品系列在线| 欧美在线色视频| 日日摸夜夜添夜夜添精品视频| 欧美xxxxxxxx| 国产iv一区二区三区| 樱桃视频在线观看一区| 91精品国产综合久久精品麻豆| 国产在线播放一区| 亚洲欧美日韩人成在线播放| 欧美日韩国产不卡| 久久91精品国产91久久小草 | 日本一区二区成人| 欧美在线观看18| 国产一区二区美女| 亚洲黄色免费网站| 欧美r级电影在线观看| 北条麻妃国产九九精品视频| 视频一区二区中文字幕| 国产欧美一区二区在线| 欧美精品在线一区二区| 国产91丝袜在线18| 亚洲电影视频在线| 日本一区二区成人在线| 欧美精品在线观看一区二区| 国产成人a级片| 午夜精品久久久久久久| 日本一区二区综合亚洲| 欧美肥大bbwbbw高潮| 成人伦理片在线| 美女一区二区在线观看| 亚洲欧美日韩一区二区三区在线观看| 欧美一级淫片007| 一本色道久久综合精品竹菊| 国精产品一区一区三区mba桃花| 亚洲免费视频中文字幕| 精品国产乱码久久久久久久| 日本韩国欧美国产| 国产精品18久久久久久久久久久久| 伊人色综合久久天天人手人婷| 国产无一区二区| 日韩欧美中文字幕一区| 欧美日韩亚洲高清一区二区| 波多野结衣视频一区| 国产老肥熟一区二区三区|