2016-09-21 83 views
2

在楓樹中,平滑數據集的最佳方式(類似於圖中所示)可以在不影響總體統計特性的情況下獲得規則(平滑)曲線?我使用華普16如何平滑楓木中的數據?

xdata has 120 bins from 0.05 to 6.00

回答

1

我會建議在看看在Statisticsdata smoothing命令。類似於exponential smoothing model的東西可以應用於您的數據以平滑趨勢線。

如果你有最近的楓葉的副本,你可以用這個使用類似如下的實驗:

with(Statistics): 
Z := Sample(Normal(0, 1), 50): #Generate some data 
Y := CumulativeSum(Z): 
ESmodel := Constant -> ExponentialSmoothing(Y, 0.1*Constant): 

Explore命令創建一個界面,你可以嘗試不同的值的平滑常數:

Explore(plots[display](LineChart(Y, color=blue), 
         LineChart(ESmodel(Constant), thickness=3, color=red), 
      gridlines=true), 
parameters=[Constant=1..10]); 

Explore_Smoothing_Example