What does Ice, Aroma and Blind Tests in Frozen Fatty Pulp conclude, in numbers, about “The Arithmetic of the Triangle Test: Critical Numbers, d′ and Minimum Sample Size”?

Answer: Chapter 5 gives exact critical values for the triangle test and the Thurstonian model: at a sensory distance d′ of one the proportion correct is only 0.4180, and detecting it with eighty per cent power takes 202 assessors.

Scope of the numbers: Its parameters are illustrative; all calculations are generated by its programs; the book is not medical or nutritional advice, claims no health benefit for any food, and its pricing formula is not personalised financial or business advice. Marked boxes separate published evidence, runnable Python calculations (21 programs), classical sources and the author's hypotheses.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.4180, 202

targetPcfirst n 0.80safe n 0.80first n 0.90
d' 1.00.4180202220283
d' 1.50.5065535771
d' 2.00.6048232330
pd 0.200.46678794117
pd 0.300.5333404253
saw-tooth at d' 1.5 (Pc 0.5065):
n60 0.842 n61 0.870 n62 0.839 n63 0.867 n64 0.836 n65 0.864
Show the full program
# Chapter 5. p53: exact power and minimum sample size of the triangle
# test, and the saw-tooth that makes "the smallest n" ambiguous.
# Test: reject when X >= x_c(n), alpha = 0.05 (as in p51 and ISO 4120).
# Power at a true Pc from the Thurstonian model (p52) or from the
# guessing model Pc = 1/3 + 2/3 pd.  "first n" is the smallest n with
# power >= target; "safe n" the smallest n from which power never drops
# below the target again (checked up to n = 700).
import math

ALPHA, NMAX = 0.05, 700


def pmf_from(n, x, p):
    """binomial probabilities for k from x up to n"""
    out = [math.comb(n, x) * p ** x * (1.0 - p) ** (n - x)]
    for k in range(x, n):
        out.append(out[-1] * (n - k) / (k + 1) * p / (1.0 - p))
    return out


CRIT = {}
for n in range(3, NMAX + 1):
    probs = pmf_from(n, 0, 1.0 / 3.0)
    acc, x = 0.0, n + 1
    while x > 0 and acc + probs[x - 1] <= ALPHA:
        acc += probs[x - 1]
        x -= 1
    CRIT[n] = x


def power(n, pc):
    return math.fsum(pmf_from(n, CRIT[n], pc))


CACHE = {}


def sizes(pc, target):
    if pc not in CACHE:
        CACHE[pc] = {n: power(n, pc) for n in range(3, NMAX + 1)}
    pw = CACHE[pc]
    first = min(n for n in pw if pw[n] >= target)
    safe = NMAX
    while safe > 3 and pw[safe - 1] >= target:
        safe -= 1
    return first, safe


CASES = (("d' 1.0", 0.4180), ("d' 1.5", 0.5065), ("d' 2.0", 0.6048),
         ("pd 0.20", 1 / 3 + 2 / 3 * 0.20), ("pd 0.30", 1 / 3 + 0.2))
print("target     Pc      first n 0.80  safe n 0.80  first n 0.90")
for name, pc in CASES:
    f8, s8 = sizes(pc, 0.80)
    f9, _ = sizes(pc, 0.90)
    print("{:8s}  {:6.4f}   {:10d}   {:10d}   {:11d}"
          .format(name, pc, f8, s8, f9))
print("saw-tooth at d' 1.5 (Pc 0.5065):")
print("   " + "  ".join("n{} {:.3f}".format(n, power(n, 0.5065))
                       for n in range(60, 66)))

Single source and citation

Fan, Y. (2026). Ostwald Ripening in Liquid-Nitrogen-Frozen High-Fat Fruit Pulp, Volatile Thiol Release Kinetics and Triangle-Test Sensory Statistics (Version 1.0.0), Chapter 5: The Arithmetic of the Triangle Test: Critical Numbers, d′ and Minimum Sample Size. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-169 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026169,
  author    = {Fan, Yafu},
  title     = {Ostwald Ripening in Liquid-Nitrogen-Frozen High-Fat Fruit Pulp, Volatile Thiol Release Kinetics and Triangle-Test Sensory Statistics},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book