Question 1
You want to build a model to predict the likelihood of a customer clicking on an online advertisement. You have historical data in BigQuery that includes features such as user demographics, ad placement, and previous click behavior. After training the model, you want to generate predictions on new dat
a. Which model type should you use in BigQuery ML?
Comprehensive and Detailed In-Depth
Predicting the likelihood of a click (binary outcome: click or no-click) requires a classification model. BigQuery ML supports this use case with logistic regression.
Option A: Linear regression predicts continuous values, not probabilities for binary outcomes.
Option B: Matrix factorization is for recommendation systems, not binary prediction.
Option C: Logistic regression predicts probabilities for binary classification (e.g., click likelihood), ideal for this scenario and supported in BigQuery ML.
Option D: K-means clustering is for unsupervised grouping, not predictive modeling. Extract from Google Documentation: From 'BigQuery ML: Logistic Regression' (https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-create#logistic_reg): 'Logistic regression models are used to predict the probability of a binary outcome, such as whether an event will occur, making them suitable for classification tasks like click prediction.' Reference: Google Cloud Documentation - 'BigQuery ML Model Types' (https://cloud.google.com/bigquery-ml/docs/introduction).
Extract from Google Documentation: From 'BigQuery ML: Logistic Regression' (https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-create#logistic_reg): 'Logistic regression models are used to predict the probability of a binary outcome, such as whether an event will occur, making them suitable for classification tasks like click prediction.'
Option D: K-means clustering is for unsupervised grouping, not predictive modeling. Extract from Google Documentation: From 'BigQuery ML: Logistic Regression' (https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-create#logistic_reg): 'Logistic regression models are used to predict the probability of a binary outcome, such as whether an event will occur, making them suitable for classification tasks like click prediction.' Reference: Google Cloud Documentation - 'BigQuery ML Model Types' (https://cloud.google.com/bigquery-ml/docs/introduction).



