Skip to content

Estimating the decay parameter in Exponentially Weighted Moving Average (EWMA) model #1314

Discussion options

You must be logged in to vote

I'm a bit confused by the notation/formulation. No driving input to the filter?

Regardless I don't see any simple fix. Surely there are methods in the associated literature if this is considered a standard setup

Having said that, for small problems a global solver has no problems solving this

lambda = 0.5;
y = [ .1 .1 .1];
for i = 1:100
    y = [sum([lambda lambda.^2 lambda^3].*y(1:3)) + randn*0.01 y];
end
plot(y)

theta = sdpvar(3,1);
objective = 0;
for i = 1:length(y)-3
    objective = objective + (y(i)-y(i+1:i+3)*theta)^2;
end
optimize([0<=theta<=1, theta(3) == theta(2)*theta(1), theta(2) == theta(1)^2],objective,sdpsettings('solver','bmibnb'))
* Starting YALMIP global branch & bound.
…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@0xF0F0F0F
Comment options

Answer selected by 0xF0F0F0F
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants