Matrix stats aggregation

Matrix stats aggregation #

A multi-value metrics aggregation computing counts, means, variances, skewness, kurtosis and the correlation matrix across several numeric fields at once.

Example #

amount is derived from price × qty, so their correlation is ~1 — the matrix makes such relationships visible at a glance.

Parameters for matrix_stats #

  • fields
    (Required, string array) Two or more numeric fields to correlate.
Calendar September 26, 2026
Edit Edit this page