florianhartig / BayesianTools

General-Purpose MCMC and SMC Samplers and Tools for Bayesian Statistics
https://cran.r-project.org/web/packages/BayesianTools/index.html
119 stars 29 forks source link

AR1 function sd estimate wrongly scaled #259

Open TahminaMojumder opened 1 year ago

TahminaMojumder commented 1 year ago

likelihoodAR1 parameter sd actually fits (1-a) * sd

florianhartig commented 1 year ago

So, this reference https://faculty.washington.edu/ezivot/econ584/notes/armaestimation.pdf gives the following formula for the likelihood

image

Check

TahminaMojumder commented 1 year ago

https://www.google.de/books/edition/Applied_Time_Series_Analysis/9sM3Lpxgr7EC?hl=en&gbpv=1&dq=unconditional+log+likelihood+for+ar1&pg=PA250&printsec=frontcover

Screenshot 2023-10-18 at 15 33 21

florianhartig commented 10 months ago

OK, I think this wasn't resolved yet but we agreed the scaling is wrong and we have to change either help or (preferred) the code?