AnovaResult

data class AnovaResult(val fStatistic: Double, val pValue: Double, val dfBetween: Int, val dfWithin: Int, val ssBetween: Double, val ssWithin: Double, val msBetween: Double, val msWithin: Double)(source)

The result of a one-way ANOVA test.

Contains the F-statistic, p-value, and the full ANOVA decomposition into between-group and within-group components.

Example:

val result = oneWayAnova(group1, group2, group3)
result.fStatistic // ratio of between-group to within-group variance
result.pValue // p-value from F-distribution
result.dfBetween // number of groups minus one
result.dfWithin // total observations minus number of groups

Constructors

Link copied to clipboard
constructor(fStatistic: Double, pValue: Double, dfBetween: Int, dfWithin: Int, ssBetween: Double, ssWithin: Double, msBetween: Double, msWithin: Double)

Properties

Link copied to clipboard

the between-group degrees of freedom, equal to the number of groups minus one.

Link copied to clipboard

the within-group degrees of freedom, equal to the total number of observations minus the number of groups.

Link copied to clipboard

the F-statistic, computed as the ratio of between-group variance to within-group variance. Larger values indicate greater differences between groups.

Link copied to clipboard

the mean square between groups (ssBetween / dfBetween).

Link copied to clipboard

the mean square within groups (ssWithin / dfWithin).

Link copied to clipboard

the probability of observing an F-statistic at least as extreme as the computed value, assuming all group means are equal. Smaller values indicate stronger evidence that at least one group mean differs.

Link copied to clipboard

the sum of squares between groups, measuring the variation due to differences between group means.

Link copied to clipboard

the sum of squares within groups, measuring the variation within each group.