{"id":22974159,"url":"https://github.com/diversen/zscore-probability","last_synced_at":"2025-04-02T07:25:08.226Z","repository":{"id":57406678,"uuid":"393007933","full_name":"diversen/zscore-probability","owner":"diversen","description":"The following functions calculate probability from a z-score and z-score from a probability. ","archived":false,"fork":false,"pushed_at":"2021-08-08T09:32:40.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T16:57:01.021Z","etag":null,"topics":["z-score","z-table"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diversen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-05T10:57:26.000Z","updated_at":"2021-08-08T09:32:19.000Z","dependencies_parsed_at":"2022-09-26T18:00:40.143Z","dependency_job_id":null,"html_url":"https://github.com/diversen/zscore-probability","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fzscore-probability","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fzscore-probability/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fzscore-probability/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fzscore-probability/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diversen","download_url":"https://codeload.github.com/diversen/zscore-probability/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246771744,"owners_count":20831094,"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":["z-score","z-table"],"created_at":"2024-12-15T00:00:24.871Z","updated_at":"2025-04-02T07:25:08.201Z","avatar_url":"https://github.com/diversen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zscore-probability\n\nThe following functions calculate probability from a z-score and z-score from a probability. \n\n## Install\n\nnpm install --save zscore-probability\n\nSee [test.js](test.js) for a couple of examples. \n\n## About the code\n\nFound on [https://stackoverflow.com/a/36903699/464549](https://stackoverflow.com/a/36903699/464549)\n\nOriginal code comments: \n\n    The following JavaScript functions for calculating normal and\n    chi-square probabilities and critical values were adapted by\n    John Walker from C implementations\n    written by Gary Perlman of Wang Institute, Tyngsboro, MA\n    01879.  Both the original C code and this JavaScript edition\n    are in the public domain.  */\n\n    POZ  --  probability of normal z value\n\n    Adapted from a polynomial approximation in:\n            Ibbetson D, Algorithm 209\n            Collected Algorithms of the CACM 1963 p. 616\n    Note:\n            This routine has six digit accuracy, so it is only useful for absolute\n            z values \u003c= 6.  For z values \u003e to 6.0, poz() returns 0.0.\n\n    CRITZ  --  Compute critical normal z value to\n               produce given p.  We just do a bisection\n               search for a value within CHI_EPSILON,\n               relying on the monotonicity of pochisq().\n\n## License\n\nMIT © [Dennis Iversen](https://github.com/diversen)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiversen%2Fzscore-probability","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiversen%2Fzscore-probability","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiversen%2Fzscore-probability/lists"}