This blog piece intends to introduce a new add-in (i.e. BOXCOX) that can be used in applying power transformations to the series of interest and provides alternative methods to estimate the optimal lambda parameter to be used in transformation.
Table of Contents
- Introduction
- Box-Cox family of transformations
- Application to Turkey’s tourism data
- Files
- References
Introduction
A stationary time series requires stable mean and variance, which can then be modelled through ARMA-type models. If a series does not have a finite variance, it violates this condition and will lead to ill-defined models. Common practice in dealing with time varying volatility is modeling the variance explicitly through GARCH-type models. However, when the variance of a given series changes with respect to the level, then there is a practical alternative: transforming the original series so as to scale down (up) the large (small) values.Box-Cox family of transformations
Box and Cox (1964) proposed a family of power transformations, which later became a popular tool in time series analysis to deal with skewness in the data:$$ \tilde{y}_t = \begin{cases} \frac{y_t^\lambda - 1}{\lambda} & \text{if } \lambda \neq 0\\ log(y_t) & \text{if } \lambda = 0 \end{cases} $$ Transformation of a series is straightforward once the value of $\lambda$ is known. One way to determine the value of $\lambda$ is to maximize the (regular or profile) log likelihood of a linear regression model fitted to data. For trending and/or seasonal data, appropriate dummy variables are added to regressions to capture such effects. Guerrero (1993) proposed a model-independent method to select $\lambda$ that minimizes the coefficient of variation for the subsets of series.
Application to Turkey’s Tourism Data
With its pervasive trend and seasonal components, monthly tourism statistics emerge as a natural candidate for implementation (TOURISM.WF1). Suppose that we want to carry out a counterfactual analysis to estimate the potential loss of visitors to Turkey in 2020 due to the COVID-19 pandemic. First, set the training sample to cover the period until the end of 2019.
|
|
|
|
|
|
|
|
|
|
Files
References
- Box, G.E.P., and Cox, D.R. (1964), "An analysis of transformations", Journal of the Royal Statistical Society, Series B, vol. 26, no. 2, pp. 211-246.
- Guerrero V.M. (1993), "Time-series analysis supported by power transformations", Journal of Forecasting, vol. 12, pp. 37-48.
I am Alecia Maldonado used every single spell worker on the internet, spent untold amounts of money and discovered they are all fakes...i was the fool though; doing the same thing over and over again and expecting different results. In the end, I decided that I wanted a tarot reading to know what my future held for me; I contacted a woman who lives locally to me and she told me about a man named (Dr Mandaker); he just got he just got his website (holyaraminta.com), has another job for income, has no set prices, makes no false promises and refuses to help anyone that cannot be helped and even helps
ReplyDeletefor free sometimes, he will give you proof before taking money. He is a wonderful man and he was the only person who actually gave me real results. I really hope he doesn't mind me advertising his contact on the internet but I'm sure any help/ extra work will benefit him.contact him as witchhealing@outlook.com He travel sometimes.i cant give out his number cos he told me he don’t want to be disturbed by many people across the world..he said his email is okay and he’ will replied to any emails asap,love marriage,finance, job promotion ,lottery Voodoo,poker voodoo,golf Voodoo,Law & Court case Spells,money voodoo,weigh loss voodoo,any sicknesses voodoo,Trouble in marriage,HIV AIDS,Barrenness(need a child),goodLuck voodoo,it's all he does Hope this helps everyone that is in a desperate situation as I once was; I know how it feels to hold onto something and never have a chance to move on because of the false promises and then to feel trapped in wanting something
more!