738 0

[资产定价] 超出某一限定值的相关性,验证是否存在非对称效应 [推广有奖]

  • 6关注
  • 18粉丝

已卖:2995份资源

副教授

49%

还不是VIP/贵宾

-

威望
1
论坛币
86956 个
通用积分
132.5670
学术水平
6 点
热心指数
10 点
信用等级
6 点
经验
15315 点
帖子
126
精华
0
在线时间
1110 小时
注册时间
2018-1-18
最后登录
2026-1-10

楼主
贝叶斯洛必达 发表于 2021-8-3 21:22:15 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
qc2 = qc;
    for jj=1:length(qc);
        temp1 = find( (X<=quantile(X,1-qc(jj))).*(Y<=quantile(Y,1-qc(jj))) );
        temp2 = find( (X>=quantile(X,qc(jj))).*(Y>=quantile(Y,qc(jj))) );
        if ((length(temp1)<3)+(length(temp2)<3))>0  % then not enough data to compute a correlation in at least one tail
            qc2 = setdiff(qc2,qc(jj));
        end
    end

    % now I am sure that each cut-off has enough data
    qc2 = sortrows(unique([qc2;1-qc2]));   % sorting and making sure that 0 does not appear twice   
    if isempty(find(qc==0.5))==0    % then q=0.5 is a cut-off
        qc1 = [qc2(1:(end+1)/2);qc2((end+1)/2:end)];
    else
        qc1 = qc2;
    end
    q = qc1(end/2+1:end);

    k = length(q);
    xi = nines(T,k);    % variable used in constructing test statistic
    rhodiff = nines(k,1);
    for jj = 1:k;
        temp1 = find( (X<=quantile(X,1-qc(jj))).*(Y<=quantile(Y,1-qc(jj))) );
        temp2 = find( (X>=quantile(X,qc(jj))).*(Y>=quantile(Y,qc(jj))) );
        out1(jj,1) = corrcoef12(X(temp1),Y(temp1));
        out1(end+1-jj,1) = corrcoef12(X(temp2),Y(temp2));
        rhodiff(jj) = corrcoef12(X(temp2),Y(temp2)) - corrcoef12(X(temp1),Y(temp1));      % computing the test stat

        x1plus = (X-mean(X(temp2)))./std(X(temp2));
        x2plus = (Y-mean(Y(temp2)))./std(Y(temp2));
        x1minus = (X-mean(X(temp1)))./std(X(temp1));
        x2minus = (Y-mean(Y(temp1)))./std(Y(temp1));

        xi(:,jj) = T/size(temp2,1)*(x1plus.*x2plus - corrcoef12(X(temp2),Y(temp2))).*( (X>=quantile(X,qc(jj))).*(Y>=quantile(Y,qc(jj))) ) - ...
            T/size(temp1,1)*(x1minus.*x2minus - corrcoef12(X(temp1),Y(temp1))).*( (X<=quantile(X,1-qc(jj))).*(Y<=quantile(Y,1-qc(jj))) );
    end
    omegahat = newey_west(xi);      % computing the covariance matrix
    teststat = T*rhodiff'*inv(omegahat)*rhodiff;
    pval = 1-chi2cdf(teststat,k);

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:相关性 quantile corrcoef length quant

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jr
拉您进交流群
GMT+8, 2026-1-13 10:32