Skip to content

Instantly share code, notes, and snippets.

@ChadFulton
ChadFulton / simulate_ar1.py
Created September 28, 2020 16:04
Simulate AR(1)
# Parameters
nobs = 100
mean = 2.0
phi = 0.5
sigma2 = 2.4
# Simulate
tmp = [0]
mod = sm.tsa.arima.ARIMA(tmp, order=(1, 0, 0), trend='c')
mod.simulate([mean, phi, sigma2], nobs)
@ChadFulton
ChadFulton / statespace_large_dynamic_factor_models.ipynb
Last active April 24, 2024 13:04
Large dynamic factor models, forecasting, and nowcasting in Statsmodels
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChadFulton
ChadFulton / statespace_news.ipynb
Created May 31, 2020 16:32
Statsmodels: forecasting, updating datasets, and the "news"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChadFulton
ChadFulton / state_space_obs_autocov.ipynb
Last active April 25, 2020 00:39
State space models - unconditional autocovariance matrix for the observation vector
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChadFulton
ChadFulton / statespace_forecasting.ipynb
Created July 8, 2019 01:06
Forecasting in Statsmodels
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChadFulton
ChadFulton / tvregression.ipynb
Created June 24, 2019 08:24
Statsmodels state space: time-varying regression
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChadFulton
ChadFulton / ss_fixed_params.ipynb
Created May 16, 2019 21:19
Estimating and specifying parameters in state space models
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChadFulton
ChadFulton / sarimax_fcast_weekly.ipynb
Created February 9, 2019 01:41
SARIMAX - Forecasting weekly data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChadFulton
ChadFulton / sm_ss_forecast_sim.ipynb
Created January 25, 2019 04:49
Statsmodels state space: forecasting using `simulate`
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChadFulton
ChadFulton / arma_cov_params.ipynb
Last active January 25, 2022 14:56
AR, MA models parameters covariance matrix
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.