Skip to content

Add blog on mixed distributions in QMCPy - #5

Open
Laasya-73 wants to merge 1 commit into
QMCSoftware:mainfrom
Laasya-73:blog/mixed-distributions
Open

Laasya-73 wants to merge 1 commit into
QMCSoftware:mainfrom
Laasya-73:blog/mixed-distributions

Conversation

@Laasya-73

Copy link
Copy Markdown
Collaborator

Summary

This PR adds a new blog post introducing the Mixture TrueMeasure in QMCPy and exploring two approaches to working with mixture distributions:

  • Hierarchical mixture sampling: Generating samples by selecting a component according to its probability.
  • Probability-weighted component integration: Estimating expectations for individual components and combining them using their mixture probabilities.

The article explains the motivation through a practical manufacturing example and compares both approaches at equal computational cost.

What's Included

  • An introduction to mixture distributions and QMCPy's Mixture implementation.
  • A comparison using one-dimensional and correlated higher-dimensional Gaussian mixtures.
  • Numerical results from randomized quasi-Monte Carlo experiments, including 100 paired mixture instances.
  • Four figures illustrating the mixture distribution and numerical comparisons.
  • Practical guidance on when each approach is useful.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The analysis notebook must be publicly accessible and linked so readers can reproduce the numerical results.

1 open issue
What changed in this PR

Adds a QMCPy website article introducing mixture sampling and comparing it with probability-weighted component integration.

Changes:

  • Explains the Mixture API and equal-evaluation-budget experiments.
  • Presents numerical comparisons and practical guidance.
  • Adds article-specific styling for wide equations.
File Description
blogs/​mixed-distributions-in-qmcpy/​index.qmd Introduces mixture distributions, examples, and numerical comparisons.
blogs/​mixed-distributions-in-qmcpy/​equations.css Enables horizontal scrolling for wide display equations.

Review effort: Balanced


Gaussian transforms use QMCPy's default PCA covariance factorization. These public-API calculations put $V$ first; the older exploratory demo used another coordinate ordering and covariance factors. Their finite-budget errors can differ even though the target distributions agree.

The numerical source is `demos/mixed_distributions_blog_analysis.ipynb`.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants