Question: 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

python

python QUESTION 5 Implement the following statistical formula for computing and returning

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!