Re: Covariance matrix syntax

2020-10-24 Thread Greg Ewing
On 25/10/20 4:49 am, Meghna Karkera wrote: Is there any syntax for covariance which uses the unbiased formula (yi-ymean)*(yj-ymean) /n...Monte Carlo method I think you have "biased" and "unbiased" backwards. The formula with n-1 is used when you want to calculate an *unbiased* estimate for a po

Re: Covariance matrix syntax

2020-10-24 Thread Marco Sulla
If you read the documentation, there's a `bias` bool parameter. -- https://mail.python.org/mailman/listinfo/python-list

Re: Covariance matrix syntax

2020-10-24 Thread Meghna Karkera
Is there any syntax for covariance which uses the unbiased formula (yi-ymean)*(yj-ymean) /n...Monte Carlo method On Sat, Oct 24, 2020, 21:11 Meghna Karkera wrote: > Dear Sir > > Now I figured out why there was a difference when I manually computed > covariance and when I use the np. cov syntax i

Re: Covariance matrix syntax

2020-10-24 Thread Meghna Karkera
Dear Sir Now I figured out why there was a difference when I manually computed covariance and when I use the np. cov syntax in python. The formula I used was ((yi-ymean)(yj-ymean))/n...unbiasdness. The formula np.cov uses is ((yi-ymean)(yj-ymean)) /n-1. Thanks Sincerely Meghna Raviraj Karkera

Re: Covariance matrix syntax

2020-10-19 Thread Markos
Hi Meghna, I organized some tutorials about Machine Learning for Chemistry with Python. Where you can find some info about the use of Covariance Matrix that may help you. The originals are in Portugueese, but you can read using Google Translator: https://tinyurl.com/yybazx9n https://tinyurl

Re: Covariance matrix syntax

2020-10-18 Thread Christian Gollwitzer
Am 19.10.20 um 07:23 schrieb Meghna Karkera: I am unable to find the *formula for covariance* used in np.cov syntax in PYTHON given in link https://numpy.org/doc/stable/reference/generated/numpy.cov.html. Could you please help me out. As said, you should click on the link [source] just at the

Re: Covariance matrix syntax

2020-10-18 Thread Meghna Karkera
Dear Sir I am unable to find the *formula for covariance* used in np.cov syntax in PYTHON given in link https://numpy.org/doc/stable/reference/generated/numpy.cov.html. Could you please help me out. Thanks Meghna On Tue, Oct 13, 2020 at 11:46 AM Christian Gollwitzer wrote: > Am 13.10.20 um 06

Re: Covariance matrix syntax

2020-10-13 Thread Bruno P. Kinoshita via Python-list
I think the np.cov is from the numpy module (imported/aliased as np?). If so, the numpy repository should have what you are looking for: https://github.com/numpy/numpy/blob/156cd054e007b05d4ac4829e10a369d19dd2b0b1/numpy/lib/function_base.py#L2276 Hope that helps Bruno On Tuesday, 13 October

Re: Covariance matrix syntax

2020-10-12 Thread Christian Gollwitzer
Am 13.10.20 um 06:52 schrieb Meghna Karkera: Could you let me know what is the back end calculation of this covariance matrix syntax np.cov You can look it up yourself: Go to the docs https://numpy.org/doc/stable/reference/generated/numpy.cov.html At the right hand side, just right of the fun

Re: Covariance matrix syntax

2020-10-12 Thread Meghna Karkera
Could you let me know what is the back end calculation of this covariance matrix syntax np.cov On Tue, Oct 13, 2020, 10:14 Bruno P. Kinoshita wrote: > I think the np.cov is from the numpy module (imported/aliased as np?). > > If so, the numpy repository should have what you are looking for: > >