Latin Hypercube Sampling from Multivariate Distribution #2161
-
I have a small set (
with good results If I were to use the "true" histogram to sample points, it would be contained to the few cells with values which is why I've used a GP. In order to "sample" a position from the GP, I do the following:
(where Ideally, I would like to sample this using Latin Hypercube Sampling as the output of this is the input to another Monte-Carlo simulation. However, the crux for me is that Is LHS using GPytorch feasible or is there some other solution that I should be exploring? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The standard way to sample from a MVN is to draw iid normal samples and then correlate them with a root of the covariance matrix: It’s not LHS but may be useful. If you do need to compute CDFs of MVNs we are about to add this functionality: pytorch/botorch#1394 |
Beta Was this translation helpful? Give feedback.
The standard way to sample from a MVN is to draw iid normal samples and then correlate them with a root of the covariance matrix:
xi = mu + Lv
whereLL^T = Sigma
. GPyTorch has support for this on the MVN but not for LHS. We have some utility for generating Sobol qMC samples in BoTorch that could be used instead here: https://github.com/pytorch/botorch/blob/main/botorch/utils/sampling.py#L199It’s not LHS but may be useful.
If you do need to compute CDFs of MVNs we are about to add this functionality: pytorch/botorch#1394