Skip to content

Bayesian refactor + new model #120

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 13 commits into from
Aug 17, 2015
Merged

Bayesian refactor + new model #120

merged 13 commits into from
Aug 17, 2015

Conversation

twiecki
Copy link
Contributor

@twiecki twiecki commented Aug 14, 2015

No description provided.

The original pymc2 implementation was written by Andrew Straw and
can be found here: https://github.com/strawlab/best

Ported to PyMC3 by Thomas Wiecki (c) 2015.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the same as your function in PyMC3? Either way we should change this line to pyfolio.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, yeah.

@gusgordon
Copy link
Contributor

Looks good from the parts I understood. What's different about this new one?

# Run alpha beta model
benchmark_rets = benchmark_rets.loc[df_train.index]
trace_alpha_beta = bayesian.run_model('alpha_beta', df_train,
bmark=benchmark_rets, samples=2000)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we allow other sample sizes to be passed when we create the tear sheet?

@twiecki
Copy link
Contributor Author

twiecki commented Aug 17, 2015

OK @gusgordon, addressed the feedback. Merging in.

twiecki added a commit that referenced this pull request Aug 17, 2015
Bayesian refactor + new model
@twiecki twiecki merged commit b0f8e5b into master Aug 17, 2015
@twiecki twiecki deleted the best branch August 17, 2015 17:52
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.

2 participants