Contact

CORREL and PEARSON in Calligra Sheets: Paired Correlation

Statistical Intermediate Calligra Sheets

Calculate Calligra CORREL or PEARSON with paired numeric worksheets. Check linear association, text conversion, shape errors and exact engine examples.

Verification status: 18 selected PEARSON expressions ran through the Calligra Sheets 25.04.2 engine library, including one direct CORREL comparison. Preserved worksheets are independent mathematical recipes. Version 26.08.2 was source-checked only; no GUI-cell or import claim. How formula examples are checked

Quick answer: CORREL measures the direction and strength of linear association between paired numeric series. For the worksheet below, the independent correlation is 0.904194430179. PEARSON is an active registered alias with the same complete argument contract.

Correlation is not causation. A coefficient near zero does not rule out a nonlinear relationship, and a coefficient of one does not mean the two measurements agree numerically.

Availability and version history

  • Introduced: First release not established; CORREL is present in Calligra 2.4.0 source. Alias history is described below.
  • Supported in: Calligra Sheets 26.08.2; no retirement is established for either spelling.
  • Scope: Desktop Sheets with the Statistical module. Examples use English semicolon-separated formulas.
  • Checked: October 14, 2026. 18 selected PEARSON expressions ran through the 25.04.2 engine library, including one direct CORREL comparison. Preserved worksheets are independent mathematical references. 26.08.2 was source-checked only; no GUI-cell or import verification.

Syntax and the PEARSON alias

=CORREL(array1;array2)
=PEARSON(array1;array2)

Exactly two arguments are required, with array inputs accepted. Keep observations in matching positions and use the same rectangular shape for both arrays. The CORREL registration and PEARSON registration have identical arity and argument-handling settings and call the same complete routine. PEARSON is already present in 2.4.0 source; its first introduction is unknown and no retirement is established.

For nonconstant numeric pairs, the mathematical coefficient is the centered cross-product divided by the square root of the two centered sums of squares. Its range is −1 to 1. A zero spread in either series makes that normalization undefined.

Reproducible five-pair worksheet

Enter the following labels in row 1 and numbers in rows 2–6. Keep results outside A1:G6, for example in I2 and below. Columns C through G deliberately transform the same observations for independent checks.

Row A · x B · y C · −y D · 2x E · y+10 F · 2y G · constant y
1 x y −y 2x y+10 2y constant y
2 1 2 −2 2 12 4 5
3 2 3 −3 4 13 6 5
4 3 5 −5 6 15 10 5
5 4 4 −4 8 14 8 5
6 5 7 −7 10 17 14 5

Each row is one pair: A2 belongs with B2, and so on. Do not sort one column without the other. These cell-reference worksheets are independent mathematical recipes; the engine evidence later in this guide uses explicit inline arrays.

Ten checks with the same inputs

# Formula to enter in a spare cell Independently expected result What it demonstrates
1 =CORREL(A2:A6;B2:B6) ≈ 0.904194430179 Five nonperfect positively related pairs.
2 =PEARSON(A2:A6;B2:B6) ≈ 0.904194430179 Registered same-implementation name.
3 =CORREL(B2:B6;A2:A6) ≈ 0.904194430179 Swapping series does not change r.
4 =CORREL(A2:A6;A2:A6) 1 Perfect positive self-correlation for varying x.
5 =CORREL(A2:A6;C2:C6) ≈ -0.904194430179 Negating y reverses the sign.
6 =CORREL(A2:A6;D2:D6) 1 A straight increasing relationship.
7 =CORREL(A2:A6;E2:E6) ≈ 0.904194430179 Adding a constant to y preserves correlation.
8 =CORREL(A2:A6;F2:F6) ≈ 0.904194430179 Multiplying y by a positive constant preserves correlation.
9 =CORREL(A2:A6;B2:B6)^2 ≈ 0.817567567568 Simple-regression coefficient of determination r², for an intercept-fitted one-predictor model.
10 =COVAR(A2:A6;B2:B6)/(STDEVP(A2:A6)*STDEVP(B2:B6)) ≈ 0.904194430179 Independent function-based reconstruction (provided the listed referenced functions have their documented behaviors).

The means are x̄=3 and ȳ=4.2. The centered cross-product sum is 11, and the squared-deviation sums are 10 and 14.8. Thus =11/SQRT(10*14.8) has independent result 0.904194430179. Population covariance is 2.2 and the population variances are 2 and 2.96, so the covariance/standard-deviation reconstruction agrees.

Compare correlation with a fitted line

Using the same five pairs, enter =SLOPE(B2:B6;A2:A6) in I2, =INTERCEPT(B2:B6;A2:A6) in I3, =CORREL(A2:A6;B2:B6) in I4 and =I4^2 in I5. Independent expectations are 1.1, 0.9, 0.904194430179 and 0.817567567568.

In a one-predictor least-squares model fitted with an intercept, r² is the fraction of sample response variation explained by that line. It does not establish a causal effect or reliable future predictions. Inspect the actual paired observations for outliers and curvature before interpreting a summary coefficient.

PEARSON engine examples

The following expressions retain the exact alias name executed through the 25.04.2 engine library. Semicolons inside an inline array separate columns; vertical bars separate rows. They are formula values, not imported worksheet cells. The engine and independent mathematical references are separate columns, rounded for presentation.

Formula Engine result Independent mathematical reference
=PEARSON({1;2;3};{2;4;6}) 1 1
=PEARSON({1;2;3};{6;4;2}) -1 -1
=PEARSON({1;2;3};{1;3;2}) 0.5 0.5
=PEARSON({1;2;3};{3;7;8}) 0.944911182523 0.944911182523
=PEARSON({10;20;30};{3;7;8}) 0.944911182523 0.944911182523
=PEARSON({1;2;3};{13;17;18}) 0.944911182523 0.944911182523
=PEARSON({1;2|3;4};{2;4|6;8}) 1 1
=PEARSON({1;"9";3};{3;7;8}) 0.544704779402 0.544704779402

For x=(1,2,3), y=(3,7,8), the centered cross-product is 5 and the squared-deviation sums are 2 and 14. The coefficient is 5/√28≈0.944911182523, with r²=25/28≈0.892857142857. Scaling x by 10 or adding 10 to every y preserves that mathematical coefficient. By contrast, perfect correlation of (1,2,3) with (2,4,6) still leaves different measurement values.

The executed identity =PEARSON({1;2;3};{3;7;8})-CORREL({1;2;3};{3;7;8}) returned 0. It verifies the two names for this stated input pair, not every worksheet-import or locale behavior.

Boundaries and data conversion

Constant arrays produce #DIV/0!. The tested unequal nonconstant arrays gave #VALUE!, including shapes with equal element counts. In the inspected source, a zero spread is checked before propagating the covariance error, so an unequal-shape case with zero spread can instead return #DIV/0!; that combined case was not executed. Full-value conversion includes numeric text and logical values; failed numeric text becomes zero rather than dropping a pair. Clean paired data deliberately. An existing division error propagates; no automatic missing-pair deletion was validated.

Formula Engine result
=PEARSON(1;2) #DIV/0!
=PEARSON({1;2;3};{5;5;5}) #DIV/0!
=PEARSON({1;2;3};{1;2}) #VALUE!
=PEARSON({1;2;3};{1|2|3}) #VALUE!
=PEARSON({TRUE();FALSE();TRUE()};{1;2;3}) 0
=PEARSON({1;2;3};{1;"abc";3}) 0.654653670708
=PEARSON({1;2;3};{1;2;1/0}) #DIV/0!
=PEARSON({1;2;3}) #VALUE!
=PEARSON({1;2;3};{2;4;6};1) #VALUE!

These mixed-type cases are important: the full-value calculation includes converted numeric text and Boolean values. It does not promise Excel-style pair exclusion. A plausible coefficient can therefore conceal an unwanted label converted to zero. Normalize intended numeric measurements deliberately before interpreting their association.

The constant column G in the preserved worksheet makes mathematical correlation with A undefined. The exact error display of that cell-reference worksheet was not executed. Genuine blank-cell ranges, localized conversion, large nearly constant inputs and import/export remain separate checks; the retained evidence covers the listed scalar and inline-array expressions.

Official sources and checking scope

The inspected statistical module and value helpers are byte-identical between 25.04.2 and 26.08.2 source. Only the listed 25.04.2 engine expressions were executed; the earlier numeric worksheets remain independent mathematical examples. No GUI-cell or newer-version execution is claimed.