"""T-test (One-sample):
Hypothesis Question: Is the mean of a sample significantly different
from a known or hypothesized population mean?
Example: Is the mean weight of a sample of students different from the
hypothesized population mean of 65 kg?"""
#Python Code:
import scipy.stats as stats
# Sample data
sample_data = [...] # Insert your sample data here
pop_mean = 65 # Hypothesized population mean
# Perform one-sample t-test
t_statistic, p_value = stats.ttest_1samp(sample_data, pop_mean)
print("t-statistic:", t_statistic)
print("P-value:", p_value)