Predicted Target ≠ Sum of Contributions (Case Study Notebook) #1823
Unanswered
RamiFisherTW
asked this question in
Q&A
Replies: 1 comment
-
Yes, I'm seeing the same problem by me as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While working with the case study notebook in the PyMC Marketing Mix Model repository, I observed a consistent discrepancy between the predicted target (
y
) values and the sum of individual contribution components. These values should mathematically align, but they differ significantly across the time series.🧪 Reproduction Steps
✅ Expected Behavior
The sum of all contributions—channel, intercept, control, seasonality—should match the predicted target values when using
original_scale=True
.Specifically:
y_t ≈ channel_t + intercept_t + control_t + seasonality_t
❌ Actual Behavior
Even with consistent use of
original_scale=True
and the same scaling factors:posterior_predictive["y"]
andy_pred_train["y"]
both differ from the sum of contributions.Possible causes:
compute_mean_contributions_over_time()
🙏 Request for Guidance
Would love clarification on the following:
y
?compute_mean_contributions_over_time()
or the transformation pipeline?Beta Was this translation helpful? Give feedback.
All reactions