Difference between revisions of "Documentation/How Tos/Calc: COVAR function"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Initial content)
 
m
 
(11 intermediate revisions by 7 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{DISPLAYTITLE:COVAR function}}
 +
{{Documentation/CalcFunc StatisticalTOC
 +
|ShowPrevNext=block
 +
|PrevPage=Documentation/How_Tos/Calc:_CORREL_function
 +
|NextPage=Documentation/How_Tos/Calc:_FORECAST_function
 +
}}__NOTOC__
  
 
== COVAR ==
 
== COVAR ==
Line 5: Line 10:
  
 
=== Syntax: ===
 
=== Syntax: ===
<tt>'''COVAR(x; y)'''</tt>
+
<code>COVAR(x;y)</code>
: where <tt>'''x'''</tt> and <tt>'''y'''</tt> are ranges or arrays containing the two sets of data.
+
: where <code>x</code> and <code>y</code> are ranges or arrays containing the two sets of data.
  
:<tt>'''COVAR'''</tt> calculates:
+
:<code>COVAR</code> calculates:
::[[Image:Calc_covar_equation.png]]
+
:<math>\frac{1} {n} \sum_{i} {(x_i - \bar x)(y_i - \bar y)}</math>
:: where [[Image:Calc_xymean.png]] are the averages of <i>x</i>,<i>y</i>.
+
:: where <math>\bar x</math> and <math>{\bar y}</math> are the averages of the ranges <code>x</code> and <code>y</code>.
  
 
: <i>Advanced topic:</i>
 
: <i>Advanced topic:</i>
: The parameters <tt>'''x'''</tt> and <tt>'''y'''</tt> are always evaluated as [[Documentation/How_Tos/Using Arrays|array formulas]].
+
: The function <code>COVAR(x;y)</code> is automatically evaluated as [[Documentation/How_Tos/Using Arrays|array formula]].
  
 
=== Example: ===
 
=== Example: ===
<tt>'''COVAR(A1:A30; B1:B30)'''</tt>
+
<code>COVAR(A1:A30;B1:B30)</code>
 
: returns the covariance of the two sets of data in A1:A30 and B1:B30.
 
: returns the covariance of the two sets of data in A1:A30 and B1:B30.
  
=== See also: ===
+
{{SeeAlso|EN|
[[Documentation/How_Tos/Calc: CORREL function|'''CORREL''']],
+
* [[Documentation/How_Tos/Calc: CORREL function|CORREL]]
[[Documentation/How_Tos/Calc: PEARSON function|'''PEARSON''']]
+
* [[Documentation/How_Tos/Calc: PEARSON function|PEARSON]]
  
[[Documentation/How_Tos/Using Arrays|'''Array formulas''']]
+
* [[Documentation/How_Tos/Using Arrays|Array formulas]]
  
[[Documentation/How_Tos/Calc: Statistical functions|'''Statistical functions''']]
+
* [[Documentation/How_Tos/Calc: Statistical functions|Statistical functions]]
 +
 
 +
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 +
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 +
[[Category: Documentation/Reference/Calc/Statistical functions]]

Latest revision as of 14:41, 2 February 2024



COVAR

Returns the covariance of two sets of data.

Syntax:

COVAR(x;y)

where x and y are ranges or arrays containing the two sets of data.
COVAR calculates:
where and are the averages of the ranges x and y.
Advanced topic:
The function COVAR(x;y) is automatically evaluated as array formula.

Example:

COVAR(A1:A30;B1:B30)

returns the covariance of the two sets of data in A1:A30 and B1:B30.



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_COVAR_function&oldid=260073"
Views
Personal tools
Navigation
Tools