Home
/
Categories
/
Home › Math & Conversions › Core Math & Algebra › G-test (likelihood-ratio test) G-test Calculator (Likelihood-Ratio Test) This calculator implements the statistical G-test (likelihood-ratio test) for categorical data.
It is not related to medical or prenatal screening products sometimes called “G-test”. Use it to compute the G statistic, degrees of freedom and p-value for goodness-of-fit problems and contingency tables (tests of independence). G-test calculator Test type Goodness-of-fit Independence (contingency table) All inputs are counts (frequencies). Use comma or dot as decimal separator; counts are rounded to non-negative numbers. Number of categories Between 2 and 10 categories. Expected pattern under H₀ Equal probabilities (uniform) Custom expected counts For “custom expected”, the calculator rescales your expected counts to match the total sample size. Observed counts Expected counts (before rescaling) Parameters estimated from data df = k − 1 − parameters. For many textbook problems this is 0. Context
/
variable (optional) Rows (r) Columns (c) Build table Observed counts (contingency table) Each cell must be a non-negative count. Empty cells are treated as zero. Row
variable (optional) Rows (r) Columns (c) Build table Observed counts (contingency table) Each cell must be a non-negative count. Empty cells are treated as zero. Row
Calculators in variable (optional) Rows (r) Columns (c) Build table Observed counts (contingency table) Each cell must be a non-negative count. Empty cells are treated as zero. Row.