Re: Random double-stochastic matrices



In article <ef40721.-1@xxxxxxxxxxxxxxxxxxxxxxx>, "Itamar Cohen"
<ofanan@xxxxxxxxxxxxxxxxx> wrote:

Does anybody know a way to randomly generate double-stochastic matrix
(i.e. a matrix, in which the sum of each column is exactly 1; and the
sum of each row is exactly 1). Each entry in the matrix should be
within [0,1].
Thanks a lot in advance.
--------------------------
Some questions.

1) Why do you bother to require that each matrix element be less than or
equal to 1, when that is implicit in the fact that each element is
non-negative and has to be a part of a sum which is 1?

2) It is also implicit in this problem that the matrix must be square.
Is that what you have in mind?

3) What kind of random distribution are you seeking? An immediate
solution comes to mind by initially setting all elements to 1/n in an n x
n matrix, which satisfies the requirements. Then taking a random location
(i,j), a) one increments that element by a random amount delta, b) all
other elements in the same row or column as (i,j) are incremented by
-delta/(n-1), and c) all other elements in the matrix are incremented by
+delta/(n-1)^2. This would leave all row and columns with unchanged
sums. This whole process is repeated a great many times, producing a
rather "random" matrix, but always of course taking care not to make any
element negative. The trouble is that doing this may not produce the kind
of random distribution you are after.

Roger Stafford
.



Relevant Pages

  • Re: Is this possible?
    ... About your result being different - do you have a formula or value in cell ... yours was doing with the 10% and $75 yet fail to see where the sum ... Next question is if I have 1% increments and not 10% then what do I ... phat al's Profile: ...
    (microsoft.public.excel.worksheet.functions)
  • RE: Cant figure out what Im doing wrong with running sum
    ... Control Source: ... I was attempting a running sum of a single precision ... Instead of a running sum of the "days" field, it just increments by 50 each ... every record) by whatever the "quan1" value is is the second record in the ...
    (microsoft.public.access.reports)
  • Re: Is this possible?
    ... Good point Arvi I don?t think i don?t think I do explain things ... yours was doing with the 10% and $75 yet fail to see where the sum ... Next question is if I have 1% increments and not 10% then what do I ... phat al's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=34988 ...
    (microsoft.public.excel.worksheet.functions)
  • Re: How can I find the greatest possible sum within 12 months? A newbie...
    ... the starting sum is in A2 and the end sum is in A123. ... date increments are random - so it is not always from a specific date ... Roger Govier schrieb: ... Excel will insert them for you. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Problem with `big oh estimates in number theory
    ... In my defense, I ... Hmm, in fact, the reason I didn't carry it through ... The sum `I' in your Proof 2 would give another O ... /If/ he had had your Proof 2 in mind, ...
    (sci.math)