Contact

COVAR Function in Apple Numbers: Population Covariance and Paired Data

Statistical Intermediate Apple Numbers

Learn paired population covariance in Numbers with official syntax and independently checked heating-oil and analytics examples.

Verification status: Official documentation referenced; example outcomes independently reasoned or arithmetically checked where stated. Not executed in Apple Numbers. How formula examples are checked

Quick answer: =COVAR(B2:B5,C2:C5) gives the population covariance of two paired numeric columns. With the four observations below, the independently calculated expected result is 25. Positive covariance means the columns tend to move in the same direction; a negative value means opposite movements. Its magnitude depends on the product of the inputs’ units. [A1, C1]

Exact Apple syntax and argument order

=COVAR(dataset-1, dataset-2)
Argument Required? Apple-documented value type and meaning
dataset-1 Yes A collection of numeric values, such as the first same-table range B2:B5.
dataset-2 Yes A second collection of numeric values, matched position-for-position to the first.

Apple requires the two collections to have the same number of data points. Its help says included strings and booleans are ignored; it does not fully document how missing/non-numeric entries in different rows are paired. For dependable calculations, use entirely numeric, aligned rows and remove or correct missing pairs explicitly. No third argument, denominator switch, default, or sample-covariance option is documented for COVAR. [A1]

Mathematical meaning: for n aligned values, COVAR(x,y) = Ī£[(xįµ¢āˆ’xĢ„)(yįµ¢āˆ’Č³)] / n. This is population covariance, not the sample estimate using nāˆ’1. In a simple linear relationship, if x rises with y, covariance tends to be positive; if one rises while the other falls, negative. Zero covariance means no linear co-movement in the selected observations, not proof of independence. [A1, C1]

Numbers-specific setup, release scope, references and localisation

This guide uses Apple’s Formulas and Functions Help, edition 15.4, checked 2026-10-13, and its documented function signature. The help edition is not evidence of a minimum Numbers version on Mac, iPhone, iPad or iCloud.com. Check the specific application’s release notes and test an older installation instead of extrapolating availability. Apple’s Mac Numbers release history is linked below. No native application run was conducted for this review. [R1, R4]

The reproducible examples use one Numbers table, with its first row configured as a header. A range such as B2:B5 identifies four values in that table; put all formulas in otherwise empty cells outside the input ranges to avoid circular references. Numbers can use Table 2::B5 for another table on the same sheet, and Sheet 2::Table 2::B5 for a different sheet and table. Use the formula editor to construct qualified references; Excel’s Sheet1!B5 notation is not Numbers syntax. Header-derived names can be substituted by the editor, so verify the range endpoints. [R2]

English examples use period decimals and comma argument separators, e.g. =AVERAGE(2,4). Apple says that if your decimal separator is a comma, manually typed function arguments require semicolons (for example =AVERAGE(2;4)). The range-colon B2:B5 does not change. Formula-name case is not significant. The optional ellipsis … in Apple’s syntax notation is not typed into the formula. [R1]

Evidence labels: Apple-documented means the exact result appears in official help; independently calculated means reproduced with separate fractional/decimal arithmetic or Python’s standard statistics tools, not a Numbers output. Do not equate either with native Mac/iOS/iPadOS/iCloud execution or screenshots. Error conditions described below are guidance from documented constraints; unless Apple’s reference specifies an exact error code, this guide does not invent one. [R3]

Reproducible worksheet: correlated shipments

  1. Add a Numbers table named Shipments with at least five rows and header row 1. Enter only numbers in columns B and C. Keep the result formula outside columns B:C, such as E2.
  2. Copy the exact values below; matching rows describe the same shipment observation.
  3. In E2 enter =COVAR(B2:B5,C2:C5) and show several decimals if needed.
Row A: Shipment B: Units shipped C: Packing minutes
2 S-01 2 10
3 S-02 4 20
4 S-03 6 30
5 S-04 8 40
=COVAR(B2:B5,C2:C5)

Independently calculated expected result: 25 unit-minutes. The B mean is 5 and the C mean is 25. The deviations are B [-3,-1,1,3] and C [-15,-5,5,15]; products are [45,5,5,45]. Their sum is 100; population covariance is 100 / 4 = 25. This is independently computed, not a Numbers runtime result. [A1, C1]

Additional calculated checks on the same data

