Question 5 Implement Following Statistical Formula Computing Returning T Test Metric T Two Q43828861
python

QUESTION 5 Implement the following statistical formula for computing and returning the t-test metric, t, for two populations, x1 and x2 with the function signature t_test( x1, x2), where X1 – 2 S1 + 52 Vnin2 • 1 and 2 are the means of the X1 and x2 datasets • Si and $2 are the sample variances of the X and X2 datasets .n and n2 are the number of elements of the X1 and X2 datasets Hint: statistics.mean() , statistics. variance(). Examples: >>> xla = [10, 20, 30, 40, 50] >>> x2a = [1, 29, 46, 78, 99] >>> x1b = [5, 20, 40, 80, 100, 120] >>> x2b = [1, 29, 46, 78, 99] >>> t_test( x1a, x2a) -1.0978901230374791 >>> t_test( x1b, x2b) 0.39951781246832857 Show transcribed image text QUESTION 5 Implement the following statistical formula for computing and returning the t-test metric, t, for two populations, x1 and x2 with the function signature t_test( x1, x2), where X1 – 2 S1 + 52 Vnin2 • 1 and 2 are the means of the X1 and x2 datasets • Si and $2 are the sample variances of the X and X2 datasets .n and n2 are the number of elements of the X1 and X2 datasets Hint: statistics.mean() , statistics. variance(). Examples: >>> xla = [10, 20, 30, 40, 50] >>> x2a = [1, 29, 46, 78, 99] >>> x1b = [5, 20, 40, 80, 100, 120] >>> x2b = [1, 29, 46, 78, 99] >>> t_test( x1a, x2a) -1.0978901230374791 >>> t_test( x1b, x2b) 0.39951781246832857
Expert Answer
Answer to QUESTION 5 Implement the following statistical formula for computing and returning the t-test metric, t, for two populat…
OR