# -*- coding: utf-8 -*-
"""
Created on Wed Jan  5 12:00:07 2022

@author: Sim
"""
import  scipy.stats as st
import numpy as np
import matplotlib.pyplot as plt

xx = [31, 29, 27, 25, 31, 30, 27, 35, 31]

st.probplot(xx,plot=plt)
ksres = st.kstest(xx,'norm', args=(np.mean(xx), np.std(xx,ddof=1)), mode='asym')
print(ksres)
shres = st.shapiro(xx)
print(shres)