Standard Case: Predicting Customer Lifetime Value (CLV)
Scénario de test & Cas d'usage
Business Context
A retail company has built a BART model to predict the potential lifetime value of new customers based on their initial demographic data and first-week purchase behavior. The goal is to score a new batch of customers to identify high-value prospects for a premium loyalty program.
Create a training set with customer demographics and first-week spend, and a similar scoring set for new customers. A bartGauss model is trained to predict 'clv_actual'.
The output table 'mycas.clv_predictions' should be created. It must contain the 'customer_id' and 'age' columns from the input table. It must also contain the newly generated columns: 'Predicted_CLV', 'Lower_99_CLV', 'Upper_99_CLV', and 'Prediction_Error'. The values in these columns should be populated for all 500 customers from the scoring table.