From 564f10aabf3253eb0ba286b12ec0da9fc218a50b Mon Sep 17 00:00:00 2001 From: Alina Quereilhac Date: Mon, 6 Oct 2014 20:57:10 +0200 Subject: [PATCH] small modification to th experiment runner --- src/nepi/execution/runner.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/nepi/execution/runner.py b/src/nepi/execution/runner.py index 0afc7308..2a78be06 100644 --- a/src/nepi/execution/runner.py +++ b/src/nepi/execution/runner.py @@ -130,12 +130,15 @@ class ExperimentRunner(object): std = x.std() se = std / math.sqrt(n) m = x.mean() - se95 = se * 2 + + # confidence interval for 95% confidence level. + # Asuming samples are normally distributed + ci95 = se * 2 - ec.logger.info(" RUN %d - SAMPLES %d MEAN %.2f STD %.2f SE95%% %.2f \n" % ( - run, n, m, std, se95 ) ) + ec.logger.info(" RUN %d - SAMPLES %d MEAN %.2f STD %.2f CI (95%%) %.2f \n" % ( + run, n, m, std, ci95 ) ) - return m * 0.05 >= se95 + return m * 0.05 >= ci95 def run_experiment(self, filepath, wait_time, wait_guids): ec = ExperimentController.load(filepath) -- 2.43.0