| Server IP : 121.121.20.254 / Your IP : 216.73.217.141 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Python315/Lib/__pycache__/ |
Upload File : |
R
>lqjv� c �r ` � Q^ sj. s Q s, Q_Ns] PHs] PHs] PHs] PHs] QHGs ] QH$G
s
] QH,GsG
s
GsGs ] QH@GsGs ] QHGsGsGsGsGsGsGsGsGs ] QHGsGsGsGsG s G!s!G"s"G#s#G$s$G%s% ] Q H�G's' ] Q
H�G)s) ] QH�G+s+G,s,G-s- \ Q2 s.\ \2 s/\s0 Q
Q\12 s2Q s3Q`Q ks4Q s5Q`Q ks6Q s7Q s8Q s9QaQ ks:Q s;Q s<Q`Q ks=Q`Q ks>Q`Q ks?Q`Q ks@Q sAQQ-Q ksB\, Q Qb2 sCQ!P
-Q" ksD- sEQ# sF\F Q$Q%2 Q& 2 sG\F Q'2 Q( 2 sH\F Q)2 Q* 2 sI\F Q+Q,2 Q- 2 sJ\F Q.2 Q/ 2 sK\F Q0Q12 Q2 2 sLQcQ3 ksMQ4 sN\F Q5Q62 Q7 2 sOQ8 sP\F Q92 Q: 2 sQ\F Q;2 Q< 2 sR?F?G?H?I?J?K?L?O?Q?RQdQ=P
-Q> kksSQdQ?P-Q@ kksTQA]QQB-QC ksU QD Q2 sVQE sWQ`QF ksXQG sYQH sZQI s[QJ s\QeQK ks]QLPQMP
QNQOQP]-QQ QR kks^QS QT ks_]\O� O� * ]* sb\ ] j QU QV kscQW QX ksdQY seQZ Q[ ksfQ\ sg ] Q]CH�Ggsg P! \i c P! h 9 h)fa�
Basic statistics module.
This module provides functions for calculating statistics of data, including
averages, variance, and standard deviation.
Calculating averages
--------------------
================== ==================================================
Function Description
================== ==================================================
mean Arithmetic mean (average) of data.
fmean Fast, floating-point arithmetic mean.
geometric_mean Geometric mean of data.
harmonic_mean Harmonic mean of data.
median Median (middle value) of data.
median_low Low median of data.
median_high High median of data.
median_grouped Median, or 50th percentile, of grouped data.
mode Mode (most common value) of data.
multimode List of modes (most common values of data).
quantiles Divide data into intervals with equal probability.
================== ==================================================
Calculate the arithmetic mean ("the average") of data:
>>> mean([-1.0, 2.5, 3.25, 5.75])
2.625
Calculate the standard median of discrete data:
>>> median([2, 3, 4, 5])
3.5
Calculate the median, or 50th percentile, of data grouped into class intervals
centred on the data values provided. E.g. if your data points are rounded to
the nearest whole number:
>>> median_grouped([2, 2, 3, 3, 3, 4]) #doctest: +ELLIPSIS
2.8333333333...
This should be interpreted in this way: you have two data points in the class
interval 1.5-2.5, three data points in the class interval 2.5-3.5, and one in
the class interval 3.5-4.5. The median of these data points is 2.8333...
Calculating variability or spread
---------------------------------
================== =============================================
Function Description
================== =============================================
pvariance Population variance of data.
variance Sample variance of data.
pstdev Population standard deviation of data.
stdev Sample standard deviation of data.
================== =============================================
Calculate the standard deviation of sample data:
>>> stdev([2.5, 3.25, 5.5, 11.25, 11.75]) #doctest: +ELLIPSIS
4.38961843444...
If you have previously calculated the mean, you can pass it as the optional
second argument to the four "spread" functions to avoid recalculating it:
>>> data = [1, 2, 2, 4, 4, 4, 5, 6]
>>> mu = mean(data)
>>> pvariance(data, mu)
2.5
Statistics for relations between two inputs
-------------------------------------------
================== ====================================================
Function Description
================== ====================================================
covariance Sample covariance for two variables.
correlation Pearson's correlation coefficient for two variables.
linear_regression Intercept and slope for simple linear regression.
================== ====================================================
Calculate covariance, Pearson's correlation, and simple linear regression
for two inputs:
>>> x = [1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> y = [1, 2, 3, 1, 2, 3, 1, 2, 3]
>>> covariance(x, y)
0.75
>>> correlation(x, y) #doctest: +ELLIPSIS
0.31622776601...
>>> linear_regression(x, y) #doctest:
LinearRegression(slope=0.1, intercept=1.5)
Exceptions
----------
A single exception is defined: StatisticsError is a subclass of ValueError.
�
NormalDist�StatisticsError��Fraction)�Decimal)�compress�count�groupby�repeat)�bisect_left�bisect_right) �hypot�sqrt�fabs�exp�erfc�tau�log�fsum�sumprod)
�isfinite�isinf�pi�cos�sin�tan�cosh�asin�atan�acos)�reduce)�
itemgetter)�Counter�
namedtuple�defaultdict� @c � � \ sQ s]�sQsP! )r � )�__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__r&