Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
1162 views
�
��!^c@sLd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZdS(	cCsEd}d}d}x"|D]}||7}|d7}qW||}|S(Nii((tlstavgtsum0tcounterti((smy_statistics.pytmeans


cCs{|j�t|�ddkr]|tt|�d�d|tt|�d�d}n|tt|�d�}|S(Niii(tsorttlentint(RtMedian((smy_statistics.pytmedians

=cCs_d}d}x>|D]6}|dkr)dSt|�}||9}|d7}qW|d|}|S(Niis!the list contains negative values(tabs(RtmultiRRtGeometric_mean((smy_statistics.pytgeometric_means

c
Csad}d}|j�x7|D]/}|d7}||krF|d7}q|}qW||kr`dSd|td|�dkr�td|d�}n
d|}d|td|�dkr�td|d�}ntd|�}d|td|�dkrtd|d�}n
d|}|}	||kr9dS||krIdS||krYd	Sd
SdS(Niis$the value entered is not in the listg�?g�?g�?sin the 25th percentilesin the 50th percentilesin the 75th percentilesin the 100th percentile(RR(
Rtls1tNtnRtctn25thtn50thtn75thtn100th((smy_statistics.pyt
percentiles6






cCs$|j�t|�t|�}|S(N(Rtmaxtmin(RtR((smy_statistics.pyt
data_rangeCs
cCsSt|�}d}x&|D]}||t|�d7}qW||}|d}|S(Niig�?(RR(Rtmtsum1Rtvartstd((smy_statistics.pytvarianceHs


cCsSt|�}d}x&|D]}||t|�d7}qW||}|d}|S(Niig�?(RR(RRRRRR((smy_statistics.pyRQs


cCs�d}i}xu|D]m}x'|D]}||kr |d7}q q W||dkr`|d}ni||6}|j|�d}qW|S(Nii(tupdate(Rtcountt	FreqTabletxRtdic((smy_statistics.pytFrequency_TablesZs





N(RR
RRRR RR&(((smy_statistics.pyt<module>s	
			$