{"action":"created","issue":{"url":"https://api.github.com/repos/jmschrei/pomegranate/issues/86","repository_url":"https://api.github.com/repos/jmschrei/pomegranate","labels_url":"https://api.github.com/repos/jmschrei/pomegranate/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/jmschrei/pomegranate/issues/86/comments","events_url":"https://api.github.com/repos/jmschrei/pomegranate/issues/86/events","html_url":"https://github.com/jmschrei/pomegranate/issues/86","id":137035238,"number":86,"title":"Question: Sampling from conditional probability","user":{"login":"MetaDev","id":7236112,"avatar_url":"https://avatars.githubusercontent.com/u/7236112?v=3","gravatar_id":"","url":"https://api.github.com/users/MetaDev","html_url":"https://github.com/MetaDev","followers_url":"https://api.github.com/users/MetaDev/followers","following_url":"https://api.github.com/users/MetaDev/following{/other_user}","gists_url":"https://api.github.com/users/MetaDev/gists{/gist_id}","starred_url":"https://api.github.com/users/MetaDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MetaDev/subscriptions","organizations_url":"https://api.github.com/users/MetaDev/orgs","repos_url":"https://api.github.com/users/MetaDev/repos","events_url":"https://api.github.com/users/MetaDev/events{/privacy}","received_events_url":"https://api.github.com/users/MetaDev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-28T10:13:34Z","updated_at":"2016-02-28T19:28:52Z","closed_at":null,"body":"Hello,\r\nI don't know if this is the appropriate place to ask this, please tell me if it isn't.\r\nFor my master thesis I would like estimate conditional probabilities of multiple random variables which can be both discrete and continuous (mixture of continuous and discrete variables). I think this could be done using pomegranate by doing density estimation on this mixture and on the joint distribution of the evidence variables. The result would a fraction of 2 mixture of distributions, but not a closed form distribution. Thus, to sample from the conditional distribution I would have to resort rejection sampling (or an optimised MCMC method). Is this correct? "},"comment":{"url":"https://api.github.com/repos/jmschrei/pomegranate/issues/comments/189927990","html_url":"https://github.com/jmschrei/pomegranate/issues/86#issuecomment-189927990","issue_url":"https://api.github.com/repos/jmschrei/pomegranate/issues/86","id":189927990,"user":{"login":"jmschrei","id":3916816,"avatar_url":"https://avatars.githubusercontent.com/u/3916816?v=3","gravatar_id":"","url":"https://api.github.com/users/jmschrei","html_url":"https://github.com/jmschrei","followers_url":"https://api.github.com/users/jmschrei/followers","following_url":"https://api.github.com/users/jmschrei/following{/other_user}","gists_url":"https://api.github.com/users/jmschrei/gists{/gist_id}","starred_url":"https://api.github.com/users/jmschrei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmschrei/subscriptions","organizations_url":"https://api.github.com/users/jmschrei/orgs","repos_url":"https://api.github.com/users/jmschrei/repos","events_url":"https://api.github.com/users/jmschrei/events{/privacy}","received_events_url":"https://api.github.com/users/jmschrei/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T19:28:51Z","updated_at":"2016-02-28T19:28:51Z","body":"pomegranate currently doesn't support conditional distributions which are conditional on continuous distributions, unfortunately. It's something I want to add soon though. The idea sounds plausible though. You might consider PyMC, which is more fully fledged in this area."}}