analysisOfVariance
Introduced in: v22.10.0
Provides a statistical test for one-way analysis of variance (ANOVA test). It is a test over several groups of normally distributed observations to find out whether all groups have the same mean or not.
Syntax
analysisOfVariance(val, group_no)Aliases: anova
Arguments
val— Value.(U)Int*orFloat*orDecimalgroup_no— Group number thatvalbelongs to.(U)Int*orFloat*orDecimal
Returned value
Returns a tuple with the F-statistic and p-value. Tuple(Float64, Float64)
Examples
Basic usage
SELECT analysisOfVariance(number, number % 2) FROM numbers(1048575);┌─analysisOfVariance(number, modulo(number, 2))─┐
│ (0,1) │
└───────────────────────────────────────────────┘