Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions