线性回归中oracle性质,66.Oracle数据库SQL开发之 高级查询——使用线性回归函数...
66.Oracle數(shù)據(jù)庫(kù)SQL開(kāi)發(fā)之 高級(jí)查詢——使用線性回歸函數(shù)
線性回歸函數(shù)可以用普通最小平方回歸曲線擬合一組數(shù)值對(duì)。線性回歸函數(shù)可用于聚合、串口或報(bào)表函數(shù)。
如下圖1:
例如:
store@PDB1> selectprd_type_id,regr_avgx(amount,month) as avgx,
regr_avgy(amount,month) as avgy,
regr_count(amount,month) as count,
regr_intercept(amount,month) as inter,
regr_r2(amount,month) as r2,
regr_slope(amount,month) as slope,
regr_sxx(amount,month) as sxx,
regr_sxy(amount,month) as sxy,
regr_syy(amount,month) as syy
fromall_sales
whereyear=2003 group by prd_type_id;
PRD_TYPE_ID? ? AVGX??? ???? AVGY?????COUNT????? ? INTER ???????? R2??? SLOPE?????? ???? SXX????????? SXY
----------- ---------- -------------------- ---------- ---------- ---------- ---------- ----------
SYY
----------
1? ?? 6.5 12570.5811 ? 72 13318.4543 .003746289-115.05741????? ???? 858?-98719.26
3031902717
2? ?? 6.5 2588.62806 ? 72 2608.11268?? .0000508?-2.997634?? ???? 858??-2571.97
151767392
5????????????????????????????? ?? 0
4? ?? 6.5 5593.76611 ? 72 2043.47164 .128930297546.199149???? ???? 858?468638.87
1985337488
3? ?? 6.5 6642.65153 ? 72 2154.23119 .126338815690.526206???? ???? 858 592471.485
3238253324
總結(jié)
以上是生活随笔為你收集整理的线性回归中oracle性质,66.Oracle数据库SQL开发之 高级查询——使用线性回归函数...的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: cmd在执行hadoop version
- 下一篇: mysql5.7安装教程centos_M