Re: Hide my query about covariance matrix syntax from google

2023-04-14 Thread Keith Thompson
Chris Angelico  writes:
> On Fri, 14 Apr 2023 at 03:11, Meghna Karkera  wrote:
>>
>> Respected Sir
>>
>> I kindly request you to hide my query about covariance matrix syntax from
>> google which was emailed to you a few years back as it appears on google
>> page.
>>
>> Hoping that you do the needful.
>
> These posts are public. While it's possible to ask for something to be
> removed from the official python-list archive, that won't remove it
> from Google Groups or any other third-party archive.
>
> Also, there's nothing we can do here to remove your post; you'll have
> to contact the list admins.
>
> And just in case it's of interest to you:
> https://en.wikipedia.org/wiki/Streisand_effect

It's also mirrored to Usenet (comp.lang.python).  There's basically no
way to delete articles from Usenet.  (The protocol includes a command to
cancel an article, but servers ignore it due to past abuse.)

-- 
Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com
Working, but not speaking, for XCOM Labs
void Void(void) { Void(); } /* The recursive call of the void */
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hide my query about covariance matrix syntax from google

2023-04-13 Thread Chris Angelico
On Fri, 14 Apr 2023 at 03:11, Meghna Karkera  wrote:
>
> Respected Sir
>
> I kindly request you to hide my query about covariance matrix syntax from
> google which was emailed to you a few years back as it appears on google
> page.
>
> Hoping that you do the needful.

These posts are public. While it's possible to ask for something to be
removed from the official python-list archive, that won't remove it
from Google Groups or any other third-party archive.

Also, there's nothing we can do here to remove your post; you'll have
to contact the list admins.

And just in case it's of interest to you:
https://en.wikipedia.org/wiki/Streisand_effect

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Hide my query about covariance matrix syntax from google

2023-04-13 Thread Meghna Karkera
Respected Sir

I kindly request you to hide my query about covariance matrix syntax from
google which was emailed to you a few years back as it appears on google
page.

Hoping that you do the needful.

Dr. Meghna Raviraj Karkera
-- 
https://mail.python.org/mailman/listinfo/python-list


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 population given a sample of that population.

The formula with n is used when your data consists of the entire
population.

Which situation do you have?

(I think the "bias" parameter to numpy.cov is badly named, btw.
If you're using it appropriately, setting biased=True does *not*
make your result biased -- quite the contrary!)

--
Greg
--
https://mail.python.org/mailman/listinfo/python-list


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 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
>
> On Mon, Oct 19, 2020, 21:30 Markos  wrote:
>
>> 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.com/y29mule6
>>
>> https://tinyurl.com/yxtg4tce
>>
>> Best Regards,
>> Markos
>>
>> Em 19-10-2020 02:23, Meghna Karkera escreveu:
>> > 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: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 function signature, there is
>> a
>> >> link [source]. Click there and it takes you to the implementation.
>> >>
>> >> Apparently it is done in straightforward Python.
>> >>
>> >>  Christian
>> >>
>> >> PS: Snipped a lot of unrelated citation at the bottom
>> >>
>> >>> On Tue, Oct 13, 2020, 10:14 Bruno P. Kinoshita <
>> >> brunodepau...@yahoo.com.br>
>> >>> wrote:
>> >>> [...]
>> >>>> I think the np.cov is from the numpy module (imported/aliased as
>> np?).
>> >> --
>> >> https://mail.python.org/mailman/listinfo/python-list
>> >>
>>
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>>
>
-- 
https://mail.python.org/mailman/listinfo/python-list


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

On Mon, Oct 19, 2020, 21:30 Markos  wrote:

