请选择 进入手机版 | 继续访问电脑版
楼主: hisicon
1137 2

[CFA] Exam 8 Table M [推广有奖]

  • 3关注
  • 43粉丝

The Last Beethovenian

教授

14%

还不是VIP/贵宾

-

威望
0
论坛币
9842 个
通用积分
3.3073
学术水平
14 点
热心指数
14 点
信用等级
10 点
经验
16241 点
帖子
936
精华
1
在线时间
1068 小时
注册时间
2008-11-3
最后登录
2022-4-17

hisicon 发表于 2015-7-3 20:11:42 |显示全部楼层 |坛友微信交流群

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
So this morning I was studying retrospective pricing, and wrote some code to caculate insurance charge/savings in Table M.
Enjoy.

  1. claims = {1000, 1500, 4000, 10000, 15000, 40000};
  2. counts = {8, 3, 2, 5, 2, 1};
  3. lr = {0.2,
  4.   0.8};(*loss ratio at min/max*)
  5. sp = 10000;(*standard premium*)

  6. If[Length[claim] != Length[counts],
  7.   Print["Input claims/counts incorrect!"]];
  8. expA = (claims.counts)/Total[counts]*1.;

  9. AH = Part[lr, 1]*sp;
  10. AG = Part[lr, 2]*sp;
  11. t1 = Table[
  12.    Max[0, (Part[claims, i] - AG)*Part[counts, i]/Total[counts]], {i,
  13.     1, Length[claims]}];
  14. t2 = Table[
  15.    Max[0, (AH - Part[claims, i])*Part[counts, i]/Total[counts]], {i,
  16.     1, Length[claims]}];

  17. \[Phi] = Total[t1]/expA;(*ins charge*)
  18. \[Psi] =
  19.   Total[t2]/expA;(*ins savings*)
  20. nic = Total[t1] - Total[t2];
  21. Print[{\[Phi], \[Psi], nic}]

  22. {0.398577,0.0676157,2214.29}
复制代码


二维码

扫码加我 拉你入群

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

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

关键词:Table ABLE Exam ABL tab insurance standard studying morning savings

"We can easily forgive a child who is afraid of the dark; the real tragedy of life is when men are
hisicon 发表于 2015-7-3 20:12:45 |显示全部楼层 |坛友微信交流群
forgot to mention it is Mathematica, but you can pretty easily convert to any language you like - and it is TIA example on page 131. (section B.1.)

使用道具

guziran 发表于 2015-8-14 08:06:28 |显示全部楼层 |坛友微信交流群
你这是没中文输入法么单位电脑

使用道具

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

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

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

GMT+8, 2024-3-30 16:37