Generating multivariate normal vectors under constraints

In summary, you are looking for a way to generate a random normal vector that has a fixed value for the second coordinate.
  • #1
mockle
3
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
  • #2
Since you are fixing 2 coordinates, you need to generate a 2 dimensional vector?
 
  • #3
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
 
  • #4
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.
 
  • #5
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
 

1. What is a multivariate normal vector?

A multivariate normal vector is a set of correlated random variables that follow a normal distribution. It is often used to model complex systems with multiple variables.

2. What are constraints in the context of generating multivariate normal vectors?

Constraints in this context refer to limitations or restrictions placed on the values of the variables in the multivariate normal vector. These constraints can be based on various factors, such as physical laws, experimental data, or known relationships between variables.

3. Why is it important to generate multivariate normal vectors under constraints?

Generating multivariate normal vectors under constraints allows for a more accurate representation of real-world systems by accounting for the relationships between variables. This can lead to more reliable predictions and insights.

4. How are multivariate normal vectors generated under constraints?

There are several methods for generating multivariate normal vectors under constraints, such as the Gibbs sampling method or the Metropolis-Hastings algorithm. These methods involve iteratively sampling from the conditional distributions of each variable while satisfying the constraints.

5. What are some applications of generating multivariate normal vectors under constraints?

This technique is commonly used in fields such as finance, physics, and engineering for modeling and analyzing complex systems. It can also be applied in machine learning and data analysis to generate synthetic data sets that mimic real-world data with known relationships between variables.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
11
Views
12K
  • Calculus
Replies
1
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
3K
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
344
  • Set Theory, Logic, Probability, Statistics
Replies
27
Views
8K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
9
Views
2K
Back
Top