Weighted Moving Average of Cubic

  • Thread starter Thread starter Scootertaj
  • Start date Start date
  • Tags Tags
    Average Cubic
Click For Summary
SUMMARY

The discussion focuses on the application of a second-order weighted moving average to a cubic polynomial represented as X_t = a_0 + a_1t + a_2t^2 + a_3t^3. It is established that this application does not alter the polynomial's output, regardless of the arbitrary value of L. The formula for the weighting factors B_i is given as B_i=(1-i^2I_2/I_4)/(2L+1-I_2^{2}/I_4), where I_2 and I_4 are defined as I_2=\sum_{i=-L}^{i=L} i^2 and I_4=\sum_{i=-L}^{i=L} i^{4}, respectively. The discussion also explores the implications of these calculations on the polynomial's coefficients.

PREREQUISITES
  • Understanding of cubic polynomials and their representation.
  • Familiarity with weighted moving averages and their mathematical formulation.
  • Knowledge of summation notation and its application in statistical methods.
  • Basic comprehension of polynomial regression and its properties.
NEXT STEPS
  • Explore the derivation of weighted moving averages in time series analysis.
  • Learn about polynomial regression techniques and their applications in data modeling.
  • Investigate the properties of higher-order moments in statistical distributions.
  • Study the implications of moving averages on signal processing and data smoothing.
USEFUL FOR

Mathematicians, data analysts, and statisticians interested in polynomial analysis and time series forecasting will benefit from this discussion.

Scootertaj
Messages
97
Reaction score
0
1. Show that applying a second-order weighted moving average to a cubic polynomial will not change anything.
X_t = a_0 + a_1t + a_2t^2 + a_3t^3 is our polynomial
Second-order weighted moving average: \sum_{i=-L}^{i=L} B_iX_{t+i}
where B_i=(1-i^2I_2/I_4)/(2L+1-I_2^{2}/I_4)
where I_2=\sum_{i=-L}^{i=L} i^2

2. I did a similar problem where applying a linear moving average to a linear equation returns the same thing, but I'm not sure how to proceed here.
 
Physics news on Phys.org
Scootertaj said:
1. Show that applying a second-order weighted moving average to a cubic polynomial will not change anything.
X_t = a_0 + a_1t + a_2t^2 + a_3t^3 is our polynomial
Second-order weighted moving average: \sum_{i=-L}^{i=L} B_iX_{t+i}
where B_i=(1-i^2I_2/I_4)/(2L+1-I_2^{2}/I_4)
where I_2=\sum_{i=-L}^{i=L} i^2

2. I did a similar problem where applying a linear moving average to a linear equation returns the same thing, but I'm not sure how to proceed here.

What is L supposed to be in your case?
 
L is any arbitrary number.
For any L, this should be true.
 
Scootertaj said:
...

where I_2=\sum_{i=-L}^{i=L} i^2
...

What is I4 ?
 
Sorry, it just follows the same pattern as I2:

I_4=\sum_{i=-L}^{i=L} i^{4}
 
Scootertaj said:
1. Show that applying a second-order weighted moving average to a cubic polynomial will not change anything.
X_t = a_0 + a_1t + a_2t^2 + a_3t^3 is our polynomial
Second-order weighted moving average: \sum_{i=-L}^{i=L} B_iX_{t+i}
where B_i=(1-i^2I_2/I_4)/(2L+1-I_2^{2}/I_4)
where I_2=\sum_{i=-L}^{i=L} i^2

2. I did a similar problem where applying a linear moving average to a linear equation returns the same thing, but I'm not sure how to proceed here.

So you have weighting factors of the form
B_i = A - B i^2, i=-L, \ldots, L. What happens when you compute
\sum_{i=-L}^{L} (A - B i^2) [a_0 + a_1 (t+i) + a_2 (t+i)^2 + a_3 (t+i)^3]?
 
Ray Vickson said:
So you have weighting factors of the form
B_i = A - B i^2, i=-L, \ldots, L. What happens when you compute
\sum_{i=-L}^{L} (A - B i^2) [a_0 + a_1 (t+i) + a_2 (t+i)^2 + a_3 (t+i)^3]?

I'm unsure as to how you rearranged the weights to get B_i = A - B i^2, would you mind clarifying what A and Bi2 are?
 
Last edited:
I mean, one way to write what we have is
\frac{1}{2L+1-I_2^{2}/I_4} \sum_{i=-L}^{i=L} (1-i^2\frac{I_2}{I_4}) [a_0 + a_1 (t+i) + a_2 (t+i)^2 + a_3 (t+i)^3]
 
I THINK I may have got it. I basically looked at what we had, and what we need.

In order for us to get back a0, for example, we need:

\frac{1}{2L+1-\frac{I_2^{2}}{I_4}}\sum_{i=-L}^{i=L}a_0(1-i^2\frac{I_2}{I_4}) = a_0
Well, let's multiply through:

\frac{a_0}{2L+1-\frac{I_2^{2}}{I_4}}\sum_{i=-L}^{i=L} 1 - a_0\frac{\sum_{i=-L}^{i=L} i^2\frac{I_2}{I_4}}{2L+1-\frac{I_2^{2}}{I_4}}
\frac{a_0(2L+1) - a_0\frac{I_2^{2}}{I_4}}{2L+1-\frac{I_2^{2}}{I_4}} = a_0

Then, do the same for the rest.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K