{ "info": { "author": "Massimo DiPierro", "author_email": "massimo.dipierro@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "## What?\n\nImplements the standard math syntax for expectation values of random variables on finite sets\n\n## How?\n\nThis is best explained with an example:\n\n```\n# import the objects\nfrom random_variable import RandomVariable, E\n \n# define a universe for example the possible outcomes of a dice\ndice = [1, 2, 3, 4, 5, 6]\n\n# define one random variable\nX = RandomVariable(dice)\n\n# compute and print expectation values\nprint('mean:', E[X])\nprint('one minus mean:', E[1-X])\nprint('twice the mean:', E[X*2])\nprint('variance:', E[(X-E[X])**2])\nprint('variance again:', E[X**2]-E[X]**2)\nprint('standard deviation:', (E[X**2]-E[X]**2)**0.5)\nprint('skewness:', E[(X-E[X])**3]/E[(X-E[X])**2]**1.5)\nprint('kurtosis:', E[(X-E[X])**4]/E[(X-E[X])**2]**2)\nprint('some other complex expectation value:', E[sin(2*X)*cos(X+1)])\n```\n\n(works in both python 2 and python 3)\n\n## License\n\nBSD v3 - Created by Prof. Massimo Di Pierro (DePaul Universty) 2018", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mdipierro/random_variable", "keywords": "expectation values random variables", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "random-variable", "package_url": "https://pypi.org/project/random-variable/", "platform": "", "project_url": "https://pypi.org/project/random-variable/", "project_urls": { "Homepage": "https://github.com/mdipierro/random_variable" }, "release_url": "https://pypi.org/project/random-variable/0.2/", "requires_dist": null, "requires_python": "", "summary": "A library for computing expectation values", "version": "0.2" }, "last_serial": 3714647, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "6ce3b70b3a56be4d1d44a56f760bff79", "sha256": "e1fcbf6f0a93d3caa6513c398e344f31a242c74dec91e528e1e525dc1b73c20c" }, "downloads": -1, "filename": "random_variable-0.2.tar.gz", "has_sig": false, "md5_digest": "6ce3b70b3a56be4d1d44a56f760bff79", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2019, "upload_time": "2018-03-28T17:57:36", "url": "https://files.pythonhosted.org/packages/23/d0/f12a19d410438753f30f58ea22ad5ce8315322eb6ee18d146167b18e3acf/random_variable-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6ce3b70b3a56be4d1d44a56f760bff79", "sha256": "e1fcbf6f0a93d3caa6513c398e344f31a242c74dec91e528e1e525dc1b73c20c" }, "downloads": -1, "filename": "random_variable-0.2.tar.gz", "has_sig": false, "md5_digest": "6ce3b70b3a56be4d1d44a56f760bff79", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2019, "upload_time": "2018-03-28T17:57:36", "url": "https://files.pythonhosted.org/packages/23/d0/f12a19d410438753f30f58ea22ad5ce8315322eb6ee18d146167b18e3acf/random_variable-0.2.tar.gz" } ] }