Skip to content

Bayesian fit#1

Merged
RyanAugust merged 1 commit into
mainfrom
bayes
May 28, 2026
Merged

Bayesian fit#1
RyanAugust merged 1 commit into
mainfrom
bayes

Conversation

@RyanAugust

Copy link
Copy Markdown
Owner
  • Bayesian MCMC Engine: Added MarketingReturnCurve.fit_bayesian(), which utilizes a Metropolis-Hastings sampler to estimate the joint posterior distribution of the Hill Curve parameters (α, β, K).
  • Prior Support: Users can now pass a priors dictionary (LogNormal parameters) to incorporate domain knowledge or results from previous models (e.g., Google Meridian).
  • Posterior Access: A new posterior_samples attribute stores the full MCMC chains, allowing users to perform custom risk analysis or extract credible intervals.
  • Probabilistic Predictions: Updated predict_incremental_return and predict_marginal_return with a use_samples=True flag to return a distribution of possible outcomes instead of a single point estimate.
  • Uncertainty Visualization: Enhanced plot_response_curve to automatically render 90% credible intervals, providing a clear visual representation of model confidence.

@RyanAugust RyanAugust self-assigned this May 28, 2026
@RyanAugust RyanAugust added the enhancement New feature or request label May 28, 2026
@RyanAugust RyanAugust merged commit 6908975 into main May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant