STDEVP Function in Calligra Sheets: Population Standard Deviation
Calculate population standard deviation in Calligra Sheets using STDEVP with numeric examples, n divisor, and reproducible manual checks.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: Use STDEVP when the data cover the entire population you intend to describe. The result is the square root of the average squared distance from the population mean. Unlike STDEV, it divides by n, not n−1. Official KDE documentation gives STDEVP(6;7;8) ≈ 0.816497. [K1, K2, K3, K4, I1]
Validation, 2026-10-13: Official documentation and pinned implementation inspected; examples computed independently. Do not represent any expected value or error display as observed in native Calligra.
Availability and version history
- Introduced: Documented by 26.08.2; original introduction not established.
- Availability: Supported in Calligra Sheets 26.08.2, based on the function-specific registration.
- Scope: The official application listing provides Linux installation; other packaged builds are unverified here.
- Checked: October 14, 2026. Documentation/source check; no new native test in Calligra Sheets 26.08.2.
Syntax and argument order
=STDEVP(value1; [value2]; ...)
=STDEVP(A2:A9)
value1(one required formula argument): numeric literal, cell reference, or a range/array of numeric observations. The release registration usessetParamCount(1,-1)andsetAcceptArray(), so one argument can itself contain many observations. [K2]value2, subsequent arguments (optional): additional numeric literals/references/ranges, in any order. There is no optional Boolean flag, no alternate denominator argument and no code-level fixed argument cap declared in this registration; practical application limits were not measured. [K2]- Accepted types: the documentation describes floating-point values/ranges. The numeric-focused
calc->stddevP(args,false)helper is selected; the exact handling of direct text, text cells, blanks, booleans, errors or non-numeric dates has not been natively tested. [K1, K3, K4] - Default behavior: no optional defaults alter the sample/population choice; the formula always selects population standard deviation. [K2–K4]
- English locale punctuation:
;separates separate arguments,.is a decimal mark,:makes a contiguous range. Confirm syntax within your installation before making claims for a different locale. [K1, K6]
For numeric values x₁…xₙ, let μ=(Σxᵢ)/n:
STDEVP = SQRT( Σ (xᵢ − μ)² / n )
The standard deviation uses the same units as the source data. VARP measures the corresponding variance in squared units. The pinned implementation calls ValueCalc::stddevP, which divides the squared deviations by count, not count−1. [K3, K4, I1]
Reproducible eight-value worksheet
- In a new Calligra Sheets worksheet, enter A1=
Population valueand the eight numeric values below in A2:A9. - In column H, enter the formulas from the second table. These are regular cell formulas, not array-entered formulas.
- Make enough decimal digits visible to compare expected values; use an English-language separator convention for these examples.
- Confirm that every source cell is numeric and that the ranges do not include the H formula cells. [I1]
| A cell | Number | A cell | Number |
|---|---|---|---|
| A2 | 2 | A6 | 5 |
| A3 | 4 | A7 | 5 |
| A4 | 4 | A8 | 7 |
| A5 | 4 | A9 | 9 |
| Enter in | Formula | Independently calculated expected result | Interpretation |
|---|---|---|---|
| H2 | =STDEVP(A2:A9) |
2 | Whole eight-value population. |
| H3 | =STDEV(A2:A9) |
2.138089935299 | Same data treated as a sample. |
| H4 | =AVERAGE(A2:A9) |
5 | Whole-population mean. |
| H5 | =STDEVP(6;7;8) |
0.816496580928 | KDE’s rounded official example. |
| H6 | =STDEVP(-2;0;2) |
1.632993161855 | Negative numbers are valid numeric observations. |
| H7 | =STDEVP(5;5;5) |
0 | No spread when all values agree. |
| H8 | =STDEVP(40;60) |
10 | Two-member population, not a sample. |
| H9 | =VARP(A2:A9) |
4 | Population variance, the square of H2. |
| H10 | =STDEVP(A2:A9)/AVERAGE(A2:A9) |
0.4 | Population coefficient of variation = 40%. |
| H11 | =(A9-AVERAGE(A2:A9))/STDEVP(A2:A9) |
2 | Z-score of the observation 9. |
Check the arithmetic: The mean of A2:A9 is 5. Differences from the mean are −3, −1, −1, −1, 0, 0, 2, 4. Their squares total 9+1+1+1+0+0+4+16 = 32. The population variance is 32/8 = 4; therefore STDEVP = SQRT(4) = 2. In a sample estimate, divide by seven: SQRT(32/7) ≈ 2.138089935299. [I1]
Advanced method 1 — audit the calculation without array formulas
- Put the population mean in H4 as above:
=AVERAGE(A2:A9), expected 5. - In B1 type
Squared difference; in B2 enter=(A2-$H$4)^2and copy down through B9. Values must be 9, 1, 1, 1, 0, 0, 4, 16, in that order.$H$4fixes the mean reference while filling the formula. [I1] - In H12 enter
=SUM(B2:B9), expected 32. - In H13 enter
=COUNT(A2:A9), expected 8 for the all-numeric data. - In H14 enter
=SQRT(H12/H13), expected 2, the same mathematical result asSTDEVP(A2:A9). [I1]
This audit uses scalar formulas rather than assuming a particular implementation of SUMPRODUCT or dynamic-array syntax. It exposes why one accidentally omitted observation changes both the mean and the population denominator.
Advanced method 2 — standardize a complete process inventory
Suppose A2:A9 contains the complete measured production lot. For every observation, create a population z-score in C2:
=(A2-$H$4)/$H$2
Copy through C9; the z-score of A9=9 should be 2, while A2=2 should be −1.5. This comparison is meaningful only when H2 is not 0. When all observations are the same, population spread is 0 and any formula that divides by STDEVP has an undefined denominator. A process sample, rather than the complete lot, might require STDEV instead. [I1]
The separate transformation B2 = 2*A2+3 copied through B9 produces the new series 7, 11, 11, 11, 13, 13, 17, 21. Its independently calculated population standard deviation should be 4: multiplying data by 2 multiplies standard deviation by |2|; adding 3 does not change spread. This is a useful second calculation check. Do this transformation after finishing the squared-difference audit above, or put it in a new column to avoid overwriting B2:B9. [I1]
Boundary handling and troubleshooting
| Situation | What is established | What still needs a running-application test |
|---|---|---|
| One numeric observation | The population equation predicts zero spread, because the single value equals its mean. | Confirm =STDEVP(10) returns 0 in a native 26.08.2 build. [K4, I1] |
| Zero accepted observations | stddevP computes count then divides by it; denominator becomes 0. |
Observe the displayed error/text; do not infer a specific Calligra error string. [K4] |
| Empty, text or Boolean cells | stddevP(args,false) selects the non-A walk/count. |
Exact cell versus direct-argument coercion, error propagation and filtering. [K3, K4] |
Results differ from STDEV |
Population uses divisor n, sample n−1. | No uncertainty for the mathematical difference on valid numeric data. [K3, K4] |
| Wrong result units | STDEVP is in original units; VARP has squared units. | Check chosen statistic, not application error handling. [I1] |
| Function not recognized | Shipped statistical C++ module registers STDEVP. | Whether the installed edition/package includes and enables it. [K2] |
| Formula displayed as text | Check leading =, cell formatting, and the active locale’s separator. |
Exact localized parser/display output remains untested. [K1] |
# or unexpected blanks |
Check numeric formatting and values in A2:A9. | No particular status-string mapping was observed natively. |
| Very large/small magnitudes | Finite-precision rounding can affect mathematical algorithms. | Installation-specific precision, overflow and performance. |
Native test backlog: all-zero input, one numeric value, blank-only input, text and booleans as references/direct arguments, error cells, multiple ranges, locale decimal/separator variations, overflow, current Linux/Flatpak builds. The guide deliberately gives no fabricated screenshots, measurements or error strings.
Compatibility and choosing the right function
- Calligra:
STDEVPis the 26.08.2 population-standard-deviation registration.STDEVis a distinct sample registration. No alias is declared for STDEVP in the pinned primary/explicit-alias catalogue. [K2, K3] - Excel comparison: Microsoft’s older
STDEVPand its modernSTDEV.Pare described as population measures. Microsoft’s rules for text/Boolean handling, 254-argument limits and comma conventions are Excel-specific, not evidence for Calligra’s corresponding runtime. This does not establishSTDEV.Pas a Calligra alias. [M1] - Other programs: Avoid assuming that formula compatibility, file conversion, parsing or results involving mixed data are identical without a verified native comparison.
Source and execution boundaries
Version examined: Calligra 26.08.2, issued 2026-10-08, with C++ source pinned at commit 72123cc643f6625351139e7df294544255a1056f. The long-lived KDE handbook has an older displayed revision (2013-03-11); the version-pinned registration and engine define the behavior investigated here. Source presence is not evidence that a particular Linux distribution package, Flatpak, edition or platform successfully executes the formula. The official Calligra download page describes Linux distribution packages/Flatpak and Windows support as in progress. [K1–K5]
All outputs in the worksheet tables are independently calculated expectations, not recorded Calligra application results. The data are deliberately plain numeric constants to avoid unverified text, Boolean or date coercion. No screenshots, application runs, localized parser checks or import/export tests were conducted. [I1]
Related functions and documentation links
Official KDE handbook links inspected on 2026-10-13: AVERAGE — mean, COUNT — numeric items, SUM, SQRT, STDEV — sample standard deviation, STDEVP — population standard deviation, VAR — sample variance, VARIANCE — VAR-equivalent registration, VARP — population variance. [K1, K2]
References and evidence audit — accessed 2026-10-13
- [K1] KDE official Sheets function handbook: exact function purpose, English argument separator/decimal notation, printed examples and named related functions. https://docs.kde.org/stable_kf6/en/calligra/sheets/functions.html
- [K2] Calligra 26.08.2 registration:
statistical.cppregistrations,setParamCount(1,-1),setAcceptArray(), distinct variants, and VAR/VARIANCE shared implementation. https://github.com/KDE/calligra/blob/72123cc643f6625351139e7df294544255a1056f/sheets/functions/statistical.cpp#L330-L410 - [K3] Calligra 26.08.2 implementation wrappers: population standard deviation delegates to
stddevP(args,false)(lines 2558–2560), and VAR/VARP usefunc_devsqwith divisorscount−1andcountrespectively (lines 2921–2955). https://github.com/KDE/calligra/blob/72123cc643f6625351139e7df294544255a1056f/sheets/functions/statistical.cpp#L2542-L2569 · https://github.com/KDE/calligra/blob/72123cc643f6625351139e7df294544255a1056f/sheets/functions/statistical.cpp#L2918-L2967 - [K4] Calligra 26.08.2 engine:
ValueCalc::stddevversusValueCalc::stddevPnear lines 2391–2440 and numeric-count helper near 2241–2252; check exact error propagation with native tests. https://github.com/KDE/calligra/blob/72123cc643f6625351139e7df294544255a1056f/sheets/engine/ValueCalc.cpp#L2391-L2440 · https://github.com/KDE/calligra/blob/72123cc643f6625351139e7df294544255a1056f/sheets/engine/ValueCalc.cpp#L2241-L2252 - [K5] Official KDE Gear 26.08.2 announcement, dated 2026-10-08, and official Calligra platform/download information. https://kde.org/announcements/gear/26.08.2/ · https://calligra.org/download/
- [K6] Version-pinned KDE statistical XML, including sample versus population descriptions and explicit official examples for
STDEVP,VAR,VARIANCE,VARP. https://github.com/KDE/calligra/blob/72123cc643f6625351139e7df294544255a1056f/sheets/functions/statistical.xml - [M1] Microsoft Excel compatibility documentation (comparison only, not evidence of Calligra parser/import behavior): modern
STDEV.P,VAR.S,VAR.P; legacySTDEVP,VAR,VARPseparately documented. https://support.microsoft.com/en-us/excel/functions/stdev-p-function · https://support.microsoft.com/en-us/excel/functions/var-s-function · https://support.microsoft.com/en-us/excel/functions/var-p-function - [I1] Independent arithmetic audit on 2026-10-13: two methods—Python
statistics.pvariance,statistics.variance,statistics.pstdev,statistics.stdevand direct centered-square sums divided by n or n−1—agreed to numerical tolerance on each test set. No installed Calligra execution was made.