From af81ae4fdb79518741a949f1357bb29cf5251e07 Mon Sep 17 00:00:00 2001 From: Osuolale Emmanuel <59930570+dmarinere@users.noreply.github.com> Date: Mon, 10 Aug 2020 20:16:15 +0100 Subject: [PATCH] Update ex_ttest.py I edited bayesian --- ab_testing/ex_ttest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ab_testing/ex_ttest.py b/ab_testing/ex_ttest.py index 4afd2e54..69aaf35d 100644 --- a/ab_testing/ex_ttest.py +++ b/ab_testing/ex_ttest.py @@ -1,4 +1,4 @@ -# From the course: Bayesin Machine Learning in Python: A/B Testing +# From the course: Bayesian Machine Learning in Python: A/B Testing # https://deeplearningcourses.com/c/bayesian-machine-learning-in-python-ab-testing # https://www.udemy.com/bayesian-machine-learning-in-python-ab-testing from __future__ import print_function, division @@ -42,4 +42,4 @@ df = (s1_sq / N1 + s2_sq / N2)**2 / ( (s1_sq*s1_sq) / (N1*N1 * nu1) + (s2_sq*s2_sq) / (N2*N2 * nu2) ) p = (1 - stats.t.cdf(np.abs(t), df=df))*2 print("Manual Welch t-test") -print("t:\t", t, "p:\t", p) \ No newline at end of file +print("t:\t", t, "p:\t", p)