楼主: BraveMadMan
1504 1

[原创博文] 啥叫standard errors of the (log) differences series [推广有奖]

  • 1关注
  • 6粉丝

已卖:97份资源

讲师

16%

还不是VIP/贵宾

-

威望
0
论坛币
966 个
通用积分
6.3763
学术水平
26 点
热心指数
42 点
信用等级
10 点
经验
7812 点
帖子
300
精华
0
在线时间
552 小时
注册时间
2005-8-11
最后登录
2021-5-20

楼主
BraveMadMan 发表于 2011-1-24 12:35:36 |AI写论文
10论坛币
正在读一片文章,它描述如何查找时间序列数据中的极端值。说:

extreme values are defined as those whose (log) change compared with both adjacent months is greater than 3.5 standard errors of the (log) differenced series.

比如,我现有一年的股市日指数数据,如果根据他的描述寻找极端值?多谢。

关键词:differences difference Standard Series erence standard errors change months values

沙发
BraveMadMan 发表于 2011-1-24 13:32:24
这是我目前的做法:
  1. proc sort data = have out=A1; run;
  2. proc expand data=A1 out=A1 method = none;
  3.   id date;
  4.   convert P = P_lag1   / transformout=(lag 1);
  5.   convert P;
  6.   convert P = P_lead1  / transformout=(lead 1);
  7. run;
  8. data A1; set A1;
  9.   ret      = log(P) - log(P_lag1);
  10.   ret_lead = log(P) - log(P_lead1);
  11. run;

  12. * Calculate standard error, which is used to refer to an estimate of that standard deviation,
  13.   derived from a particular sample used to compute the estimate;
  14. proc means data=A1 noprint;
  15.   var ret;
  16.   output out=std std=std;
  17. run;
  18. data A2  (drop= _type_ _freq_); merge A1 std;
  19.   if abs(ret)> std and abs(ret_lead) > std then do; p_sm = (p_lag1+p_lead1)/2; extreme =1; end;
  20.   else do; p_sm=p; extreme=.; end;
复制代码
Don't get lost in technical details. What is the big picture?

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-25 08:44