Two Sample t-Test
Explore the two-sample t-test to compare means of two independent samples using Python. Learn to formulate hypotheses, perform the test with SciPy, and interpret results to determine if group differences are significant.
We'll cover the following...
We'll cover the following...
Two-sample t-test
A two-sample t-test checks whether means of two independent samples differ from each other. We can use the function ttest_ind from the scipy.stats module to perform the two-sample t-test.
We will be using the Student Alcohol Consumption Dataset. We will divide the data into two groups based on alcohol consumption. Then we will find the mean grade for both groups. We will check if the mean grades for both groups differ from each other or not.
Null hypothesis : ...