Questions tagged [time-series]
Time series are data observed over time (either in continuous time or at discrete time periods).
1,792
questions
58
votes
6
answers
71k
views
Best method for short time-series
I have a question related to modeling short time-series. It is not a question if to model them, but how. What method would you recommend for modeling (very) short time-series (say of length $T \leq 20$...
133
votes
5
answers
138k
views
Using k-fold cross-validation for time-series model selection
Question:
I want to be sure of something, is the use of k-fold cross-validation with time series is straightforward, or does one need to pay special attention before using it?
Background:
I'm ...
147
votes
19
answers
127k
views
Books for self-studying time series analysis?
I started by Time Series Analysis by Hamilton, but I am lost hopelessly. This book is really too theoretical for me to learn by myself.
Does anybody have a recommendation for a textbook on time ...
43
votes
6
answers
31k
views
Testing for autocorrelation: Ljung-Box versus Breusch-Godfrey
I am used to seeing Ljung-Box test used quite frequently for testing autocorrelation in raw data or in model residuals. I had nearly forgotten that there is another test for autocorrelation, namely, ...
109
votes
13
answers
85k
views
Simple algorithm for online outlier detection of a generic time series
I am working with a large amount of time series. These time series are basically network measurements coming every 10 minutes, and some of them are periodic (i.e. the bandwidth), while some other aren'...
59
votes
5
answers
66k
views
What is the difference between GARCH and ARMA?
I am confused. I don't understand the difference a ARMA and a GARCH process.. to me there are the same no ?
Here is the (G)ARCH(p, q) process
$$\sigma_t^2 =
\underbrace{
\underbrace{
\...
53
votes
6
answers
24k
views
Is a time series the same as a stochastic process?
A stochastic process is a process that evolves over time, so is it really a fancier way of saying "time series"?
43
votes
2
answers
40k
views
How to find a good fit for semi-sinusoidal model in R?
I want to assume that the sea surface temperature of the Baltic Sea is the same year after year, and then describe that with a function / linear model. The idea I had was to just input year as a ...
8
votes
2
answers
14k
views
VAR or VECM for a mix of stationary and nonstationary variables?
I have 4 time series. One of them is stationary and rest of them are not. I need to find relation between them. I will use AIC to decide lag length.
Should I use VAR or VECM to find relation between ...
3
votes
1
answer
3k
views
Interrupted Time Series Analysis - ARIMAX for High Frequency Biological Data? [closed]
I have edited the below question to add more detail:
The Problem
I am currently working on doing an analysis on fluorescence data acquired from mice performing a behavioral task. As the data is ...
93
votes
4
answers
189k
views
How to use Pearson correlation correctly with time series
I have 2 time-series (both smooth) that I would like to cross-correlate to see how correlated they are.
I intend to use the Pearson correlation coefficient. Is this appropriate?
My second question ...
78
votes
7
answers
215k
views
How to statistically compare two time series?
I have two time series, shown in the plot below:
The plot is showing the full detail of both time series, but I can easily reduce it to just the coincident observations if needed.
My question is: ...
14
votes
2
answers
13k
views
7
votes
2
answers
3k
views
Simple method of forecasting number of guests given current and historical data
I am trying to predict the number of guests a restaurant might serve in a meal period based on the volume of business that same day from prior years (3-5 years of data), trends for the same day of the ...
69
votes
6
answers
22k
views
Real-life examples of moving average processes
Can you give some real-life examples of time series for which a moving average process of order $q$, i.e.
$$
y_t = \sum_{i=1}^q \theta_i \varepsilon_{t-i} + \varepsilon_t, \text{ where } \varepsilon_t ...
4
votes
1
answer
9k
views
How do I write a mathematical equation for ARIMA (2,1,0) x (0,2,2) period 12
I would appreciate if someone could help me write the mathematical equation for the seasonal ARIMA (2,1,0) x (0,2,2) period 12. I'm a little confused with how to go about this. I would prefer an ...
64
votes
7
answers
40k
views
Period detection of a generic time series
This post is the continuation of another post related to a generic method for outlier detection in time series.
Basically, at this point I'm interested in a robust way to discover the periodicity/...
84
votes
6
answers
144k
views
What method can be used to detect seasonality in data?
I want to detect seasonality in data that I receive. There are some methods that I have found like the seasonal subseries plot and the autocorrelation plot but the thing is I don't understand how to ...
54
votes
5
answers
67k
views
Dynamic Time Warping Clustering
What would be the approach to use Dynamic Time Warping (DTW) to perform clustering of time series?
I have read about DTW as a way to find similarity between two time series, while they could be ...
11
votes
3
answers
10k
views
Transfer function in forecasting models - interpretation
I am occupied with ARIMA modelling augmented with exogenous variables for promotional modelling purposes and i have hard time explaining it to business users. In some cases software packages end up ...
35
votes
2
answers
47k
views
Interpretation of mean absolute scaled error (MASE)
Mean absolute scaled error (MASE) is a measure of forecast accuracy proposed by Koehler & Hyndman (2006).
$$MASE=\frac{MAE}{MAE_{in-sample, \, naive}}$$
where $MAE$ is the mean absolute error ...
32
votes
5
answers
32k
views
Moving-average model error terms
This is a basic question on Box-Jenkins MA models. As I understand, an MA model is basically a linear regression of time-series values $Y$ against previous error terms $e_t,..., e_{t-n}$. That is, the ...
21
votes
1
answer
19k
views
What is the long run variance?
How is long run variance in the realm of time series analysis defined?
I understand it is utilized in the case there is a correlation structure in the data. So our stochastic process would not be a ...
7
votes
1
answer
2k
views
Endogeneity in forecasting
I know that omitted variable bias isn't a major problem in forecasting, but are other endogeneity issues (such as simultaneity or measurement error) going to be a problem if I am only interested in ...
18
votes
3
answers
23k
views
Why is OLS estimator of AR(1) coefficient biased?
I am trying to understand why OLS gives a biased estimator of an AR(1) process. Consider
$$
\begin{aligned}
y_{t} &= \alpha + \beta y_{t-1} + \epsilon_{t}, \\
\epsilon_{t} &\stackrel{iid}{\...
16
votes
2
answers
32k
views
Estimate ARMA coefficients through ACF and PACF inspection
How do you estimate the appropriate forecast model for a time series by visual inspection of the ACF and PACF plots? Which one (i.e., ACF or PACF) tells the AR or the MA (or do they both)? Which part ...
6
votes
4
answers
5k
views
What's wrong to fit periodic data with polynomials?
Suppose we have toy daily temperate data and we want to fit a model.
A reasonable thing to do is fitting a periodic model with Fourier basis
$$
f(x)=\beta_0+\beta_1 \cos(2\pi x/24)+\beta_2 \sin(2\pi ...
2
votes
1
answer
1k
views
Resources/books for project on forecasting models
My professor suggested a comparison of various forecasting models as a topic for my semester project. Given that my only experience in statistics is the intro course in probability and statistics ...
84
votes
10
answers
88k
views
What is wrong with extrapolation?
I remember sitting in stats courses as an undergrad hearing about why extrapolation was a bad idea. Furthermore, there are a variety of sources online which comment on this. There's also a mention of ...
38
votes
4
answers
10k
views
Data has two trends; how to extract independent trendlines?
I have a set of data that is not ordered in any particular way but when plotted clearly has two distinct trends. A simple linear regression would not really be adequate here because of the clear ...
38
votes
5
answers
23k
views
Estimating same model over multiple time series
I have a novice background in time series (some ARIMA estimation/forecasting) and am facing a problem I don't fully understand. Any help would be greatly appreciated.
I am analyzing multiple time ...
12
votes
2
answers
3k
views
Are explosive AR(MA) processes stationary?
According to Theorem 8.8 in Time Series by A.W. van der Vaart, an ARMA process
$$
\phi (L)X_t=\theta(L)\epsilon_t
$$
has a unique stationary solution $X_t=\psi(L)\epsilon_t$ with $\psi=\theta/\phi$ ...
9
votes
1
answer
8k
views
How is the augmented Dickey–Fuller test (ADF) table of critical values calculated?
Could you please explain in simple terms how the table of critical values for the augmented Dickey–Fuller (ADF) test is created?
1
vote
2
answers
3k
views
Is there any standard / criteria of good forecast measured by SMAPE and MASE?
I have built a forecasting model for a company. Since it is dedicated to practical usage, I prefer to use the relative error parameter (like MAPE, SMAPE, & MASE) as a measurement for my model ...
42
votes
4
answers
49k
views
What is the difference between a stationary test and a unit root test?
What is the difference between the Kwiatkowski–Phillips–Schmidt–Shin (KPSS) test and the augmented Dickey-Fuller (ADF) test? Are they testing the same thing? Or do we need to use them in different ...
27
votes
5
answers
7k
views
Seeking certain type of ARIMA explanation
This may be hard to find, but I'd like to read a well-explained ARIMA example that
uses minimal math
extends the discussion beyond building a model into using that model to forecast specific cases
...
25
votes
3
answers
12k
views
Is it possible to automate time series forecasting?
I would like to build an algorithm that would be able to analyze any time series and "automatically" choose the best traditional/statiscal forecasting method (and its parameters) for the analyzed time ...
53
votes
2
answers
45k
views
How do you do bootstrapping with time series data?
I recently learned about using bootstrapping techniques to calculate standard errors and confidence intervals for estimators. What I learned was that if the data is IID, you can treat the sample data ...
43
votes
1
answer
53k
views
Detecting Outliers in Time Series (LS/AO/TC) using tsoutliers package in R. How to represent outliers in equation format?
Comments:
Firstly I would like to say a big thank you to the author of the new tsoutliers package which implements Chen and Liu's time series outlier detection which was published in the Journal of ...
38
votes
2
answers
84k
views
Can PCA be applied for time series data?
I understand that Principal Component Analysis (PCA) can be applied basically for cross sectional data. Can PCA be used for time series data effectively by specifying year as time series variable and ...
33
votes
4
answers
8k
views
AIC versus cross validation in time series: the small sample case
I am interested in model selection in a time series setting. For concreteness, suppose I want to select an ARMA model from a pool of ARMA models with different lag orders. The ultimate intent is ...
22
votes
2
answers
83k
views
Does it make sense to use a date variable in a regression?
I'm not used to using variables in the date format in R. I'm just wondering if it is possible to add a date variable as an explanatory variable in a linear regression model. If it's possible, how can ...
7
votes
1
answer
3k
views
Cross-validation techniques for time series data
What is an appropriate cross-validation technique for time series data?
I have a daily 4 years time series data and fitting a SVM model by MATLAB R2015b:
...
2
votes
1
answer
12k
views
How do I write a mathematical equation for ARIMA (0,2,1) x (0,0,1) period 12 [duplicate]
I would appreciate if someone could help me write the mathematical equation for the seasonal ARIMA (0,2,1) x (0,0,1) period 12. I'm a little confused with how to go about this. I would prefer an ...
150
votes
9
answers
174k
views
Why does a time series have to be stationary?
Would like to understand primary reasons for making a data stationary?
I understand that a stationary time series is one whose mean and variance is constant over time. Can someone please explain why ...
22
votes
1
answer
6k
views
Regularization for ARIMA models
I am aware of LASSO, ridge and elastic-net type of regularization in linear regression models.
Question:
Can this (or a similar) kind of penalized estimation be applied to ARIMA modelling (with a non-...
22
votes
2
answers
19k
views
stochastic vs deterministic trend/seasonality in time series forecasting
I have moderate background in time series forecasting. I have looked at several forecasting books, and I don't see the following questions addressed in any of them.
I have two questions:
How would I ...
12
votes
3
answers
11k
views
Binary time series
I have a binary time series: We have 2160 data (0=didn't happen, 1=happened) for one-hour period in 90 days.
I want to forecast after these 90 days, where the next 1 will happen, and also Extend ...
4
votes
1
answer
6k
views
What are the assumptions for applying a quantile regression model?
The question has been asked (one time) on CV before, but the answer is really imprecise and does not really answer the question in my opinion.
So: What are the assumptions for estimating a linear ...
70
votes
3
answers
48k
views
Proper way of using recurrent neural network for time series analysis
Recurrent neural networks differ from "regular" ones by the fact that they have a "memory" layer. Due to this layer, recurrent NN's are supposed to be useful in time series modelling. However, I'm not ...