#!/usr/bin/env python
# coding: utf-8
# In[ ]:
import statistics as s
# In[3]:
s.mean(range(3))
#(0+1+2)/3
# In[7]:
s.median(range(4))
#clcoding.com
# In[8]:
s.median_low(range(4))
# In[9]:
s.median_high(range(4))
# In[10]:
s.median_grouped(range(4))
# In[12]:
s.mode(list(range(4))+[2])
# In[14]:
s.pstdev(list(range(4))+[2])
# In[15]:
s.stdev(list(range(4))+[2])
# In[16]:
s.pvariance(list(range(4))+[2])
# In[17]:
s.variance(list(range(4))+[2])
# In[ ]:
0 Comments:
Post a Comment