Formula in an unused cell Expected result Interpretation
=COVAR(B2:B5,C2:C5) 25 Upward linear co-movement.
=COVAR(C2:C5,B2:B5) 25 Covariance is symmetric: reverse the two collections.
=COVAR(B2:B5,B2:B5) 5 Population covariance of a column with itself equals its population variance.
=VARP(B2:B5) 5 Independent population-variance cross-check.
=COVAR(B2:B5,C2:C5)/VARP(B2:B5) 5 For these exact points, numerical slope of C against B is 5 minutes per unit.

When using comma-decimal conventions, the two arguments are entered with a semicolon, =COVAR(B2:B5;C2:C5). This separator choice comes from Apple’s overview, not a second calculation. [R1, C1]

Reproduce Apple’s official heating-oil example

Apple illustrates COVAR with heating-oil prices and thermostat settings. To reproduce the documented example, make a separate 11-row table with headers in A1:B1 and these pairs in rows 2–11. Do not conflate this with the Shipments table above. [A1]

Row A: Oil price B: Thermostat setting
2 4.50 64
3 4.20 65
4 3.91 65
5 3.22 66
6 3.09 66
7 3.15 66
8 2.98 68
9 2.56 70
10 2.60 70
11 2.20 72
=COVAR(A2:A11,B2:B11)

Apple-documented result: approximately -1.6202. The arithmetic was independently checked: average oil price 3.241, mean setting 67.2, and sum of centered cross-products -16.202; dividing by all 10 pairs gives -1.6202. The negative sign captures opposite movement across the recorded periods. Neither the data nor the result were observed in a local Apple Numbers run. [A1, C1]

Advanced: check the relationship, not just its sign

For the shipment sample, perfect proportionality means CORREL(B2:B5,C2:C5) has a mathematically expected coefficient of 1. For general real-world data, covariance alone cannot establish strong correlation: the scales and units vary. Apple’s separately documented CORREL computes a unitless correlation; SLOPE, INTERCEPT and FORECAST address a best-fit linear relationship and prediction, each with distinct requirements. Do not infer forecasting reliability from covariance alone. [A1, A2, C1]

To test a reversed pattern, make B2:B5 1,2,3,4 and C2:C5 8,6,4,2. Then =COVAR(B2:B5,C2:C5) has independently calculated expected result āˆ’2.5: means 2.5 and 5; products sum āˆ’10; /4=āˆ’2.5. This demonstrates direction changes without changing the function’s argument order. [C1]

What COVAR does not do

  • It does not tell you which variable causes the other to change; correlation is not causation.
  • It does not automatically convert different units or normalize results to a āˆ’1..1 scale.
  • It is not a sample-covariance function; an nāˆ’1 estimator is a different statistic. Do not silently replace the denominator.
  • It does not document how to resolve unequal or individually missing paired cells. Choose complete numeric observations deliberately rather than relying on undocumented coercion. [A1]

Troubleshooting and limits

  1. Unequal range lengths: =COVAR(B2:B5,C2:C6) supplies four and five row positions, violating Apple’s equal-data-point requirement. Make both ranges span the exact same rows. Apple’s page does not specify a universal displayed error string. [A1]
  2. Non-numeric entries: Apple says strings and booleans within collections are ignored, but the exact effect when only one partner in a row is non-numeric is not established. Clean the paired records, compare row counts, and test locally before using results. [A1]
  3. Wrong alignment: The same values sorted independently into different row orders no longer describe the same pairings; covariance changes. Sort complete rows together and preserve identifiers.
  4. Mixing entire population and sample: COVAR’s denominator is n. For sample inference, use a correctly documented method rather than assuming a hidden flag.
  5. Ranges built across tables: In Numbers choose target table and source ranges in the formula editor; use Table::Cell references as appropriate. [R2]
  6. Unreliable decimal appearance: Cells formatted to zero or two decimal places may conceal the underlying result. Increase display precision.
  7. Errors or empty results: Check the referenced numbers and cell formats, formula editor warnings and source ranges. Apple documents general error indicators; this review does not claim a specific COVAR error code. [R3]

Consult the official help: CORREL, VARP, SLOPE, FORECAST. [A2]

Apple documentation and calculation method

Native-validation limitations: No Numbers execution or screenshots were performed. Check important mixed-type, blank and locale edge cases on the intended device.