BigQuery has some statistical aggregation functions such as STDDEV(X) and CORR(X, Y), but it doesn\'t offer functions to directly perform linear regression.
How can
Good news! BigQuery now has native support for ML.
To produce a linear regression CREATE MODEL, and then predict with SELECT FROM ML.PREDICT.
CREATE MODEL
SELECT FROM ML.PREDICT
Docs:
Fun example: When will Stack Overflow reply