Lower bound of Wilson score confidence interval for a Bernoulli parameter
All implementations use 95% probability.
pos is the number of positive votes, n is the total number of votes.
| #!/usr/bin/env python3 | |
| import asyncio | |
| from vpn import get_proxy | |
| proxy = port = auth = None | |
| pool = asyncio.Queue(5) | |
| psize = 0 | |
| async def process_client(client_reader, client_writer, *, CHUNK=4096): | |
| global psize |
Lower bound of Wilson score confidence interval for a Bernoulli parameter
All implementations use 95% probability.
pos is the number of positive votes, n is the total number of votes.