Skip to content

Instantly share code, notes, and snippets.

View MarkusPrim's full-sized avatar

Markus Prim MarkusPrim

  • University of Bonn
  • Bonn
View GitHub Profile
@ruario
ruario / latest-vivaldi.sh
Last active June 21, 2023 22:03
This script will find the latest Vivaldi binary package, download it and repackage it into Slackware format.
#!/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:
@thomaskeck
thomaskeck / limits.py
Last active November 8, 2019 10:48
Calculate exact Binomial Limits
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.