Skip to content

refactored GARCH and added Mv(Gaussian/StudentT)RandomWalk #1603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 15, 2016
Merged

refactored GARCH and added Mv(Gaussian/StudentT)RandomWalk #1603

merged 6 commits into from
Dec 15, 2016

Conversation

ferrine
Copy link
Member

@ferrine ferrine commented Dec 13, 2016

Added useful (I hope) distributions from my experiments and refactored garch a bit so it can be used as following

GARCH11.dist(...).get_volatility(x)

@twiecki
Copy link
Member

twiecki commented Dec 14, 2016

Does this fix #1491?

@ferrine
Copy link
Member Author

ferrine commented Dec 14, 2016

No, but I'll make it so

@twiecki
Copy link
Member

twiecki commented Dec 14, 2016

Actually that's probably a different problem. But do let me know if you have an idea.

return (Normal.dist(0., sd=self.initial_vol).logp(x[0]) +
tt.sum(Normal.dist(0, sd=vol).logp(x[1:])))
vol = self.get_volatility(x)
return (Normal.dist(0., sd=vol[0]).logp(x[0]) +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't this be simplified now to: tt.sum(Normal.dist(0, sd=vol).logp(x))?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

@ferrine
Copy link
Member Author

ferrine commented Dec 15, 2016

Ready to merge, #1491 is not related

@ferrine ferrine merged commit 32a2eb7 into pymc-devs:3.1 Dec 15, 2016
@ferrine ferrine deleted the add_mvnormalrandomwalk branch December 15, 2016 22:40
twiecki pushed a commit that referenced this pull request Jan 9, 2017
* refactored GARCH and added Mv(Gaussian/StudentT)RandomWalk

* refactored garch logp

* added docs

* fix typo

* even more typos

* better description for tau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants