⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rejectoutlier.m

📁 经济学专业代码
💻 M
字号:
function Rejected=RejectOutlier(Sample,Index);
% this function finds the "worst" outlier in a time series. 
% See Sec. 4.6.1 of "Risk and Asset Allocation" - Springer (2005), by A. Meucci
% for the theory and the routine implemented below

T=size(Sample,1);
m=mean(Sample)';
U=Sample-ones(T,1)*m';
Lambda=diag(U*inv(U'*U)*U');
[a,Rejected]=max(Lambda);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -