"""T-test (Paired Samples):
Hypothesis Question: Are the means of two paired samples significantly different
from each other?
Example: Is there a significant difference in the pre-test and post-test
scores of students?"""
#Python Code:
import scipy.stats as stats
# Sample data for pre-test and post-test scores
pre_test = [...] # Insert data for pre-test scores
post_test = [...] # Insert data for post-test scores
# Perform paired samples t-test
t_statistic, p_value = stats.ttest_rel(pre_test, post_test)
print("t-statistic:", t_statistic)
print("P-value:", p_value)