{ "info": { "author": "Tony Duan", "author_email": "tonyduan@cs.stanford.edu", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "### Conjugate Bayesian Models\n\nLast update: June 2019.\n\n---\n\nLightweight Python library implementing a few conjugate Bayesian models. For details on the derivations see [1].\n\n```\npip3 install conjugate-bayes\n```\n\nWe support the following:\n\n#### To fit distribution models\n\n- Beta-Bernoulli\n- Gamma-Poisson\n- Normal-Inverse-Gamma\n\n#### To fit regression models\n\n- Linear regression with Normal Inverse-Gamma prior\n- Linear regression with Zellner's *g*-prior\n\n#### Future work\n\n- Dirichlet-Multinomial\n- Normal-Inverse-Wishart\n\n#### Usage\n\nBelow we show an example fitting a simple Bayesian linear regression with unknown beta and unknown variance.\n\n```python\nmodel = NIGLinearRegression(mu=np.zeros(2), v=100*np.eye(2), a=0.5, b=0.5)\nmodel.fit(x_tr, y_tr)\n\nsigma2 = model.get_marginal_sigma2()\nbeta = model.get_conditional_beta(sigma2=sigma2.mean())\n```\n\nThe above example results in the following prediction intervals.\n\n![ex_model](examples/ex.png)\n\nFor further details the `examples/` folder.\n\n#### References\n\n[1] P. D. Hoff, A First Course in Bayesian Statistical Methods (New York: Springer-Verlag, 2009).\n\n#### License\n\nThis library is available under the MIT License.\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tonyduan/conjugate-bayes", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "conjugate-bayes", "package_url": "https://pypi.org/project/conjugate-bayes/", "platform": "", "project_url": "https://pypi.org/project/conjugate-bayes/", "project_urls": { "Homepage": "https://github.com/tonyduan/conjugate-bayes" }, "release_url": "https://pypi.org/project/conjugate-bayes/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Conjugate Bayesian linear regression and distribution models in Python..", "version": "0.0.1" }, "last_serial": 5481061, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "3ab882f7fec3dd5c952903b61d4885a9", "sha256": "e642925550eef870683db7167426f9991bb6e7d8ce6d84978dee6ea8f23a9304" }, "downloads": -1, "filename": "conjugate_bayes-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3ab882f7fec3dd5c952903b61d4885a9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2661, "upload_time": "2019-07-03T12:25:28", "url": "https://files.pythonhosted.org/packages/e8/41/a46a3278ddcbb2f8114820b21901b6bc4d1673a19b698f23983ba1f17d31/conjugate_bayes-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "796f270dcd67c00d37491c3295a3e3b0", "sha256": "acae1b38cde07686ee92f4e4af09b2fd522a2b30773864064fdc0d77ae9280dd" }, "downloads": -1, "filename": "conjugate-bayes-0.0.1.tar.gz", "has_sig": false, "md5_digest": "796f270dcd67c00d37491c3295a3e3b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1719, "upload_time": "2019-07-03T12:25:31", "url": "https://files.pythonhosted.org/packages/99/f5/a714fb31dd41f91e1cdaac0823a4c9b4b452c52fd1bcd9b12cbaecf10498/conjugate-bayes-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3ab882f7fec3dd5c952903b61d4885a9", "sha256": "e642925550eef870683db7167426f9991bb6e7d8ce6d84978dee6ea8f23a9304" }, "downloads": -1, "filename": "conjugate_bayes-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3ab882f7fec3dd5c952903b61d4885a9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2661, "upload_time": "2019-07-03T12:25:28", "url": "https://files.pythonhosted.org/packages/e8/41/a46a3278ddcbb2f8114820b21901b6bc4d1673a19b698f23983ba1f17d31/conjugate_bayes-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "796f270dcd67c00d37491c3295a3e3b0", "sha256": "acae1b38cde07686ee92f4e4af09b2fd522a2b30773864064fdc0d77ae9280dd" }, "downloads": -1, "filename": "conjugate-bayes-0.0.1.tar.gz", "has_sig": false, "md5_digest": "796f270dcd67c00d37491c3295a3e3b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1719, "upload_time": "2019-07-03T12:25:31", "url": "https://files.pythonhosted.org/packages/99/f5/a714fb31dd41f91e1cdaac0823a4c9b4b452c52fd1bcd9b12cbaecf10498/conjugate-bayes-0.0.1.tar.gz" } ] }