multivariate opmatrix → tableimport fullseye as fs; fs.ledger.spc_hotelling_t2(data, alpha=0.0027, mean=None, cov=None) (実装を直接呼ぶなら import spc; spc.spc_hotelling_t2(data, alpha=0.0027, mean=None, cov=None)、台帳から引くなら opsspc.get("spc_hotelling_t2"))Multivariate SPC by Hotelling’s T² with an F-distributed control limit.
data is a 2-D array of shape (m, p) — m observations of p
correlated features. With the sample mean vector mu and covariance S
(unless passed in explicitly), each row’s statistic is::
T^2_i = (x_i - mu)' S^-1 (x_i - mu)
charted against the phase-II control limit::
UCL = p (m+1)(m-1) / (m (m-p)) * F_{alpha, p, m-p}
at false-alarm rate alpha (default 0.0027, the 3-sigma-equivalent). Returns
a dict with the per-row t2 array, the ucl, the integer indices
out_of_control, and in_control. The mean row (x == mu) has
T^2 == 0 (pinned in the tests).
Raises ValueError: a non-2-D / empty data, fewer observations than
features plus one (covariance not invertible), alpha outside (0, 1), a
singular covariance, or non-finite / mislabelled input.
py -3.11 examples/poc_spc.pytable を入力に取れる)—
multivariate)—
Provenance: spc.py — SPC operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.