Install any skill in seconds. Free to start, no credit card required.
Get Started Free →brycewang-stanford/time-series
Econometrics skill for time series analysis. Activates when the user asks about: "time series", "stationarity", "unit root test", "ADF test", "KPSS test", "ARIMA", "ARMA", "autocorrelation", "ACF", "PACF", "VAR model", "VECM", "Granger causality", "cointegration", "impulse response function", "forecast", "seasonal decomposition", "ARCH", "GARCH", "时间序列", "平稳性检验", "单位根", "自回归", "格兰杰因果", "协整", "脉冲响应", "预测", "向量自回归"
Passed 22 of 22 test cases with the skill, and 20 of 22 without it.
2 fixed20 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
I'm analyzing daily asset returns in R and need to build a univariate time series model. Can you walk me through the full workflow to identify appropriate ARMA/ARIMA orders using information criteria, test the model residuals for white noise, test for autoregressive conditional heteroskedasticity, and fit a GARCH model if volatility clustering is detected? Please provide a clean R script along with a summary of the diagnostic workflow.
| Checked | Without skill | With skill |
|---|---|---|
| Includes both Dickey-Fuller and KPSS tests when evaluating stationarity. | Missed | Passed |
| Uses Ljung-Box test for checking residual autocorrelation. | Passed | Passed |
The instructions your model reads when the skill loads.
This skill provides guidance for univariate and multivariate time series analysis in empirical economics. It covers stationarity testing, ARIMA modeling, VAR/VECM systems, cointegration, and Granger causality.
Always test for unit roots before modeling. Preferred approach:
ADF vs KPSS Conflict Resolution: When ADF fails to reject (suggests unit root) but KPSS also fails to reject (suggests stationary), the tests disagree. Recommended approach: (a) check for structural breaks — a break can make a stationary series look like it has a unit root; (b) use Zivot-Andrews test to allow for one structural break; (c) examine the series visually and consider economic theory. When in doubt, err on the side of differencing to avoid spurious regressions.
# Python
test cases passed, vs 20 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.