> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-3a82795f.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> 結果は varPop の平方根です。

# stddevPop

<div id="stddevPop">
  ## stddevPop
</div>

導入バージョン: v1.1.0

数値データの数列の母標準偏差を返します。
結果は [`varPop`](/ja/reference/functions/aggregate-functions/varPop) の平方根です。

<Note>
  この関数は、数値的に不安定なアルゴリズムを使用します。計算で[数値安定性](https://en.wikipedia.org/wiki/Numerical_stability)が必要な場合は、[`stddevPopStable`](/ja/reference/functions/aggregate-functions/stddevPopStable) 関数を使用してください。こちらは動作が遅くなりますが、計算誤差が小さくなります。
</Note>

**構文**

```sql theme={null}
stddevPop(x)
```

**別名**: `STD`, `STDDEV_POP`

**引数**

* `x` — 標準偏差を計算する対象となる値の母集団。[`(U)Int*`](/ja/reference/data-types/int-uint) または [`Float*`](/ja/reference/data-types/float) または [`Decimal*`](/ja/reference/data-types/decimal)

**戻り値**

`x` の母分散の平方根を返します。[`Float64`](/ja/reference/data-types/float)

**例**

**母標準偏差の計算**

```sql title=Query theme={null}
CREATE TABLE test_data (population UInt8) ENGINE = Log;
INSERT INTO test_data VALUES (3),(3),(3),(4),(4),(5),(5),(7),(11),(15);

SELECT stddevPop(population) AS stddev FROM test_data;
```

```response title=Response theme={null}
┌────────────stddev─┐
│ 3.794733192202055 │
└───────────────────┘
```
