Solution for f(n) in recurrence equation

  • Level: Graduate 
  • Thread starter Bruno Tolentino
  • Start date
  • Tags Tags
    Recurrence
1 reply · 2K views · last reply
Bruno Tolentino
Messages
96
Reaction score
0
Exist solution for SAR(n+1) in this equation:

Recurrence equation: SAR_{n+1} = SAR_n + alpha(EP - SAR_n), with the subscripts n+1 and n and the terms alpha, EP and SAR_n on the right side.


https://en.wikipedia.org/wiki/Parabolic_SAR

?

I want to eliminate SAR(n), but I never saw this kind of equation before...
 
If you substitute ##SAR_n## by ##SAR_n = SAR_{n-1}+\alpha (EP-SAR_{n-1})## and so on, you will get the following (where I substituted ##n+1## by ##n## and if I made no mistake):
$$SAR_{n}=(1-\alpha)^{n}SAR_0+(1-(1-\alpha)^{n})EP$$
 
  • Like
Likes   Reactions: Bruno Tolentino