> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/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](/docs/ja/reference/functions/aggregate-functions/varPop) の平方根に等しくなります。[stddevPop](/docs/ja/reference/functions/aggregate-functions/stddevPop) とは異なり、この関数では数値的に安定したアルゴリズムを使用します。処理速度は遅くなりますが、計算誤差が小さくなります。

**構文**

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

**引数**

* `x` — 標準偏差を求める値の母集団。[`(U)Int*`](/docs/ja/reference/data-types/int-uint) または [`Float*`](/docs/ja/reference/data-types/float) または [`Decimal*`](/docs/ja/reference/data-types/decimal)

**戻り値**

`x` の分散の平方根を返します。[`Float64`](/docs/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 │
└────────────────────┘
```
