Skip to content
Open navigation
OpenOpen workspace

Association measure (nominal)

Goodman & Kruskal's lambda calculator (λ)

Published by crosstabs.com · Last updated ·
How results are checkedNamed statistical review pending. Selected automated reference cases are published on the validation page.

Result on the example table

.36λ

Knowing one variable cuts prediction errors for the other by 36%

λ(row|col) = .37 · λ(col|row) = .34

ObservedExpected if independent

Observed and expected counts in the opening table
CellObservedExpected
Low · Low3015.3
Low · Medium1518
Low · High516.7
Medium · Low1215.3
Medium · Medium2518
Medium · High1316.7
High · Low415.3
High · Medium1418
High · High3216.7
The calculator’s opening table · 3×3, N = 150

Goodman and Kruskal's lambda (λ) is a proportional-reduction-in-error measure: it tells you how much knowing one categorical variable reduces the errors you make predicting the other's most common category, on a scale from 0 (no help) to 1 (perfect prediction).

Calculate online — no file needed

Type or paste your observed counts. Results update live, and the link in your address bar always reproduces this exact table.

Table sizeTip: paste a block of counts straight from a spreadsheet.
Have a spreadsheet? Open the workspace →Keep this calculator for a quick table; use the workspace for files, filters, exports, and saved projects.
Total
50
50
50
Total465450150

Lambda (symmetric)

0.357

λ(row|col) = 0.370 · λ(col|row) = 0.344

χ²(4, N = 150) = 50.32, p < .001, V = .41

All statistics
Pearson chi-squareχ² = 50.322, df = 4, p < .001
G-test (likelihood ratio)G = 50.805, df = 4, p < .001
Cramér's V0.410 (large)
Contingency coefficient (C)0.501
Lambda (symmetric / row|col / col|row)0.357 / 0.370 / 0.344
Goodman–Kruskal gamma (γ)0.685
Kendall's tau-b / tau-c0.494 / 0.493
Somers' d0.494 / 0.494 / 0.493
Theil's U0.154 / 0.154 / 0.154

Working from a data file? Run every SPSS CROSSTABS statistic (chi-square, Fisher, kappa, McNemar and more) with the SPSS crosstabs statistics guide.

What is Goodman and Kruskal's lambda?

Lambda is a proportional-reduction-in-error (PRE) measure for nominal variables. The idea is simple: if you had to guess a case's category with no other information, your best bet is the most common category (the mode), and you would be wrong some of the time. Lambda asks how much that error shrinks once you know the value of a second variable.

It comes in an asymmetric form — predicting one specified variable from the other — and a symmetric form that pools the prediction errors across both directions. Because it is built around the modal category, lambda has a concrete, prediction-based interpretation that many other association measures lack.

The method

Formula

Definition

λ(row|col) = ( Σ_columns (max cell count in that column) − max row total ) / ( N − max row total )

where

Σ_columns (max cell)
for each column, take the largest cell count, then sum those maxima across all columns
max row total
the largest of the row marginal totals (the overall mode of the row variable)
N
the grand total of all counts in the table
symmetric λ
pools the before-and-after prediction errors across both directions; it is not the arithmetic mean of λ(row|col) and λ(col|row)

Worked example

Worked example

Take the 3×3 table:

[[20, 10, 5], [10, 20, 10], [5, 10, 20]]

Row totals are 35, 40, 35; column totals are 35, 40, 35; N = 110.

To predict the row from the column, take the largest count in each column: 20, 20, and 20, which sum to 60. The largest row total is 40.
λ(row|col) = (60 − 40) / (110 − 40) = 20 / 70 = 0.286.

The symmetric lambda for this table is also 0.286. So λ = 0.286 — knowing the column reduces prediction error for the row by about 29%.

Using it well

When to use it

Use it when

  • Use: Both variables are nominal (unordered categories).
  • Use: You want a prediction-oriented (PRE) interpretation of association strength.
  • Use: You can specify which variable predicts which, or report the pooled symmetric coefficient.

Not the right tool when

  • Avoid: The data are ordinal and order matters — use gamma, Kendall's tau, or Somers' d instead.
  • Avoid: You expect a small but real association concentrated in non-modal categories — lambda can miss it.
  • Avoid: Note: lambda can be 0 even when a chi-square test is significant, if the modal category is the same across groups.

How to interpret it

Rule of thumb

λ = 0 means the predictor gives no help; λ = 1 means perfect prediction. For example, λ = 0.286 means a 29% reduction in prediction error.

Questions

Frequently asked questions

What does a lambda of 0 mean?

A lambda of 0 means the predictor variable gives you no help: knowing it does not reduce the errors you make when guessing the other variable's most common category. You would predict the same modal category whether or not you knew the predictor.

Why can lambda be 0 when chi-square is significant?

Lambda only rewards a predictor when it changes which category is the mode. If the same category is the most common one across every group, your best guess never changes, so lambda is 0 — even though a chi-square test can still detect a significant difference in the rest of the distribution.

Is lambda symmetric or asymmetric?

Both. There are two asymmetric lambdas, one for predicting each variable from the other, and a symmetric lambda that pools the prediction errors across both directions. The symmetric coefficient is not their arithmetic mean. Use an asymmetric form when one variable is clearly the predictor; use the symmetric form when neither is.

Sources and next steps

References & further reading

  1. [1]Goodman, L. A., & Kruskal, W. H. (1954). Measures of Association for Cross Classifications. Journal of the American Statistical Association.
  2. [2]Goodman and Kruskal's lambda — Wikipediaen.wikipedia.org

Try it on your own data — free, no signup

Upload a CSV, Excel, SPSS, Stata, SAS, R, Parquet or JSON file. Everything runs in your browser; your file never leaves your device.

Open the workspace →

← All calculators & guides