> ## 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.

> Calculates Cramer's V, but uses a bias correction.

# cramersVBiasCorrected

<h2 id="cramersVBiasCorrected">
  cramersVBiasCorrected
</h2>

Introduced in: v22.1.0

Cramer's V is a measure of association between two columns in a table.
The result of the [`cramersV` function](/reference/functions/aggregate-functions/cramersV) ranges from 0 (corresponding to no association between the variables) to 1 and can reach 1 only when each value is completely determined by the other.
The function can be heavily biased, so this version of Cramer's V uses the [bias correction](https://en.wikipedia.org/wiki/Cram%C3%A9r%27s_V#Bias_correction).

**Syntax**

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

**Arguments**

* `column1` — First column to be compared. [`Any`](/reference/data-types/index)
* `column2` — Second column to be compared. [`Any`](/reference/data-types/index)

**Returned value**

Returns a value between 0 (corresponding to no association between the columns' values) to 1 (complete association). [`Float64`](/reference/data-types/float)

**Examples**

**Comparison with regular cramersV**

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

```response title=Response theme={null}
┌─────cramersV(a, b)─┬─cramersVBiasCorrected(a, b)─┐
│ 0.5798088336225178 │          0.5305112825189074 │
└────────────────────┴─────────────────────────────┘
```
