楼主: 海鸥LXM
5763 5

[新手尝试] 紧急!求助!用matlab建立三维copula模型,正用极大似然估计方法求copula函数参数 [推广有奖]

  • 0关注
  • 2粉丝

等待验证会员

小学生

71%

还不是VIP/贵宾

-

威望
0
论坛币
1 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
50 点
帖子
1
精华
0
在线时间
16 小时
注册时间
2014-8-12
最后登录
2020-11-21

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
紧急!求助!我正在利用matlab建立三维copula函数模型,正利用极大似然估计方法估计copula函数中的参数,但是卡在这里了。这个似然函数非常的长
下面是我的程序:function siranhanshu=myfun(theta,U,V,W,Xpdf,Ypdf,Zpdf)h=(theta^2*(1/theta + 1)*(1/theta + 2))/(U(:).^(theta + 1)*V(:).^(theta +1)*W(:).^(theta + 1)*(1/U(:).^theta + 1/V(:).^theta + 1/W(:).^theta - 2)^(1/theta +3))*Xpdf*Ypdf*Zpdf;
k=prod(h);
siranhanshu=0-log(k);

然后我再命令窗口键入
%在命令窗口输入
[theta,fval]=fminsearch(@(theta) myfun(theta,U,V,W,Xpdf,Ypdf,Zpdf),5.000000001)


其中U,V,W,Xpdf,Ypdf,Zpdf是程序中也求出来的一列多行的矩阵


运行以后报错
Error using  ^
Inputs must be a scalar and a square matrix.
To compute elementwise POWER, use POWER (.^) instead.

Error in myfun (line 3)
h=(theta^2*(1/theta + 1)*(1/theta + 2))/(U^(theta + 1)*V^(theta
+1)*W^(theta + 1)*(1/U^theta + 1/V^theta + 1/W^theta - 2)^(1/theta
+3))*Xpdf*Ypdf*Zpdf;

Error in @(theta)myfun(theta,U,V,W,Xpdf,Ypdf,Zpdf)


Error in fminsearch (line 191)
fv(:,1) = funfcn(x,varargin{:});

Error in P_ET0_IR (line 131)
[theta,fval]=fminsearch(@(theta)
myfun(theta,U,V,W,Xpdf,Ypdf,Zpdf),5.000000001)

而且警告Warning: The value of local variables may have been changed to match the
         globals.  Future versions of MATLAB will require that you declare
         a variable to be global before you use that variable.
> In myfun at 2
  In @(theta)myfun(theta,U,V,W,Xpdf,Ypdf,Zpdf)
  In fminsearch at 191
  In P_ET0_IR at 131



新手上路,能否给予指点!谢谢!



二维码

扫码加我 拉你入群

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

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

关键词:Copula 极大似然估计 MATLAB opula atlab function matlab Error 模型 程序

已有 1 人评分论坛币 收起 理由
zsy651012 + 20 补偿

总评分: 论坛币 + 20   查看全部评分

沙发
zsy651012 发表于 2015-5-6 12:50:47 |只看作者 |坛友微信交流群

使用道具

藤椅
zsy651012 发表于 2015-5-6 12:51:37 |只看作者 |坛友微信交流群


到论坛第一区 您发快速提问  看看  讨论

使用道具

板凳
半路学子 发表于 2016-5-23 17:46:56 |只看作者 |坛友微信交流群
你能求出三元的就已经很不容易了!

使用道具

报纸
糖果果豆 学生认证  发表于 2020-1-8 15:26:53 |只看作者 |坛友微信交流群
楼主的问题解决了吗?

使用道具

地板
18650347648 学生认证  发表于 2020-1-8 21:34:05 来自手机 |只看作者 |坛友微信交流群
关于copula的问题可以加我qq535844430,欢迎交流。

使用道具

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

本版微信群
加JingGuanBbs
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-27 13:20