Created
October 26, 2016 21:38
-
-
Save fonnesbeck/5c4dae4cec2c26fbc1b9eeb8163af0ce to your computer and use it in GitHub Desktop.
Sampling from the product of two betas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pymc3 import Beta, Deterministic, Model, sample | |
with Model(): | |
a = Beta('a', 3, 1) | |
b = Beta('b', 2, 5) | |
a_times_b = Deterministic('a_times_b', a*b) | |
trace = sample(2000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment