IntersectionAlphaBetaValue
简述
α,β,参差。与系统股票pn_stock()、当前时间pn_date(),相关。
IntersectionAlphaBetaValue(t1:Array;t2:Array;Alpha:Real;Beta:Real;Residual:Real;Corr:Real):Array;
| 名称 | 类型 | 说明 |
|---|
| t1 | Array | 数据表类型; |
| t2 | Array | 数据表类型; |
| Alpha | Real | 实数类型; |
| Beta | Real | 实数类型; |
| Residual | Real | 实数类型; |
| Corr | Real | 实数类型,相关系数 |
| 返回 | Array | 数组 |
对序列t1和t2进行一元回归,返回α,β,相关系数,残差
//t1和t2序列的相关指标
t1 := spec(nday(30,'涨幅',StockZf3()),'SZ000002');
t2 := spec(nday(30,'涨幅',StockZf3()),'SH600001');
IntersectionAlphaBetaValue(t1,t2,a,b,c,d);
return array(a,b,c,c);