Median
Definition
The median algorithm returns the middle value from a sorted list of validator reports. It is most naturally used for numerical data but can be applied to any ordered set of data.
A possible variant is the weighted median - Let be the stake of data validator , and assume that . Also, for simplicity, assume that are sorted. The weighted median is an element such that
Rationale and Properties
Resistant to extreme values and outliers, as they only affect the tails of the sorted list—ignores the impact of anomalous data points due to its reliance on central values.
The aggregation value will always be between the honest reports, assuming a majority of the stake belongs to honest validators (weighted median)
Limitations
May not reflect the influence of large/small prices if they are outliers
Non-incremental - the aggregated value cannot be updated upon each report in an online manner (as opposed to mean, for example, which supports where
is the mean after reports and is the -th report).
Last updated