Generating multivariate normal vectors under constraints

Click For Summary

Discussion Overview

The discussion revolves around generating random vectors from a multivariate normal distribution while imposing constraints on certain elements of the vector. Participants explore methods for conditioning the distribution based on fixed values, particularly in the context of varying dimensions and the number of fixed coordinates.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested

Main Points Raised

  • One participant seeks a method to generate a random normal vector with specific elements fixed, providing an example of a four-dimensional vector with constraints on the second and third elements.
  • Another participant suggests that fixing coordinates implies the need to generate a lower-dimensional vector.
  • A participant clarifies that the unfixed coordinates should follow a probability distribution conditioned on the fixed values, using a two-dimensional normal distribution as an example.
  • It is mentioned that the conditional distribution of the multivariate normal can be expressed in terms of the Schur complement, which may be relevant for the problem at hand.
  • Concerns about numerical issues with ill-conditioned covariance matrices are raised, particularly in relation to the example provided.
  • Areas of Agreement / Disagreement

    Participants generally agree on the need for a conditional approach to generating the random vectors, but there are varying perspectives on the specifics of implementation and the implications of covariance matrix characteristics.

    Contextual Notes

    Participants note potential numerical issues with ill-conditioned covariance matrices, which may affect the generation of random vectors under constraints.

    Who May Find This Useful

    This discussion may be useful for researchers or practitioners in statistics, data science, or fields requiring multivariate analysis, particularly those interested in constrained random sampling techniques.

mockle
Messages
3
Reaction score
0
Hello all,

I wonder if anybody knows of a way of generating a random normal vector (i.e. a variate from a multivariate normal distribituion) in which one or more of the vector's values are fixed?. For example, I may want to choose a random vector from a four-dimensional multivariate normal distribution constrained such that the second element of the random vector is equal to 0.1 and the third element is equal to 0.3; so I just want to pick values for the first and last element subject to these constraints).

In order to generate a completely random vector I have been using the method described on the http://en.wikipedia.org/wiki/Multivariate_normal_distribution#Drawing_values_from_the_distribution", that is, obtaining the dot product of the cholesky decomposition of the covariance matrix of the distribution and a vector of independent standard normal variates. I gather there may be a way of reverse engineering this, and working out what values in the vector "Z" are necessary to obtain the desired constrained output. But I can't find a way to do it!

I'd very much appreciate any help or suggestions.

Best wishes,

Mockle
 
Last edited by a moderator:
Physics news on Phys.org
Since you are fixing 2 coordinates, you need to generate a 2 dimensional vector?
 
That's right, though number of fixed coordinates will vary as will the size of the vector. The unfixed coordinates should have a probability distribution conditioned on the fixed values, if that makes sense.

Another way to put it: Suppose we have a two dimensional normal distribution with covariance matrix {{1,0.99},{0.99,1}}. I know how to draw random vectors {x,y} from this distribution. But let's suppose that the first element in the random vector (x) must be fixed at some constant value. In that case I don't need to draw random vectors from the distribution, I Just need to pick random y's. Since the correlation coefficient here is 0.99, my y's should be clustered around the value of x. If the correlation coefficient were lower, my y's would have more variability. I hope that makes sense!

Thanks
 
What you're looking for would be the conditional distribution of the multivariate normal, which is itself multivariate normal and can be expressed in terms of the Schur complement.

Keep in mind numerical issues that might come up if dealing with ill-conditioned covariance matrices like the one you just described.
 
Thanks bpet, I'll look into that. The real-life covariance matrices won't be as extreme as that one, which was just given as an example. So hopefully I can get it working.

Cheers
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 11 ·
Replies
11
Views
14K
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 27 ·
Replies
27
Views
9K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K