> 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.com/y29mule6
>
> https://tinyurl.com/yxtg4tce
>
> Best Regards,
> Markos
>
> Em 19-10-2020 02:23, Meghna Karkera escreveu:
> > 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: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 function signature, there is a
> >> link [source]. Click there and it takes you to the implementation.
> >>
> >> Apparently it is done in straightforward Python.
> >>
> >>  Christian
> >>
> >> PS: Snipped a lot of unrelated citation at the bottom
> >>
> >>> On Tue, Oct 13, 2020, 10:14 Bruno P. Kinoshita <
> >> brunodepau...@yahoo.com.br>
> >>> wrote:
> >>> [...]
> >>>> I think the np.cov is from the numpy module (imported/aliased as np?).
> >> --
> >> https://mail.python.org/mailman/listinfo/python-list
> >>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


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.com/y29mule6

https://tinyurl.com/yxtg4tce

Best Regards,
Markos

Em 19-10-2020 02:23, Meghna Karkera escreveu:

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: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 function signature, there is a
link [source]. Click there and it takes you to the implementation.

Apparently it is done in straightforward Python.

 Christian

PS: Snipped a lot of unrelated citation at the bottom


On Tue, Oct 13, 2020, 10:14 Bruno P. Kinoshita <

brunodepau...@yahoo.com.br>

wrote:
[...]

I think the np.cov is from the numpy module (imported/aliased as np?).

--
https://mail.python.org/mailman/listinfo/python-list



--
https://mail.python.org/mailman/listinfo/python-list


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 right hand 
side of the page, at the top. There is


numpy.cov(m, y=None, rowvar=True, bias=False, ddof=None, fweights=None, 
aweights=None)


and just next to it there is the link. It takes you there:

https://github.com/numpy/numpy/blob/v1.19.0/numpy/lib/function_base.py#L2270-L2481

Which is the source code of the function.

Best regards,

Christian



Thanks
Meghna

On Tue, Oct 13, 2020 at 11:46 AM Christian Gollwitzer 
wrote:


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 function signature, there is a
link [source]. Click there and it takes you to the implementation.

Apparently it is done in straightforward Python.

 Christian

PS: Snipped a lot of unrelated citation at the bottom


On Tue, Oct 13, 2020, 10:14 Bruno P. Kinoshita <

brunodepau...@yahoo.com.br>

wrote:
[...]

I think the np.cov is from the numpy module (imported/aliased as np?).

--
https://mail.python.org/mailman/listinfo/python-list



--
https://mail.python.org/mailman/listinfo/python-list


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: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 function signature, there is a
> link [source]. Click there and it takes you to the implementation.
>
> Apparently it is done in straightforward Python.
>
> Christian
>
> PS: Snipped a lot of unrelated citation at the bottom
>
> > On Tue, Oct 13, 2020, 10:14 Bruno P. Kinoshita <
> brunodepau...@yahoo.com.br>
> > wrote:
> > [...]
> >> I think the np.cov is from the numpy module (imported/aliased as np?).
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


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 2020, 5:38:55 pm NZDT, Meghna Karkera 
 wrote:  
 
 May I know the steps or procedure behind covariance matrix syntax,
np.cov(covar_matrix) in python
-- 
https://mail.python.org/mailman/listinfo/python-list
  
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Covariance matrix syntax

2020-10-13 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 function signature, there is a 
link [source]. Click there and it takes you to the implementation.


Apparently it is done in straightforward Python.

Christian

PS: Snipped a lot of unrelated citation at the bottom


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?).

--
https://mail.python.org/mailman/listinfo/python-list


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:
>
>
>
> https://github.com/numpy/numpy/blob/156cd054e007b05d4ac4829e10a369d19dd2b0b1/numpy/lib/function_base.py#L2276
>
>
> Hope that helps
>
> Bruno
>
> On Tuesday, 13 October 2020, 5:38:55 pm NZDT, Meghna Karkera <
> mkarker...@gmail.com> wrote:
>
>
> May I know the steps or procedure behind covariance matrix syntax,
> np.cov(covar_matrix) in python
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Covariance matrix syntax

2020-10-12 Thread Meghna Karkera
May I know the steps or procedure behind covariance matrix syntax,
np.cov(covar_matrix) in python
-- 
https://mail.python.org/mailman/listinfo/python-list