Re: How to derive Covariance of Dirichlet distirubtion from its variance
Robert Kern <[email protected]> Mon, 18 Dec 2023 15:37:47 -0500
| Newsgroups | gmane.comp.python.scientific.devel |
|---|---|
| Message-ID | <CAF6FJisVrK9vHJ3OMJOcAJiNt4G+T-XE85D2GJSDzQh9m=Nkrw@mail.gmail.com> |
We don't expose it, but here is a reference for the formula: https://www.statlect.com/probability-distributions/Dirichlet-distribution#hid10 On Mon, Dec 18, 2023 at 3:30 PM marc nicole <[email protected]> wrote: > Hello, > > Using the Dirichlet class I can obtain the variance of an array using > > from scipy.stats import dirichletalpha = np.array([0.4, 5, 15*]) > *dirichlet.var(alpha) > > BUT how to derive the covariance? > thanks. > _______________________________________________ > SciPy-Dev mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/scipy-dev.python.org/ > Member address: [email protected] > -- Robert Kern _______________________________________________ SciPy-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/scipy-dev.python.org/ Member address: [email protected]