Shapiro-Wilk test of normality. Equivalent to R's shapiro.test(). NaN values are dropped; the sample size must be between 3 and 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 Copy
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 test of normality. Equivalent to R's
shapiro.test().NaNvalues are dropped; the sample size must be between 3 and 5000.