python-stats 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
py_stats/__init__.py ADDED
@@ -0,0 +1,182 @@
1
+ """
2
+ py-stats: A comprehensive Python statistics package
3
+
4
+ This package provides over 60 statistical functions for both univariate
5
+ and multivariate analysis, similar to those found on scientific calculators.
6
+ """
7
+
8
+ from .univariate import (
9
+ # Means
10
+ arithmetic_mean,
11
+ harmonic_mean,
12
+ geometric_mean,
13
+ quadratic_mean,
14
+
15
+ # Central tendency
16
+ median,
17
+ mode,
18
+ midrange,
19
+ trimean,
20
+
21
+ # Quantiles
22
+ quartiles,
23
+ hinges,
24
+ quantile,
25
+
26
+ # Dispersion
27
+ variance,
28
+ standard_deviation,
29
+ average_deviation,
30
+ median_absolute_deviation,
31
+
32
+ # Shape
33
+ skewness,
34
+ kurtosis,
35
+
36
+ # Specialized
37
+ angular_mean,
38
+ running_average,
39
+ weighted_average,
40
+ standard_error_mean,
41
+
42
+ # Robust statistics
43
+ winsorized_mean,
44
+ trimmed_mean,
45
+ interquartile_range,
46
+ range_value,
47
+ coefficient_of_variation,
48
+
49
+ # Order statistics
50
+ percentile_rank,
51
+ deciles,
52
+ percentile,
53
+
54
+ # Shape and distribution
55
+ coefficient_of_skewness,
56
+ coefficient_of_kurtosis,
57
+ simple_normality_test,
58
+
59
+ # Central tendency alternatives
60
+ winsorized_median,
61
+ midhinge,
62
+
63
+ # Probability and distribution
64
+ z_score,
65
+ t_score,
66
+ percentile_from_z_score,
67
+ confidence_interval_mean,
68
+ confidence_interval_proportion,
69
+
70
+ # Time series
71
+ moving_average,
72
+ exponential_smoothing,
73
+ seasonal_decomposition_simple,
74
+ )
75
+
76
+ from .multivariate import (
77
+ # Correlation
78
+ pearson_correlation,
79
+ q_correlation,
80
+ spearman_correlation,
81
+ kendall_tau,
82
+ point_biserial_correlation,
83
+
84
+ # Covariance
85
+ covariance,
86
+
87
+ # Regression
88
+ linear_regression,
89
+ multiple_linear_regression,
90
+ polynomial_regression,
91
+ residual_analysis,
92
+
93
+ # Sums
94
+ sum_xx,
95
+ sum_yy,
96
+ sum_xy,
97
+
98
+ # Association measures
99
+ chi_square_test,
100
+ cramers_v,
101
+ contingency_coefficient,
102
+ )
103
+
104
+ __version__ = "2.0.0"
105
+ __author__ = "Your Name"
106
+ __email__ = "your.email@example.com"
107
+
108
+ __all__ = [
109
+ # Univariate functions
110
+ "arithmetic_mean",
111
+ "harmonic_mean",
112
+ "geometric_mean",
113
+ "quadratic_mean",
114
+ "median",
115
+ "mode",
116
+ "midrange",
117
+ "trimean",
118
+ "quartiles",
119
+ "hinges",
120
+ "quantile",
121
+ "variance",
122
+ "standard_deviation",
123
+ "average_deviation",
124
+ "median_absolute_deviation",
125
+ "skewness",
126
+ "kurtosis",
127
+ "angular_mean",
128
+ "running_average",
129
+ "weighted_average",
130
+ "standard_error_mean",
131
+
132
+ # Robust statistics
133
+ "winsorized_mean",
134
+ "trimmed_mean",
135
+ "interquartile_range",
136
+ "range_value",
137
+ "coefficient_of_variation",
138
+
139
+ # Order statistics
140
+ "percentile_rank",
141
+ "deciles",
142
+ "percentile",
143
+
144
+ # Shape and distribution
145
+ "coefficient_of_skewness",
146
+ "coefficient_of_kurtosis",
147
+ "simple_normality_test",
148
+
149
+ # Central tendency alternatives
150
+ "winsorized_median",
151
+ "midhinge",
152
+
153
+ # Probability and distribution
154
+ "z_score",
155
+ "t_score",
156
+ "percentile_from_z_score",
157
+ "confidence_interval_mean",
158
+ "confidence_interval_proportion",
159
+
160
+ # Time series
161
+ "moving_average",
162
+ "exponential_smoothing",
163
+ "seasonal_decomposition_simple",
164
+
165
+ # Multivariate functions
166
+ "pearson_correlation",
167
+ "q_correlation",
168
+ "spearman_correlation",
169
+ "kendall_tau",
170
+ "point_biserial_correlation",
171
+ "covariance",
172
+ "linear_regression",
173
+ "multiple_linear_regression",
174
+ "polynomial_regression",
175
+ "residual_analysis",
176
+ "sum_xx",
177
+ "sum_yy",
178
+ "sum_xy",
179
+ "chi_square_test",
180
+ "cramers_v",
181
+ "contingency_coefficient",
182
+ ]