[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: generating constrained random vectors - a proof ( i think)
From: |
jalex |
Subject: |
Re: generating constrained random vectors - a proof ( i think) |
Date: |
Fri, 8 Oct 1999 18:17:34 -0700 (PDT) |
M. Lang / S. Railsback writes:
>
> a. It seems impossible to have a vector of N values that are uniformly
> random between 0,1 and yet add up to 1. The constraint that they add up
> to one excludes a lot of values from the distribution. (How can they be
> uniformly distributed between 0 and 1 if it is impossible for 0.6 and
> 0.5 to both be in the vector?)
This makes sense, but it addresses a different problem than the original.
The question was not how to generate a N-element vector with each
element uniformly distributed over [0,1] such that the sum of elements
is 1, but rather how to randomly generate a N-element vector with each
entry between [0,1] such that the sum of elements is 1 and the vectors
generated are uniformly distributed over the N-dimensional simplex.
Jason
==================================
Swarm-Modelling is for discussion of Simulation and Modelling techniques
esp. using Swarm. For list administration needs (esp. [un]subscribing),
please send a message to <address@hidden> with "help" in the
body of the message.
==================================