Documentation Index
Fetch the complete documentation index at: https://docs.oxla.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheREGR_INTERCEPT() aggregate function calculates the y-intercept of the univariate linear regression line for a group of data points, where the dependent variable is (y) and the independent variable is (x). The intercept is the point where the regression line crosses the y-axis when x=0.
Syntax
The syntax for this function is as follows:Parameters
y: variable being predictedx: variable used for prediction
Example
We’re going to use a simplified version of thefilm table from the Pagila database, containing only the title, length and rating columns. The complete schema for the film table can be found on the
Pagila database website.
REGR_INTERCEPT() function to calculate the y-intercept of the regression line for valid pairs of rating and length: