TriaLab Power Studio · Method

Chi-square goodness of fit — one distribution against a reference

Categorical & ordinal Validated 3 published examples

Sizes a single-group study whose outcome falls into three or more categories, for the question ‘does the distribution differ from a known reference?’, by Pearson’s chi-square test. The effect is Cohen’s w or the two distributions themselves.

Also known as: goodness of fit, Pearson chi-square, multinomial test, Cohen’s w, one-way chi-square, distribution test, normality test.

Maturity

Validated: 3 published examples from 2 independent publications (Chow, Shao, Wang & Lokhnygina 2017; PASS) reproduce on every build (ADR-0001 §58).

What it solves for

  • Sample size: offered.
  • Power: offered.
  • Detectable effect: offered.
  • Precision: not offered — An omnibus chi-square has no single estimand to put a confidence interval around.
  • Assurance: not offered — No source on disk states a prior on this design’s effect, so the assurance modifier is not admitted here.
  • Duration: not offered — This design has no time axis: each subject is classified once (or once before and once after), so calendar time does not enter the power function.

Size axes:

  • Subjects classified (participants), Count

Inputs

Every field as the form shows it, with its help. A field marked advanced sits behind Expert mode.

Common to every method

  • Significance level (alpha) (alpha): a number, above 0 and below 1; default 0.05; typically 0.01 to 0.05 (0.05 in most trials; 0.01 for confirmatory claims); entered as proportion (0-1) or percent The type I error rate. Interpreted as two-sided when testing plain equality and one-sided when a margin frame is active, following the usual convention.
  • Target power (power_target): a number, above 0 and below 1; default 0.8; typically 0.8 to 0.9 (0.80 is conventional; 0.90 for definitive trials); entered as proportion (0-1) or percent The chance of a significant result if the assumed effect is real. Used when solving for sample size or detectable effect; ignored when solving for power.

The method’s own

  • Number of categories (categories): a whole number, at least 2 and at most 64; default 3; typically 3 to 10 (two categories are a one-proportion test) How many categories the outcome has. The test has K − 1 degrees of freedom, less one for each distribution parameter estimated from the sample.
  • Effect size w (Cohen) (effect_size_w): a number, above 0; default 0.3; typically 0.1 to 0.5 (Cohen’s small to large) Cohen’s w = √Σ(p₁ − p₀)²/p₀ over the categories: the root of the chi-square statistic per subject. Cohen calls 0.1 small, 0.3 medium and 0.5 large. Enter the two distributions instead to have it computed.
  • Reference distribution (null_probability): one number per element, as many as categories; default (1, 1, 1) The probability of each category under the null hypothesis — a historical control, a theoretical distribution. Counts or percentages are accepted: the list is scaled to sum to one.
  • Anticipated distribution (alternative_probability): one number per element, as many as categories; default (1, 1.5, 2) The probability of each category the trial expects to observe. Counts or percentages are accepted: the list is scaled to sum to one.
  • Parameters estimated from the sample (parameters_estimated), advanced: a whole number, at least 0 and at most 60; default 0 How many parameters of the reference distribution are estimated from the same data — two for a test of normality (mean and variance), none when the reference is fully specified. Each one costs a degree of freedom (Cohen §7.2.1; PASS 250 Example 4).

Sizes entered when another axis is solved for

  • Subjects classified (participants): a whole number, at least 1 Subjects classified. Required when solving for power or detectable effect; produced by the solver when solving for sample size.

Ways to express an input

Departure from the reference — Cohen’s w directly, or the reference and anticipated distributions it is computed from.

  • Effect size w, the form’s default: One number; Cohen’s conventions apply. (fields effect_size_w)
  • Two distributions: The reference and the anticipated distribution, one probability per category; w is derived and shown. (fields null_probability, alternative_probability)

Modifiers admitted

  • dropout: Dropout

Published examples it reproduces (3)

Each is a worked example: the inputs as a user enters them, and the number the source prints, which the engine reproduces within the tolerance on every build (the Validation screen runs them on your machine).

Source Example Solves for Inputs Published
Chow, Shao, Wang & Lokhnygina 2017, §6.1.2 (printed p. 133) Three categories, anticipated 0.20/0.60/0.20 against a reference 0.25/0.45/0.30 (w² 0.0933), two-sided 0.05, 80% power => 104 subjects (103.23) Sample size alpha = 0.05; alternative_probability = (0.2, 0.6, 0.2); categories = 3; null_probability = (0.25, 0.45, 0.3); power_target = 0.8; effect expressed as distributions participants = 104 ± 0
PASS chapter 250, Example 4 (printed p. 250-10) Five intervals, mean and variance estimated (2 df), w 0.20, alpha 0.10, power 0.80 => 193 Sample size alpha = 0.1; categories = 5; effect_size_w = 0.2; parameters_estimated = 2; power_target = 0.8; effect expressed as w participants = 193 ± 0
PASS chapter 250, Example 4 (printed p. 250-10) The same at 193 => power 0.80046 Power alpha = 0.1; categories = 5; effect_size_w = 0.2; parameters_estimated = 2; participants = 193; power_target = 0.8; effect expressed as w power = 0.80046 ± 0.000005

Sources

  1. Chow S-C, Shao J, Wang H, Lokhnygina Y. Sample Size Calculations in Clinical Research. 3rd ed. Boca Raton: Chapman & Hall/CRC; 2017. §6.1, Equation 6.1.
  2. Cohen J. Statistical Power Analysis for the Behavioral Sciences. 2nd ed. Hillsdale, NJ: Lawrence Erlbaum; 1988. Chapter 7, the effect size w (§7.2.1).
  3. NCSS, LLC. PASS 2026 documentation, chapter 250: Chi-Square Tests. Kaysville, UT: NCSS, LLC; 2026.

This page was generated from TriaLab Power Studio 2.0.1's engine, as the method is built, and is published in English only. All methods →