linear_trend_degree(inputdata)
(-0.8665321784088783, 5.094899437816308e-08)temp_trend_desc(-0.8665321784088783)
(-40.90998251556271, ‘呈现下降趋势’)fixed_base_ratio(inputdata)
-38.617856820438746clf_result = stats.linregress(list(range(1,len(inputdata)+1)),inputdata)
clf_result[2]
-0.893158091932219
结论:只描述整体(大幅下降)
inputdata=[651.3, 768.32, 693.52, 761.85, 745.87, 811.38, 703.73, 654.48, 671.16, 667.6, 748.4, 713.49, 707.3, 719.18, 671.84, 703.41, 721.82, 683.08, 851.32, 550.56, 678.94]
linear_trend_degree(inputdata)
(-0.12711261341398308, 0.40976523292346345)temp_trend_desc(-0.12711261341398308)
(-7.24416681587112, ‘呈现下降趋势’)fixed_base_ratio(inputdata)
0.16113461483858016Kendall_change_point_result = Kendall_change_point_detection(inputdata)
Kendall_change_point_result
[]
结论:整体线性回归没通过检验,下降角度较小(-7.24),定基比较小,Mann-Kendall未检测出突变点,“小幅波动”
inputdata=[1127.26, 1368.46, 1306.73, 1233.76, 1294.62, 1643.8, 1774.81, 1320.49, 1358.79, 1399.51, 1225.51, 1212.74, 1551.3, 1535.87, 1426.31, 1538.66, 1317.62, 1510.48, 1490.62, 1492.06, 1081.55]
linear_trend_degree(inputdata)
(0.11712589980483688, 0.5268499847342965)temp_trend_desc(0.11712589980483688)
(6.680382464798988, ‘呈现上升趋势’)fixed_base_ratio(inputdata)
11.473655143394387Kendall_change_point_result = Kendall_change_point_detection(inputdata)
Pettitt_change_point_result = Pettitt_change_point_detection(inputdata)
Buishand_U_change_point_result = Buishand_U_change_point_detection(inputdata)
SNHT_change_point_result = SNHT_change_point_detection(inputdata)
temp_result = Kendall_change_point_result + [Pettitt_change_po