https://raw.githubusercontent.com/MatthewReid854/reliability/master/docs/images/logo.png

one_sample_proportion

class reliability.Reliability_testing.one_sample_proportion(trials=None, successes=None, CI=0.95, print_results=True)

Calculates the upper and lower bounds of reliability for a given number of trials and successes.

Parameters:
  • trials (int) – The number of trials which were conducted.

  • successes (int) – The number of trials which were successful.

  • CI (float, optional) – The desired confidence interval. Must be between 0 and 1. Default = 0.95 for 95% CI.

  • print_results (bool, optional) – If True the results will be printed to the console. Default = True.

Returns:

limits (tuple) – The confidence interval limits in the form (lower,upper).