Questions tagged [moving-average]

In time series analysis, the moving-average (MA) model is a common approach for modeling univariate time series. The moving-average model specifies that the output variable depends linearly on the current and various past values of a stochastic (imperfectly predictable) term.

$\{X_t\}$ is a Moving Average Process of order $q$, MA($q$), if we can write

$$X_t = Z_t + \theta_1Z_{t-1} + \dots + \theta_qZ_{t-q},$$

where $Z_t \sim N(0,\sigma^2)$ and $\theta_i$'s are scalars.

  • $X_t$ is a linear combination of i.i.d. mean 0 random variables
  • $X_t$ can also be thought of as a weighted sum of the past $q$ forecast errors and a contemporanous error term.

References:

https://en.wikipedia.org/wiki/Moving-average_model http://www.maths.qmul.ac.uk/~bb/TS_Chapter4_3&4.pdf

372 questions
3
votes
0 answers

What's the link (or lack thereof) between 'Moving Average' and 'Moving Average Model'?

... as described by these two wikipedia pages: http://en.wikipedia.org/wiki/Moving_average http://en.wikipedia.org/wiki/Moving-average_model In the former, the predicted value for the variable of interest is given by (in the simplest case) the mean…
3
votes
1 answer

Confusion in model representation

Will the functional form of a Moving Average model having coefficients h = [1 0.2 -0.5] be y(t) = 0.2e(t-1) - 0.5e(t-2) Or y(t) = 1+ 0.2e(t-1) - 0.5e(t-2)
SKM
  • 787
3
votes
1 answer

Estimating original series from their moving average

I have a monthly series of a moving average , and I want to reconstruct their original series from a simple moving average that I have. I happen to know the window of averaging. Am I able to either reconstruct or estimate the original series from…
kurast
  • 170
2
votes
2 answers

Why is a Moving Average Process not just noise?

I was studying Moving Average Processes, and wanted to ask why adding a bunch of weighted noise terms is not just a noise term. I understand the operations involving mean and variance in a mathematical pov, but I want to address this doubt more…
2
votes
2 answers

Moving Average (q) interpretation

What does it mean that Moving Average Process is first-order, second order, third order, etc. MA(1), MA(2), MA(3)? How to simple understand it, without any complicated formulas, etc? Kind regards, thank you for help!
kathy kinga
  • 167
  • 1
  • 1
  • 10
1
vote
0 answers

Simple moving average - losing data points

Let's say I have data for 6 days. The values for these days are 1, 2, 3, 4, 5, and 6. So if I want to calculate a 2-day moving average of these data points, I'll get 1.5, 2.5, 3.5, 4.5, and 5.5. This means that I'm left with only 5 data points of…
Eran
  • 99
1
vote
0 answers

Smallest effective window for EWMA

I'm using an EWMA class to calculate an exponentially weighted moving average. What I'm measuring is the rate at which bytes are arriving at my server for each client that sends a request. I want to refuse requests that are being transmitted too…
Michael
  • 11
  • 1
1
vote
0 answers

Evaluating the quality of a moving average

I have a statistics scenario that doesn't contain a huge number of samples and am trying to set some inputs in the most appropriate way. The data can basically be thought of as having a date, a proximity to some physical center point, and a value.…
0
votes
1 answer

Confused with textual explanation of moving average

I have two questions about moving average calculation in Python vs moving average example in a textbook. The task is to calculate a three-year moving average. In Python, I am using df['moving_average'] = df['production'].rolling(window =…