This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# latest-Vivaldi Version 1.6.6 | |
# This script will find the latest Vivaldi binary package, download it | |
# and repackage it into Slackware format. | |
# Copyright 2019 Ruari Oedegaard, Oslo, Norway All rights reserved. | |
# | |
# Redistribution and use of this script, with or without modification, | |
# is permitted provided that the following conditions are met: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scipy.special | |
import scipy.stats | |
def binomial_limit(n, k, sigma=1): | |
""" | |
Calculates the upper and lower limit for the probability p of a binomial distribution | |
if an experiment yielded k successes for n trials. | |
The confidence level for the limits is given in sigmas of the gaussian distribution. | |
In contrast to other methods (see https://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval), | |
this method is exact in the sense that there is no approximation involved for the binomial distribution. |