Weighted Moving Average of Cubic

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

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.
 

Answers and Replies

  • #2
Ray Vickson
Science Advisor
Homework Helper
Dearly Missed
10,706
1,722
1. Show that applying a second-order weighted moving average to a cubic polynomial will not change anything.
[tex]X_t = a_0 + a_1t + a_2t^2 + a_3t^3[/tex] is our polynomial
Second-order weighted moving average: [tex]\sum_{i=-L}^{i=L} B_iX_{t+i}[/tex]
where [tex]B_i=(1-i^2I_2/I_4)/(2L+1-I_2^{2}/I_4)[/tex]
where [tex]I_2=\sum_{i=-L}^{i=L} i^2[/tex]

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?
 
  • #3
Scootertaj
97
0
L is any arbitrary number.
For any L, this should be true.
 
  • #4
SammyS
Staff Emeritus
Science Advisor
Homework Helper
Gold Member
11,738
1,322
...

where [tex]I_2=\sum_{i=-L}^{i=L} i^2[/tex]
...

What is I4 ?
 
  • #5
Scootertaj
97
0
Sorry, it just follows the same pattern as I2:

[tex]I_4=\sum_{i=-L}^{i=L} i^{4}[/tex]
 
  • #6
Ray Vickson
Science Advisor
Homework Helper
Dearly Missed
10,706
1,722
1. Show that applying a second-order weighted moving average to a cubic polynomial will not change anything.
[tex]X_t = a_0 + a_1t + a_2t^2 + a_3t^3[/tex] is our polynomial
Second-order weighted moving average: [tex]\sum_{i=-L}^{i=L} B_iX_{t+i}[/tex]
where [tex]B_i=(1-i^2I_2/I_4)/(2L+1-I_2^{2}/I_4)[/tex]
where [tex]I_2=\sum_{i=-L}^{i=L} i^2[/tex]

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
[tex] B_i = A - B i^2, i=-L, \ldots, L.[/tex] What happens when you compute
[tex] \sum_{i=-L}^{L} (A - B i^2) [a_0 + a_1 (t+i) + a_2 (t+i)^2 + a_3 (t+i)^3]?[/tex]
 
  • #7
Scootertaj
97
0
So you have weighting factors of the form
[tex] B_i = A - B i^2, i=-L, \ldots, L.[/tex] What happens when you compute
[tex] \sum_{i=-L}^{L} (A - B i^2) [a_0 + a_1 (t+i) + a_2 (t+i)^2 + a_3 (t+i)^3]?[/tex]

I'm unsure as to how you rearranged the weights to get [tex]B_i = A - B i^2[/tex], would you mind clarifying what A and Bi2 are?
 
Last edited:
  • #8
Scootertaj
97
0
I mean, one way to write what we have is
[tex]\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][/tex]
 
  • #9
Scootertaj
97
0
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:

[tex]\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[/tex]
Well, let's multiply through:

[tex]\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}}[/tex]
[tex]\frac{a_0(2L+1) - a_0\frac{I_2^{2}}{I_4}}{2L+1-\frac{I_2^{2}}{I_4}} = a_0[/tex]

Then, do the same for the rest.
 

Suggested for: Weighted Moving Average of Cubic

Replies
10
Views
784
Replies
4
Views
921
  • Last Post
Replies
20
Views
1K
  • Last Post
Replies
4
Views
1K
Replies
7
Views
702
  • Last Post
Replies
2
Views
801
Replies
3
Views
2K
Replies
4
Views
996
Replies
1
Views
722
Top