diff options
Diffstat (limited to 'gnu/packages/statistics.scm')
-rw-r--r-- | gnu/packages/statistics.scm | 88 |
1 files changed, 70 insertions, 18 deletions
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index bcbd0f30f7..e685cdf4a5 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -468,6 +468,63 @@ publication-quality data plots. A large amount of 3rd-party packages are available, greatly increasing its breadth and scope.") (license license:gpl3+))) +(define-public python-dcor + (package + (name "python-dcor") + (version "0.6") + (source + (origin + (method url-fetch) + (uri (pypi-uri "dcor" version)) + (sha256 + (base32 "0cc4an2p3ifm62d50w5h83myyhck6vcnrgp691rpid0x21v9glzm")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list "-k" (string-join + ;; TODO: Report upstream, failing with NumPy deprecation + ;; warning and errors: + ;; AttributeError: 'numpy.ndarray' object has no attribute '_array'. + ;; AttributeError: module 'numpy' has no attribute 'bool'. + (list "not test_u_v_statistics" + "test_same_distribution_different_means" + "test_same_distribution_same_parameters" + "test_independent_variables" + "test_same_variable") + " and not ") + "dcor/tests"))) + (native-inputs + (list python-pytest + python-setuptools-next)) + (propagated-inputs + (list python-joblib + python-numba + python-numpy + python-scipy)) + (home-page "https://dcor.readthedocs.io/") + (synopsis "Distance correlation and related E-statistics in Python") + (description + "@code{dcor} is distance correlation and energy statistics in Python. + +E-statistics are functions of distances between statistical observations in +metric spaces. Distance covariance and distance correlation are dependency +measures between random vectors introduced in +@url{https://github.com/vnmabus/dcor#srb07,[SRB07]} with a simple E-statistic +estimator. + +This package offers functions for calculating several E-statistics such as: + +@itemize +@item estimator of the energy distance +@url{https://github.com/vnmabus/dcor#sr13,[SR13]} +@item biased and unbiased estimators of distance covariance and distance +correlation @url{https://github.com/vnmabus/dcor#srb07,[SRB07]} +@item estimators of the partial distance covariance and partial distance +covariance @url{https://github.com/vnmabus/dcor#sr14,[SR14]} +@end itemize") + (license license:expat))) + (define-public python-dynesty (package (name "python-dynesty") @@ -1272,13 +1329,13 @@ sampler for Markov chain Monte Carlo (MCMC).") (define-public python-statsmodels (package (name "python-statsmodels") - (version "0.14.2") + (version "0.14.4") (source (origin (method url-fetch) (uri (pypi-uri "statsmodels" version)) (sha256 - (base32 "1bfnxkzdcz5fj7hh1gc021hc3b9181f1mfph4kd1ra6kg8a501c9")) + (base32 "0rwbi57ckg7hgrmdf0g1paqcvp5n6f06xfzrcz075p30j3ry0sax")) (modules '((guix build utils))) (snippet '(for-each delete-file (find-files "." "\\.c$"))))) @@ -1302,21 +1359,16 @@ sampler for Markov chain Monte Carlo (MCMC).") (string-append "import matplotlib;matplotlib.use('Agg');" line)))))))) (propagated-inputs - (list python-numpy python-packaging python-pandas python-patsy + (list python-numpy + python-packaging + python-pandas + python-patsy python-scipy)) (native-inputs - (list python-colorama - python-cython - python-flake8 - python-isort - python-joblib + (list python-cython-3 python-matplotlib - python-pytest - python-pytest-randomly - python-pytest-xdist - python-setuptools-scm - python-setuptools - python-wheel)) + python-setuptools-next + python-setuptools-scm)) (home-page (string-append "https://www.statsmodels.org/v" version "/")) (synopsis "Statistical modeling and econometrics in Python") @@ -2966,7 +3018,7 @@ functions.") (define-public python-rchitect (package (name "python-rchitect") - (version "0.4.7") + (version "0.4.8") (source (origin (method git-fetch) @@ -2975,7 +3027,7 @@ functions.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1ijbb0v77ir7j64r4r4kznv03wyc57rcqa9jnsc46476il79dcrk")))) + (base32 "0r41ad8mk7bmqsw96sizahzvz1z6cp4rpll166y0yhwdrv86nmj7")))) (build-system pyproject-build-system) (propagated-inputs (list python-cffi python-packaging python-six)) (native-inputs (list python-pytest @@ -2996,7 +3048,7 @@ main use is as the driver for radian, the R console.") (define-public python-radian (package (name "python-radian") - (version "0.6.13") + (version "0.6.15") (source (origin (method git-fetch) @@ -3005,7 +3057,7 @@ main use is as the driver for radian, the R console.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0nnwgvifhsxdac7rr9d2zspc97xx0vyzxn1v9g4bnm9061rragc3")))) + (base32 "089ys59cnw5l5k0656arhn805j8pkw21q4qf7gq9p9hifi1lpnpm")))) (build-system pyproject-build-system) (arguments (list |