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

> 結果は varPop の平方根です。stddevPop とは異なり、この関数では数値的に安定したアルゴリズムを使用します。

# stddevPopStable

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

導入バージョン: v1.1.0

結果は [varPop](/ja/reference/functions/aggregate-functions/varPop) の平方根に等しくなります。[stddevPop](/ja/reference/functions/aggregate-functions/stddevPop) とは異なり、この関数では数値的に安定したアルゴリズムを使用します。処理速度は遅くなりますが、計算誤差が小さくなります。

**構文**

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

**引数**

* `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}
DROP TABLE IF EXISTS test_data;
CREATE TABLE test_data
(
    population Float64,
)
ENGINE = Log;

INSERT INTO test_data SELECT randUniform(5.5, 10) FROM numbers(1000000);

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

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