# -*- coding: utf-8 -*-
"""
Created on Wed Jan  5 11:49:57 2022

@author: Sim
"""

import  scipy.stats as st
import numpy as np
import matplotlib.pyplot as plt

xx = [20, 11, 13, 14, 5, 7, 6, 15, 1, 0, 11, 9, 21, 9, 13, 7, 6, 11]

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)