[Numpy-tickets] [NumPy] #638: var should take absolute value for complex numbers.

NumPy numpy-tickets@scipy....
Sun Dec 30 21:02:08 CST 2007

#638: var should take absolute value for complex numbers.
 Reporter:  akumar       |        Owner:  somebody
     Type:  defect       |       Status:  new     
 Priority:  normal       |    Milestone:  1.0.5   
Component:  numpy.core   |      Version:  none    
 Severity:  normal       |   Resolution:          
 Keywords:  var complex  |  
Comment (by kumanna):

 Dear Robert,

 Replying to [comment:7 rkern]:
 > Note that the formula given in the Wikipedia article does not match the
 sentence following it. I think the sentence makes more sense than the
 formula. Complex numbers have two components. The appropriate (default)
 measure of spread of a distribution of complex numbers would be an ellipse
 (covariance matrix) rather than a circle (real scalar value). As far as
 statistical distributions are concerned, complex numbers are no different
 than 2-vectors. I need another reference to be convinced otherwise.

 Well, I do not wish to argue over this, since you have provided a
 workaround. However, I would still like you to see the following before
 closing this ticket:


 and more from:

 Of course, if you feel that is for `random variables' and not relevant for
 a deterministic array, like in our case, you may close this ticket.

 > You can use {{{cov()}}} by separating the real and imaginary components.
 {{{cov([z.real, z.imag])}}}.

 Right, what you mean. But still, I would request you to give it one more
 thought before closing my request. :-)

 Thanks for the time!


Ticket URL: <http://scipy.org/scipy/numpy/ticket/638#comment:8>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list