Difference between revisions of "Documentation/How Tos/Calc: COVAR function"
From Apache OpenOffice Wiki
< Documentation | How Tos
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
m |
||
(7 intermediate revisions by 5 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: === | ||
− | < | + | <code>COVAR(x;y)</code> |
− | : where < | + | : where <code>x</code> and <code>y</code> are ranges or arrays containing the two sets of data. |
− | :< | + | :<code>COVAR</code> calculates: |
− | : | + | :<math>\frac{1} {n} \sum_{i} {(x_i - \bar x)(y_i - \bar y)}</math> |
− | :: where | + | :: 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 | + | : The function <code>COVAR(x;y)</code> is automatically evaluated as [[Documentation/How_Tos/Using Arrays|array formula]]. |
=== Example: === | === Example: === | ||
− | < | + | <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. | ||
− | {{ | + | {{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]] | ||
Line 29: | Line 34: | ||
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | ||
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | ||
+ | [[Category: Documentation/Reference/Calc/Statistical functions]] |