Main approaches to build the full distribution
| Method | One-time cost | Reusable | Accuracy |
|---|---|---|---|
| Monte Carlo per y | cheap | ❌ | high |
| Quadrature | medium | ❌ | high |
| Sampling + KDE | expensive | ✅ | high |
| Gaussian mixture | expensive | ✅ | very high |
Grid evaluation (slow to build, but fast to evaluate)
✅ Pros:
- simple
- robust
❌ Cons:
- expensive to build
- resolution limited
Build density from y samples? (fast to build, but slow to evaluate)
- generate y samples
- build density from the samples (e.g., kernel density estimation, histogram, etc.)
✅ Pros:
- very flexible
- works perfectly with black-box g
- reusable
❌ Cons:
- KDE smoothing error
Mixture approximation (simple and precise, but slow to evaluate)
Note
- This is what i have done with MC sampling earlier
Surrogate model of g(x)
- Approximate g(x) with a smooth model
- Use fast integration afterward
