variance_y()
calculates the skewness for all the values of the y variable, independent of values of the x variable.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Calculate the variance from a two-dimensional statistical aggregate for the dimension specified
variance_y()
calculates the skewness for all the values of the y variable, independent of values of the x variable.
SELECT variance_y(stats_agg(data, data))
FROM generate_series(0, 100) data;
variance_y
----------
858.5
variance_y(
summary StatsSummary2D,
[ method TEXT ]
) RETURNS DOUBLE PRECISION
variance_x(
summary StatsSummary2D,
[ method TEXT ]
) RETURNS DOUBLE PRECISION
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| summary | StatsSummary2D | - | ✔ | The statistical aggregate produced by a stats_agg call |
| method | TEXT | sample | - | The method used for calculating the standard deviation. The two options are population and sample, which can be abbreviated to pop or samp |
| Column | Type | Description |
|---|---|---|
| variance | DOUBLE PRECISION | The variance of the values in the statistical aggregate |