Matrix aggregations produce a matrix result from multiple fields. They do not support scripting. Let's cover the different types of matrix aggregations.
Matrix aggregations
Matrix stats
The aggregation computes the following statistics:
- count: The number of samples per field
- mean: The average value for each field
- variance: The deviation of the samples from the mean per field
- skewness: The measurement quantifying the asymmetric distribution per field
- kurtosis: The measurement quantifying the shape of distribution per field
- covariance: The matrix that describes how changes in fields are associated with one another
- correlation: The covariance matrix from -1 to 1; describes the relationship between field distributions
It...