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

> `cramersV` 함수의 결과는 0(변수 간 연관성이 없음을 의미)부터 1까지의 범위이며, 각 값이 다른 값에 의해 완전히 결정될 때만 1에 도달할 수 있습니다. 이는 두 변수 간 연관성을 가능한 최대 변동 대비 백분율로 나타낸 것으로 볼 수 있습니다.

# cramersV

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

도입 버전: v22.1.0

[Cramer's V](https://en.wikipedia.org/wiki/Cram%C3%A9r%27s_V) (때로는 Cramer's phi라고도 함)는 테이블의 두 컬럼 사이의 연관성을 측정하는 척도입니다.
`cramersV` 함수의 결과는 0(변수 사이에 연관성이 없음을 의미)부터 1까지이며, 각 값이 다른 값에 의해 완전히 결정될 때에만 1에 도달할 수 있습니다.
이는 두 변수 사이의 연관성을 가능한 최대 변동 대비 백분율로 나타낸 것으로 볼 수 있습니다.

<Note>
  Cramer's V의 편향 보정 버전은 다음을 참조하십시오: [cramersVBiasCorrected](/ko/reference/functions/aggregate-functions/cramersVBiasCorrected)
</Note>

**구문**

```sql theme={null}
cramersV(column1, column2)
```

**인수**

* `column1` — 비교할 첫 번째 컬럼입니다. [`(U)Int*`](/ko/reference/data-types/int-uint) 또는 [`Float*`](/ko/reference/data-types/float) 또는 [`Decimal`](/ko/reference/data-types/decimal)
* `column2` — 비교할 두 번째 컬럼입니다. [`(U)Int*`](/ko/reference/data-types/int-uint) 또는 [`Float*`](/ko/reference/data-types/float) 또는 [`Decimal`](/ko/reference/data-types/decimal)

**반환 값**

0(컬럼 값 사이에 연관성이 없음을 의미)부터 1(완전한 연관성)까지의 값을 반환합니다. [`Float64`](/ko/reference/data-types/float)

**예시**

**컬럼 간 연관성 없음**

```sql title=Query theme={null}
SELECT
    cramersV(a, b)
FROM
    (
        SELECT
            number % 3 AS a,
            number % 5 AS b
        FROM
            numbers(150)
    );
```

```response title=Response theme={null}
┌─cramersV(a, b)─┐
│              0 │
└────────────────┘
```

**컬럼 간 연관성이 높음**

```sql title=Query theme={null}
SELECT
    cramersV(a, b)
FROM
    (
        SELECT
            number % 10 AS a,
            if (number % 12 = 0, (number + 1) % 5, number % 5) AS b
        FROM
            numbers(150)
    );
```

```response title=Response theme={null}
┌─────cramersV(a, b)─┐
│ 0.9066801892162646 │
└────────────────────┘
```
