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

> 독립 변수의 평균에 대한 편차 제곱합을 반환합니다.

# regr_sxx

<h2 id="regr_sxx">
  regr\_sxx
</h2>

도입 버전: v26.9.0

독립 변수의 편차 제곱합을 반환합니다.

$$
\Sigma{(x - \bar{x})^2}
$$

**구문**

```sql theme={null}
regr_sxx(y, x)
```

**별칭**: `regrSXX`

**인수**

* `y` — 종속 변수. [`(U)Int*`](/reference/data-types/int-uint) 또는 [`Float*`](/reference/data-types/float)
* `x` — 독립 변수. [`(U)Int*`](/reference/data-types/int-uint) 또는 [`Float*`](/reference/data-types/float)

**반환 값**

평균을 기준으로 한 `x`의 편차 제곱합을 반환합니다. [`Float64`](/reference/data-types/float)

**예시**

**기본 사용법**

```sql title=Query theme={null}
SELECT regr_sxx(y, x)
FROM VALUES('x Float64, y Float64', (1, 2), (2, 4), (3, 6), (4, 8))
```

```response title=Response theme={null}
┌─regr_sxx(y, x)─┐
│              5 │
└────────────────┘
```
