{"id":21995691,"url":"https://github.com/tohtsky/bayesian-binomial-test","last_synced_at":"2026-04-17T01:02:48.395Z","repository":{"id":38239261,"uuid":"499824409","full_name":"tohtsky/bayesian-binomial-test","owner":"tohtsky","description":"Simple Bayesian A/B testing utility made with Rust + WebAssembly and Vue.js","archived":false,"fork":false,"pushed_at":"2022-06-08T15:03:47.000Z","size":819,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-10T08:33:07.617Z","etag":null,"topics":["bayesian-statistics","wasm-bindgen"],"latest_commit_sha":null,"homepage":"https://tohtsky.github.io/bayesian-binomial-test/","language":"Rust","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/tohtsky.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":"2022-06-04T12:48:28.000Z","updated_at":"2022-09-04T06:57:58.000Z","dependencies_parsed_at":"2022-08-24T05:50:51.957Z","dependency_job_id":null,"html_url":"https://github.com/tohtsky/bayesian-binomial-test","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tohtsky/bayesian-binomial-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tohtsky%2Fbayesian-binomial-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tohtsky%2Fbayesian-binomial-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tohtsky%2Fbayesian-binomial-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tohtsky%2Fbayesian-binomial-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tohtsky","download_url":"https://codeload.github.com/tohtsky/bayesian-binomial-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tohtsky%2Fbayesian-binomial-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31910584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bayesian-statistics","wasm-bindgen"],"created_at":"2024-11-29T21:18:10.695Z","updated_at":"2026-04-17T01:02:48.355Z","avatar_url":"https://github.com/tohtsky.png","language":"Rust","readme":"# Bayesian binomial test using WebAssembly\n\n[**Demo**](https://tohtsky.github.io/bayesian-binomial-test/)\n\n\nA/B test significance judgement using bayesian beta-binomial distribution is simple. In Python, we can do that like:\n```python\nimport numpy as np\n\nalpha_prior = 1.0\nbeta_prior = 1.0\n\nn_events_a = 100\nn_success_a = 30\n\nn_events_b = 10\nn_success_b = 5\n\nn_samples = 10000\n\nrng = np.random.default_rng(0)\n\nposterior_a = rng.beta(alpha_prior + n_success_a, beta_prior + n_events_a - n_success_a, size=n_samples)\nposterior_b = rng.beta(alpha_prior + n_success_b, beta_prior + n_events_b - n_success_b, size=n_samples)\n\n# 0.90576\n(posterior_a \u003c posterior_b).mean()\n```\n\nThis simple demo visualizes the Bayesian binomial test, using Rust + WebAssembly to sample from the posterior distribution (obviously overkill, but fun).\n\nThis should work off-line. Get a single HTML file from [the latest release](https://github.com/tohtsky/bayesian-binomial-test/releases/latest).\n\nA similar application that influcend this project can be found [here](https://making.lyst.com/bayesian-calculator/).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftohtsky%2Fbayesian-binomial-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftohtsky%2Fbayesian-binomial-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftohtsky%2Fbayesian-binomial-test/lists"}