import numpy as np
from scipy import stats

np.random.seed(1)
heights=[180+np.random.normal(0,5) for a in range(20)]
result=stats.ttest_1samp(heights,175)
print("검정통계량: %.3f, p-value: %.3f" % result)

c5ee9b136ed50d188d44da8d69271473ece14cbb
<mask token>

<mask token>
np.random.seed(1)
<mask token>
print('검정통계량: %.3f, p-value: %.3f' % result)

<mask token>
np.random.seed(1)
heights = [(180 + np.random.normal(0, 5)) for a in range(20)]
result = stats.ttest_1samp(heights, 175)
print('검정통계량: %.3f, p-value: %.3f' % result)

import numpy as np
from scipy import stats
np.random.seed(1)
heights = [(180 + np.random.normal(0, 5)) for a in range(20)]
result = stats.ttest_1samp(heights, 175)
print('검정통계량: %.3f, p-value: %.3f' % result)

import numpy as np
from scipy import stats

np.random.seed(1)
heights=[180+np.random.normal(0,5) for a in range(20)]
result=stats.ttest_1samp(heights,175)
print("검정통계량: %.3f, p-value: %.3f" % result)
