Shapiro-Wilk の正規性検定です。R の shapiro.test() と同等です。NaN の値は除かれます。標本サイズは 3 以上 5000 以下である必要があります。
shapiro.test()
NaN
const x = [2.1, 3.4, 1.9, 5.6, 4.4, 3.3, 2.8, 4.1, 3.9, 6.2];const r = shapiroTest(x);r.statistic; // 0.9586525103840963r.pValue; // 0.7704047318146288 コピー
const x = [2.1, 3.4, 1.9, 5.6, 4.4, 3.3, 2.8, 4.1, 3.9, 6.2];const r = shapiroTest(x);r.statistic; // 0.9586525103840963r.pValue; // 0.7704047318146288
Shapiro-Wilk の正規性検定です。R の
shapiro.test()と同等です。NaNの値は除かれます。標本サイズは 3 以上 5000 以下である必要があります。