How Does a Shift in Mean Affect the Moving Average Calculation?

In summary, the conversation discusses using a simple moving average to forecast a time series with a constant mean. The expected value of the moving average is shown to be m when T is less than or equal to t1-1, m+b-(t1+N-1)b/n when t1 is between T and t1+N-2, and m+b when T is greater than or equal to N. There is some confusion about the formula for t1<=T<=t1+N-2, and the correct formula is m+b-(t1+N-1-T)b/N.
  • #1
neznam
15
0
Please any help will be greatly appreciated.

Suppose that a simple moving average of span N is used to forecast a time series that varies randomly around a constant mean, that is yt=m (m-mean and yt is y sub t). At the start of the period t1 the process shifts to a new mean level, say, m+b. Show that the exepected value of the moving average is
m when T<=t1-1
m+b-(t1+N-1)b/n when t1<=T<=t1+N-2
m+b when T>=N

I can prove 1st and the last part I am just really confused on the 2nd part--is that condition supposed to be t1<=T<=t1+N-1. Otherwise aren't we missing values if we have N-2? I am sure I am missing something but I don't know what. PLEASE any suggestions will help.

Thanks
 
Physics news on Phys.org
  • #2
What's the lowercase n in the denominator?
 
  • #3
Sorry it is not lower case n --just the same upper case N
 
  • #4
m+b-(t1+N-1)b/N when t1<=T<=t1+N-2
 
  • #5
You sure it's not m+b-(t1+N-1-T)b/N? EnumaElish found a clear error in your formula, and this is one I'm getting by working out the problem.
 

FAQ: How Does a Shift in Mean Affect the Moving Average Calculation?

What is a moving average in statistics?

A moving average is a statistical calculation that is used to analyze data over a certain period of time. It is calculated by taking the average of a set of data points over a specific time frame and then moving the time frame forward, creating a new average. This helps to smooth out any short-term fluctuations in the data and provide a clearer picture of the overall trend.

How is a moving average used in technical analysis?

In technical analysis, a moving average is used to identify trends and potential buy or sell signals in financial markets. It is commonly used in stock trading, where a shorter-term moving average (e.g. 50-day) is compared to a longer-term moving average (e.g. 200-day) to determine if a stock is trending up or down. Crossovers between these two moving averages can indicate potential buying or selling opportunities.

What is the difference between simple moving average (SMA) and exponential moving average (EMA)?

The main difference between SMA and EMA is the weighting of data points. In SMA, all data points are given equal weight, while in EMA, more recent data points are given more weight. This makes EMA more responsive to recent price changes, whereas SMA is smoother and less reactive.

How is the effectiveness of a moving average measured?

The effectiveness of a moving average can be measured by comparing it to the actual price data. If the moving average consistently follows the price trends and accurately identifies potential buying or selling opportunities, then it can be considered effective. However, it is important to note that no single moving average is always correct, and it should be used in conjunction with other technical indicators and analysis.

Can a moving average be used for predicting future prices?

No, a moving average is not meant for predicting future prices. It is a lagging indicator that is based on past data and trends. While it can help identify potential trends and signals, it cannot accurately predict future prices. Market conditions can change at any time, and past performance does not guarantee future results.

Similar threads

Replies
15
Views
2K
Replies
2
Views
938
Replies
8
Views
1K
Replies
14
Views
2K
Replies
8
Views
1K
Replies
3
Views
1K
Replies
1
Views
1K
Back
Top