Search⌘ K
AI Features

Paired t-Test

Explore how to use the paired t-test to compare means of the same sample at two time points. Understand hypothesis setting, significance levels, and interpretation of p-values to test if performance differences are statistically significant.

We'll cover the following...

Paired t-test

A paired t-test checks whether the means of the same sample differ at two different times. We can use the function ttest_rel from the scipy.stats module to perform the paired t-test.

We will check the mean of grades for two exams, G1 and G3. G1 is the result of the exam after the first quarter and G3 is the result of exam at the end of the year. We will check if the mean grades differ for the same sample at different times.

Null hypothesis H0H_0: x1ˉ=x2ˉ\bar{x_1} = \bar{x_2} ...