Tag: 移动平均

滑动平均或滑动平均

我需要计算实验数据的滑动或滑动平均值。 你能指导我如何做滑动平均? 我无法find它的参考。 我只find关于移动平均线的一些信息。 移动平均线是否与滑动平均线相同? 感谢Karunaras

平均如果移动平均

我试图find一个五年的移动平均线,该线需要一个月的条件。 A列包含从2010年1月1日至今日的所有date的每日date。 B列包含每日数量。 基本上我想在一个滚动的5年期间平均1月的所有日子。 我可以很容易地做到这一点静态数字,但这张表将每天更新。 例如: Date Quantity 1/1/2010 14,113 1/2/2010 15,364 等等… 我写了这个公式: =AVERAGEIFS(OFFSET(B2,COUNT(B2:B10000)-1826,0,1826,1),A2:A10000,MONTH(A2:A10000)=1) 这返回#VALUE!

请参阅同一行中的索引值

对于大量的数字,我想找出一个移动平均线。 我想例如在T(750)中K2:K(index)的平均值。 这个特定的索引可以在B行的同一行中find,所以在B750单元格中。 我怎样才能做到这一点? 任何帮助深表感谢

如何在Python中使用pandas应用一个复杂的公式?

我需要在交通数据集(NGSim)上应用专门devise的移动平均滤波器。 这个过程在Excel中非常繁琐,不仅因为数据集非常大,而且还因为公式必须查看列来获取某些值并进行总结。 我想知道是否有任何这样的例子,或pandas,Python中使用的任何其他复杂的公式。 请提供任何示例资源。

如何在MS Excel中testing从pandaspython获得的EMA Crossover

指数移动平均值在此链接中解释: http : //www.investopedia.com/terms/e/ema.asp 我已经使用了下面的代码: import pandas_datareader.data as web from datetime import datetime # aapl_df = web.get_data_yahoo('AAPL', datetime(2016, 1, 1), datetime(2016, 03, 31)) aapl_df['SMA5'] = aapl_df['Adj Close'].rolling(window=5,center=False).mean() aapl_df['SMA20'] = aapl_df['Adj Close'].rolling(window=20,center=False).mean() aapl_df['EMA5'] = aapl_df['Adj Close'].ewm(span=5).mean() aapl_df['EMA20'] = aapl_df['Adj Close'].ewm(span=20).mean() #aapl_df['EMA20'] = aapl_df['Adj Close'].ewm(span=20,min_periods=20).mean() # commented to explain the min_periods # Plot price vs various mean […]

使用excel的增量平均值

我需要采取平均每2点增量,我的数据在列“a”,作为一个例子,平均在列“b” a1 b1=0 a2 b2=a1 a3 b3=average(a1,a2) a4 b4=average(a2,a3) a5 b5=average(a3,a4) … 我需要一个Excel的公式或macros来这样做,有什么想法?