T_test

T-test aggregation

/ T_test, / Aggregation

T-test aggregation #

A single-value metrics aggregation for a Student’s t-test over two numeric fields. Positive values mean a tends to be larger than b.

How it works #

The engine collects every value of a.field and every value of b.field across the bucket’s documents — the two samples grow independently, so a document missing one field still contributes to the other sample — and computes Welch’s two-sample t-statistic:

...