help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Covariance Question


From: Al Piszcz 'peesh'
Subject: Covariance Question
Date: Sun, 2 Mar 2003 07:27:21 -0500 (EST)

Excel provides a covariance of 4 and Octave 5.333, what
I am doing wrong?

octave:1> x=[3;1;3;9]
x =

  3
  1
  3
  9

octave:2> y=[4;4;8;8]
y =

  4
  4
  8
  8

octave:3> cov(x,y)
ans = 5.3333


==
The results are given as '4' in the example problem as well.
http://www.visualstatistics.net/Visual%20Statistics%20Multimedia/covariance.htm



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]