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 May 22, 2024 13:55
Large dynamic factor models, forecasting, and nowcasting in Statsmodels
Loading
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"
Loading
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
Loading
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
Loading
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
Loading
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
Loading
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
Loading
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`
Loading
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.