{ "info": { "author": "Adam Mantz", "author_email": "amantz@slac.stanford.edu", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7" ], "description": ".. image:: https://img.shields.io/pypi/v/cashstatistic.svg\n :alt: PyPi\n :target: https://pypi.python.org/pypi/cashstatistic\n.. image:: https://img.shields.io/pypi/l/cashstatistic.svg\n :alt: MIT\n :target: https://mit-license.org/license.txt\n===============\ncashstatistic\n===============\n**Utility functions related to the Cash statistic**\n\n\nThe Poisson distribution is\n\nP(x|mu) = exp(-mu) mu^x / x!\n\nThe `Cash statistic `_ is defined to be the model (mu) dependent part of -2ln(P), analogous to the role that chi^2 plays for the Gaussian distribution,\n\nC = 2( mu - x\\*ln(mu) ).\n\nA modified version,\n\nC_m = 2( mu - x + x\\*ln(x/mu) ),\n\nis equivalent to C for parameter inference (i.e. has the same dependence on mu), and also has the nice property of becoming equivalent to chi^2 when x is large. `Kaastra (2017) `_ was kind enough to provide approximate expressions for the mean and variance of C_m, which can be used to determine whether the actual C_m corresponding to a fitted model is indicative of a good fit (just as chi^2 does for the Gaussian distribution).\n\nThis package contains python code to calculate C, C_m, and the theoretical mean and variance of C_m. The `GitHub repo `_ contains implementations in other languages.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/abmantz/cstat", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "cashstatistic", "package_url": "https://pypi.org/project/cashstatistic/", "platform": "", "project_url": "https://pypi.org/project/cashstatistic/", "project_urls": { "Homepage": "https://github.com/abmantz/cstat" }, "release_url": "https://pypi.org/project/cashstatistic/0.1.1/", "requires_dist": [ "numpy" ], "requires_python": "", "summary": "Utility functions related to the Cash statistic", "version": "0.1.1" }, "last_serial": 3885309, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "b6c63c72bdb2d8ceac45b5d5f6cdeb63", "sha256": "e2a157fd5b285f3c81b8f229c87b81d8ffea74401389125dc0b9d7ab0cf0e69b" }, "downloads": -1, "filename": "cashstatistic-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b6c63c72bdb2d8ceac45b5d5f6cdeb63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3968, "upload_time": "2018-05-02T23:03:52", "url": "https://files.pythonhosted.org/packages/16/10/cb256ea91420780b47bcdad4a13e6f792859c2ee0f6eb9e3da806437de6d/cashstatistic-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "6a32202cc09020ed9123242880d1bc77", "sha256": "3b264751f1aab625d1b6320a434f6f7ef793fbb7164d1d07c8e7816aeceae0f0" }, "downloads": -1, "filename": "cashstatistic-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "6a32202cc09020ed9123242880d1bc77", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4880, "upload_time": "2018-05-21T23:26:23", "url": "https://files.pythonhosted.org/packages/03/7d/132c910e4aa3c7460b73d5027a5b2648c379e057b0a7614a861e8c382325/cashstatistic-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bacac35dd68f2a162353cc9d4fc2a053", "sha256": "abf60cd19df94258f964728b95ca083716018b951907fc9c9a64d5c389b59d45" }, "downloads": -1, "filename": "cashstatistic-0.1.1.tar.gz", "has_sig": false, "md5_digest": "bacac35dd68f2a162353cc9d4fc2a053", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4078, "upload_time": "2018-05-21T23:26:24", "url": "https://files.pythonhosted.org/packages/5c/98/5b758ed894a57bda1f8addc73f36f98af3b9dceeba12a8e65ff2b708bcea/cashstatistic-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6a32202cc09020ed9123242880d1bc77", "sha256": "3b264751f1aab625d1b6320a434f6f7ef793fbb7164d1d07c8e7816aeceae0f0" }, "downloads": -1, "filename": "cashstatistic-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "6a32202cc09020ed9123242880d1bc77", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4880, "upload_time": "2018-05-21T23:26:23", "url": "https://files.pythonhosted.org/packages/03/7d/132c910e4aa3c7460b73d5027a5b2648c379e057b0a7614a861e8c382325/cashstatistic-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bacac35dd68f2a162353cc9d4fc2a053", "sha256": "abf60cd19df94258f964728b95ca083716018b951907fc9c9a64d5c389b59d45" }, "downloads": -1, "filename": "cashstatistic-0.1.1.tar.gz", "has_sig": false, "md5_digest": "bacac35dd68f2a162353cc9d4fc2a053", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4078, "upload_time": "2018-05-21T23:26:24", "url": "https://files.pythonhosted.org/packages/5c/98/5b758ed894a57bda1f8addc73f36f98af3b9dceeba12a8e65ff2b708bcea/cashstatistic-0.1.1.tar.gz" } ] }