楼主: fabregasmu
7817 8

[讨论交流] Excel 相关系数矩阵的填充 [推广有奖]

  • 4关注
  • 0粉丝

已卖:346份资源

硕士生

19%

还不是VIP/贵宾

-

威望
0
论坛币
1821 个
通用积分
0.8578
学术水平
2 点
热心指数
6 点
信用等级
0 点
经验
2306 点
帖子
94
精华
0
在线时间
128 小时
注册时间
2012-9-27
最后登录
2019-2-6

楼主
fabregasmu 学生认证  发表于 2014-10-26 15:40:13 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
21.JPG
已经求出了相关系数矩阵a4:d7;但如果要应用相关系数矩阵做进一步的分析,需要填充完相关系数矩阵,别且要保证c5=b6,d5=b4;上面只是一个例子,真是的是一个30*30的相关系数矩阵,怎么填充呢??
二维码

扫码加我 拉你入群

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

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

关键词:相关系数矩阵 EXCEL 相关系数 xcel exce Excel

回帖推荐

Chemist_MZ 发表于6楼  查看完整内容

well in that case you can write an VBA macro (if you know how to write), it is really easy to learn in several minites.or you can load the matrix in excel to matlab (xlsread function) and use matlab code to fill it, then copy paste back into excel

本帖被以下文库推荐

沙发
阿史那民 发表于 2014-10-26 16:11:05
好资源,顶一下

藤椅
Chemist_MZ 在职认证  发表于 2014-10-26 22:29:01
you want to create a correlation matrix or you want to calculate the correlation matrix from data?

板凳
fabregasmu 学生认证  发表于 2014-10-27 10:57:20
Chemist_MZ 发表于 2014-10-26 22:29
you want to create a correlation matrix or you want to calculate the correlation matrix from data?
先生成30*30的协方差矩阵,然后再用MMULT(MMULT(,),)函数计算30个股票组成的证券组合的标准差,所以必须要把30*30的协方差矩阵填满,而不是Excel自动生成的一半协方差矩阵,另一半为空白。

报纸
fabregasmu 学生认证  发表于 2014-10-27 10:59:13
Chemist_MZ 发表于 2014-10-26 22:29
you want to create a correlation matrix or you want to calculate the correlation matrix from data?
还涉及到用Excel的规划求解功能计算30个证券组合的权重,也要求协方差矩阵是填满的,如果一半是空白没法计算的,谢大神关注!·

地板
Chemist_MZ 在职认证  发表于 2014-10-27 11:29:30
fabregasmu 发表于 2014-10-27 10:59
还涉及到用Excel的规划求解功能计算30个证券组合的权重,也要求协方差矩阵是填满的,如果一半是空白没法计 ...
well in that case you can write an VBA macro (if you know how to write), it is really easy to learn in several minites.or you can load the matrix in excel to matlab (xlsread function) and use matlab code to fill it, then copy paste back into excel
已有 1 人评分经验 论坛币 收起 理由
见路不走 + 5 + 5 精彩帖子

总评分: 经验 + 5  论坛币 + 5   查看全部评分

7
fabregasmu 学生认证  发表于 2014-10-27 11:34:41
Chemist_MZ 发表于 2014-10-27 11:29
well in that case you can write an VBA macro (if you know how to write), it is really easy to lear ...
Roger that, thanks so  much!

8
fabregasmu 学生认证  发表于 2014-10-29 17:26:29
Chemist_MZ 发表于 2014-10-27 11:29
well in that case you can write an VBA macro (if you know how to write), it is really easy to lear ...
大神,matlab与excel之间的数据可以实现动态调整吗?比如说计算30个股票收益率的协方差矩阵,现在用excel加载宏用matlab计算,然后在写回到excel中,但是如果我改变excel中的某个股票收益率的数据,那协方差矩阵能实现动态自动调整吗?

9
Chemist_MZ 在职认证  发表于 2014-10-29 19:42:15
fabregasmu 发表于 2014-10-29 17:26
大神,matlab与excel之间的数据可以实现动态调整吗?比如说计算30个股票收益率的协方差矩阵,现在用excel ...
没试过,应该不会自动,你得手动重新run

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

本版微信群
加好友,备注jr
拉您进交流群
GMT+8, 2025-12-21 19:32