Cramér's V and Association Measures Calculator

Paste a contingency table of counts, one row per line, to get chi-square, p-value, Cramér's V, its bias-corrected version, phi for 2 × 2 tables and the effect size.

Funziona nel tuo browser. I tuoi file non lasciano mai il dispositivo. Scopri come verificarlo

…

Come si usa

  1. 1
    Paste the table

    Counts, one row per line.

  2. 2
    Separate cells

    With commas or spaces.

  3. 3
    Check expected counts

    At least 5 in most cells.

  4. 4
    Read V and the test

    Chi-square, p and effect size.

Informazioni su questo strumento

A chi-square test tells you whether two categorical variables are associated, but not how strongly: with a large sample even a trivial association becomes significant. Cramér's V measures the strength on a 0 to 1 scale for tables of any size. This calculator computes the chi-square test and p-value together with Cramér's V, the bias-corrected V recommended for small samples, phi for 2 × 2 tables and Pearson's contingency coefficient, and interprets the effect size.

Who this is for

Social science, psychology and medical students, survey analysts and anyone reporting crosstabs.

The chi-square statistic

Expected counts are E = row total × column total / n. χ² = Σ (O − E)² / E with (r − 1)(c − 1) degrees of freedom. The p-value comes from the χ² distribution.

Cramér's V

V = √(χ² / (n (k − 1))), with k = min(rows, columns). V is 0 for independence and 1 for perfect association. For 2 × 2 tables V equals |phi|.

Bias correction

V overestimates association in small samples. Bergsma (2013) proposed a corrected version that subtracts the expected chi-square under independence; report it when n is small or the table large.

Phi and the contingency coefficient

Phi, for 2 × 2 tables, is (ad − bc)/√(row and column totals) and keeps a sign showing the direction. The contingency coefficient C = √(χ²/(χ² + n)) cannot reach 1, so V is usually preferred.

Effect size

Cohen's benchmarks depend on df* = k − 1: for df* = 1 small 0.10, medium 0.30, large 0.50; for df* = 2, 0.07, 0.21, 0.35; and so on (divided by √df*).

Assumptions

Observations independent, counts not percentages, and expected counts at least 5 in most cells. For small 2 × 2 tables use Fisher's exact test.

Good practice

Report χ², df, p, n and V together. Check expected counts before trusting the p-value.

Example interpretation

In a survey of 120 people, preference for three product versions differed between two regions with Cramér's V = 0.31. That is a moderate association: region explains part of the preference, but many people in both regions chose each version.

Larger tables

For tables with many categories, merge sparse categories before testing, so that expected counts are large enough and the result is interpretable.

Direction

Cramér's V has no sign; look at the table to see which cells drive the association, for example by comparing observed and expected counts.

Worked example

A table with rows (30, 10, 20) and (15, 25, 20), n = 120, gives χ² = 11.43 with 2 df, p = 0.0033. Cramér's V = 0.31, a medium-to-large effect for df* = 1; the bias-corrected V is 0.28 and C = 0.29.

Limits

Nominal variables; for ordinal data consider rank-based measures. Not a substitute for professional statistical advice.

Esempio svolto

A 2 × 3 table with χ² = 11.43 and n = 120 gives Cramér's V = 0.31.

In breve

Domande frequenti

What is Cramér's V?

A measure of association between two categorical variables from 0 to 1.

How is it calculated?

√(χ²/(n(k − 1))) with k the smaller table dimension.

What is a large V?

About 0.5 or more for 2-column tables; benchmarks shrink for larger tables.

Why correct for bias?

V overestimates association in small samples.

Can I enter percentages?

No, use raw counts.

Is my data stored?

No. Everything is calculated in your browser.

Completamente gratisNessun costo, nessuna registrazione
I file restano privatiTutto funziona nel tuo browser
Facile nella tua linguaDisponibile in molte lingue