The ML.ARIMA_COEFFICIENTS function
This document describes theML.ARIMA_COEFFICIENTS function, which lets yousee the ARIMA coefficients and the weights of the external regressors forARIMA_PLUS andARIMA_PLUS_XREG time series models.
Syntax
ML.ARIMA_COEFFICIENTS( MODEL `PROJECT_ID.DATASET.MODEL`)
Arguments
ML.ARIMA_COEFFICIENTS takes the following arguments:
PROJECT_ID: your project ID.DATASET: the BigQuery dataset that containsthe model.MODEL: the name of the model.
Output
ML.ARIMA_COEFFICIENTS returns the following columns:
time_series_id_colortime_series_id_cols: a value that contains theidentifiers of a time series.time_series_id_colcan be anINT64orSTRINGvalue.time_series_id_colscan be anARRAY<INT64>orARRAY<STRING>value. Only present when forecasting multiple time seriessimultaneously. The column names and types are inherited from theTIME_SERIES_ID_COLoption as specified in the model creation query.ar_coefficients: anARRAY<FLOAT64>value that contains the autoregressivecoefficients, which corresponds to non-seasonal p.ma_coefficients: anARRAY<FLOAT64>value that contains the moving-averagecoefficients, which corresponds to non-seasonal q.intercept_or_drift: aFLOAT64value that contains the constant term ofthe ARIMA model. By definition, the constant term is calledinterceptwhennon-seasonal d is0, anddriftwhen non-seasonal d is1.intercept_or_driftis always0when non-seasonal d is2.processed_input: aSTRINGvalue that contains the name of the modelfeature input column. The value of this column matches the name of thefeature column provided in thequery_statementclausethat was used when the model was trained.weight: when theprocessed_inputvalue is numerical,weightcontains aFLOAT64value and thecategory_weightscolumn containsNULLvalues.When theprocessed_inputvalue is non-numerical and has been converted todummy encoding, theweightcolumn isNULLand thecategory_weightscolumn contains the category names and weights for each category.category_weights.category: aSTRINGvalue that contains the categoryname if theprocessed_inputvalue is non-numeric.category_weights.weight: aFLOAT64that contains the category's weightif theprocessed_inputvalue is non-numeric.
ARIMA_PLUS models, this function returns the ARIMAcoefficients for all time series, in ascending order of thetime_series_id_col ortime_series_id_cols value.Example
The following example retrieves the model coefficients information fromthe modelmydataset.mymodel in your default project:
SELECT*FROMML.ARIMA_COEFFICIENTS(MODEL`mydataset.mymodel`)
What's next
- For information about model weights support in BigQuery ML, seeBigQuery ML model weights overview.
- For more information about supported SQL statements and functions for timeseries forecasting models, seeEnd-to-end user journeys for time series forecasting models.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.