Unlock the power of your data in the cloud! Get hands-on with Google Cloud's core data services like BigQuery and Looker to validate your practical skills in data ingestion, analysis, and management, and earn your Associate Data Practitioner certification!
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
A data analyst at a retail company trained a time-series model named sales_data.daily_revenue_model using the ARIMA_PLUS model type in BigQuery ML. The business team needs to project future daily sales for the next 30 days with an 80% prediction interval.
Which BigQuery ML SQL query should the analyst run to generate these future values?
ML.FORECAST is a specialized BigQuery ML table-valued function used to perform batch inference on trained time-series models (such as ARIMA_PLUS and ARIMA_PLUS_XREG). It projects future values across a specified temporal range while calculating lower and upper bound prediction intervals directly within SQL queries.
ML.FORECAST executes multi-step ahead time-series forecasting, generating expected values for upcoming timestamps based on learned trends and seasonality.30 AS horizon explicitly instructs the model to predict the next 30 discrete time intervals (days) ahead from the end of the historical training data.0.8 AS confidence_level produces prediction intervals bounded between lower and upper prediction limits at an 80% confidence interval.forecast_value, standard_error, lower_bound, and upper_bound for each step in the horizon.STRUCT, including horizon (default is 30 or 1000 depending on cadence) and confidence_level (between 0.0 and 1.0; default is 0.95).TIME_SERIES_ID_COL parameter.ML.FORECAST is the standard, purpose-built function in BigQuery ML for time-series projections using ARIMA_PLUS. It directly implements the required horizon and confidence parameters with proper decimal formatting (0.8 for 80%), avoiding the overhead of custom inference scripts or general-purpose prediction functions.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.