Closed jbwhit closed 8 years ago
Thanks. Indeed that's using old syntax. I wasn't aware people still looked at these slides. I'll try to find some time to update them. In the mean-time, the new version of that model can be found here: http://nbviewer.ipython.org/github/pymc-devs/pymc3/blob/master/pymc3/examples/stochastic_volatility.ipynb
Thanks for the quick response! The updated Stochastic Volatility Model you link to is great, but I was actually more interested in the section in the first link labeled "Regression slowly adapts to best fit current data" (and immediately above).
Ah, right. That'd be great to port, I agree.
Here you go: http://pymc-devs.github.io/pymc3/rolling_regression/
Thanks! I don't know where to put this, but I had to update that analysis:
#ERROR: prices = data.YahooDailyReader(symbols=['GLD', 'GDX'], end='2014-8-1').read().loc['Adj Close', :, :].iloc[:1000]
# replacement
prices = data.get_data_yahoo(symbols=['GLD', 'GDX'], end='2014-8-1').loc['Adj Close', :, :].iloc[:1000]
After making that change (in 2 places on that line), all of the rest of the analysis works as advertised!
@jbwhit Can you try updating pandas-datareader
? Might require a newer version.
I was working through your Jupyter notebook here: http://nbviewer.ipython.org/github/twiecki/pymc3_talk/blob/master/bayesian_pymc3.ipynb
And when I got to input [40]:
I ran into a lot of problems. First, it appears that
TransformedVar
is no longer a method ofpm.Model()
. I substituted simplyVar
in both places, but then it broke onpm.logtransform
, so I changed that topm.log
, but that broke with the following error:I was running this code by creating a new conda environment via the following command that I ran today:
Versions:
pymc3: 3.0
Any update to this document would greatly help!