2013年12月26日 星期四

統計函數之R-squared

l   R-squared 是相關係數 r 的平方。所以-1 r1,而0 R-squared 1
l  R-squared 也稱為coefficient of determination, 或者是被解釋的變異量。


說明:
計算兩資料序列的R-Square


語法:
RSquare(Indep, Dep, Length)
輸入:
Indep〈數值〉:自變數的序列
Dep
〈數值〉:應變數的序列
Length
〈數值〉:區間長度

計算最近30期,收盤價與前期收盤價的判定係數
value1 = RSquare(Close[1], Close, 30); 

沒有留言:

張貼留言