COVAR_POP() OVER ...
All functions > WINDOW FUNCTION > COVAR_POP() OVER ...
Returns the population covariance over the window frame.
Syntax
Diagram(
Sequence(
Terminal("COVAR_POP"),
Terminal("("),NonTerminal('expr_y'), Terminal(','), NonTerminal('expr_x'),Terminal(")"),
Terminal("OVER"),
Terminal("("),
NonTerminal("over_clause"),
Terminal(")"),
)
)| Parameter | Type | Required | Description |
|---|---|---|---|
expr_y | EXPRESSION | Yes | The dependent variable (y) |
expr_x | EXPRESSION | Yes | The independent variable (x) |
over_clause | OVER CLAUSE | Yes | OVER (PARTITION BY ... ORDER BY ... [FRAME ...]) |
Notes
- Computes population covariance (divides by N) over a window
- NULL values in either expression are excluded