isSignificant

fun isSignificant(alpha: Double = 0.05): Boolean(source)

Returns true if the test result is statistically significant at the given significance level.

A result is significant when the p-value is less than alpha, meaning there is sufficient evidence to reject the null hypothesis.

Example:

val result = tTest(doubleArrayOf(5.0, 6.0, 7.0), mu = 0.0)
result.isSignificant() // true at default alpha = 0.05
result.isSignificant(0.01) // check at stricter 1% level

Return

true if pValue<alpha.

Parameters

alpha

the significance level (Type I error rate). Defaults to 0.05 (5%).