假设检验
人体温度是否符合正态分布
import pandas as pd
import numpy as np
import os
from scipy import stats
data = pd.read_csv('/Users/huangqiankun/Downloads/test.csv')
data.Temperature.describe()
ks_test = stats.kstest(data['Temperature'], 'norm')
print('ks_test', ks_test)
ks_test KstestResult(statistic=1.0, pvalue=0.0)
人体体温的总体均值是否为98.6华氏度
mean = data.Temperature.mean()
print(mean)
98.24923076923076
来源:CSDN
作者:yxjwhhhh
链接:https://blog.csdn.net/yxjwhhhh/article/details/104041125