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

> 結果は varSamp の平方根と同じです。ただし、この関数は 数値的に安定したアルゴリズムを使用します。

# stddevSampStable

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

導入バージョン: v1.1.0

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

**構文**

```sql theme={null}
stddevSampStable(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 UInt8,
)
ENGINE = Log;

INSERT INTO test_data VALUES (3),(3),(3),(4),(4),(5),(5),(7),(11),(15);

SELECT
    stddevSampStable(population)
FROM test_data;
```

```response title=Response theme={null}
┌─stddevSampStable(population)─┐
│                            4 │
└──────────────────────────────┘
```
