{"id":17358309,"url":"https://github.com/yymao/tracywidom","last_synced_at":"2025-06-19T02:37:17.932Z","repository":{"id":60723473,"uuid":"326048260","full_name":"yymao/TracyWidom","owner":"yymao","description":"Generate the Tracy-Widom distribution functions for beta = 1, 2, or 4 in Python","archived":false,"fork":false,"pushed_at":"2025-03-15T21:37:13.000Z","size":38,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-17T21:23:39.187Z","etag":null,"topics":["probability-distribution","python","random-matrix-theory","tracy-widom"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yymao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-01-01T20:09:26.000Z","updated_at":"2025-06-14T11:44:36.000Z","dependencies_parsed_at":"2025-04-15T00:10:51.921Z","dependency_job_id":null,"html_url":"https://github.com/yymao/TracyWidom","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/yymao/TracyWidom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yymao%2FTracyWidom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yymao%2FTracyWidom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yymao%2FTracyWidom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yymao%2FTracyWidom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yymao","download_url":"https://codeload.github.com/yymao/TracyWidom/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yymao%2FTracyWidom/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260673693,"owners_count":23044990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["probability-distribution","python","random-matrix-theory","tracy-widom"],"created_at":"2024-10-15T19:05:05.326Z","updated_at":"2025-06-19T02:37:12.914Z","avatar_url":"https://github.com/yymao.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TracyWidom\n\n[![Conda Version](https://img.shields.io/conda/vn/conda-forge/tracywidom.svg)](https://anaconda.org/conda-forge/tracywidom)\n[![PyPI Version](https://img.shields.io/pypi/v/TracyWidom.svg)](https://pypi.python.org/pypi/TracyWidom)\n\nProviding the Tracy-Widom distribution functions for beta = 1, 2, or 4 in Python.\n\nThis package uses the interpolation tables in \n\n- Bejan, Andrei Iu. (2005), Largest eigenvalues and sample covariance matrices. Tracy–Widom and Painleve II: Computational aspects and realization in S-Plus with applications, M.Sc. dissertation, Department of Statistics, The University of Warwick.\n\nand the asymptotics in\n\n- Borot, Gaëtan and Nadal, Céline (2012), Right tail expansion of Tracy-Widom beta laws, Random Matrices: Theory and Applications Vol. 01, No. 03, 1250006. ([arXiv:1111.2761](https://arxiv.org/abs/1111.2761))\n\nThis package is MIT licensed. If you use this package in your work, please consider citing the above publications and listing the URL of this package (`https://github.com/yymao/TracyWidom/`). \n\n\n## Installation\n\nYou can install `tracywidom` via conda or pip:\n\n```bash\n# Install via conda with the conda-forge channel\nconda install tracywidom --channel conda-forge\n\n# Or, install via pip\npip install tracywidom\n```\n\n## Example\n\nHere's an example of using the `TracyWidom` package.\n\n```python\nimport numpy as np\nfrom TracyWidom import TracyWidom\n\nx = np.linspace(-10, 10, 101)\ntw1 = TracyWidom(beta=1)  # allowed beta values are 1, 2, and 4\npdf = tw1.pdf(x)\ncdf = tw1.cdf(x)\n\nr = np.random.rand(1000)\ntw1_sample = tw1.cdfinv(r)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyymao%2Ftracywidom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyymao%2Ftracywidom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyymao%2Ftracywidom/lists"}