ClickHouse/docs/en/sql-reference/aggregate-functions/reference/analysis_of_variance.md
2024-05-10 20:19:32 +02:00

942 B

slug sidebar_position
/en/sql-reference/aggregate-functions/reference/analysis_of_variance 6

analysisOfVariance

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

Parameters

  • val: value.
  • group_no : group number that val belongs to.

:::note Groups are enumerated starting from 0 and there should be at least two groups to perform a test. Moreover there should be at least one group with the number of observations greater than one. :::

Returned value

Implementation details

Example

Query:

Result: