I have a Series of data, each reflects a value that was taken every 7 days.
I'd like to calculate the exponential moving average of that Series using a half-life of 3 days. What value should I use for the halflife attribute in the ewm function call?
s = pd.Series([232848661129,327042265468,235595837210,220903949498,287582315011])
s.ewm(halflife=7/3,min_periods=0,adjust=True,ignore_na=False).mean()
What halflife value would be correct here? Is halflife=7/3 correct?
I'm not sure how to make this work.