class reliability.Reliability_testing.two_proportion_test

Calculates whether the difference in test results between two samples is statistically significant. For example, assume we have a poll of respondents in which 27/40 people agreed, and another poll in which 42/80 agreed. This test will determine if the difference is statistically significant for the given sample sizes at the specified confidence level.

inputs: sample_1_trials - number of trials in the first sample sample_1_successes - number of successes in the first sample sample_2_trials - number of trials in the second sample sample_2_successes - number of successes in the second sample CI - desired confidence interval. Defaults to 0.95 for 95% CI. print_results - if True the results will be printed to the console.

returns: lower,upper,result - lower and upper are bounds on the difference. If the bounds do not include 0 then it is a statistically significant difference.