Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!v30g2000yqm.googlegroups.com!not-for-mail
From: arun <aragorn168b@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: random matrix generation
Date: Sun, 8 Nov 2009 06:42:34 -0800 (PST)
Organization: http://groups.google.com
Lines: 30
Message-ID: <8a05888a-f76b-4565-992d-802d92ce953e@v30g2000yqm.googlegroups.com>
References: <5b29b80c-64b8-47cc-bc93-493bb9591d42@r5g2000yqb.googlegroups.com> 
	<63361aca-c0b2-47d1-b3e8-9647a9c7921e@m35g2000vbi.googlegroups.com>
NNTP-Posting-Host: 134.2.242.156
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1257691354 16540 127.0.0.1 (8 Nov 2009 14:42:34 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 8 Nov 2009 14:42:34 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: v30g2000yqm.googlegroups.com; posting-host=134.2.242.156; 
	posting-account=fyqXpgoAAABqt-0BifyaNxmZhzggFACu
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; 
	rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:583341


On Nov 8, 12:49 am, ImageAnalyst <imageanal...@mailinator.com> wrote:
> On Nov 7, 5:18 pm, arun <aragorn1...@gmail.com> wrote:
>
> > hi,
>
> > how can i generate a m*nmatrixwith the m-rows
> > 1) dependent on each other
> > 2) independent of each other
>
> > also, is it possible to create the samerandommatrixwith just 1's
> > and 0's under the same 2 criterias?
>
> > thank you,
> > best, arun.
>
> --------------------------------------------------------------------
> 1) depends on what you mean by dependent.
> 2)  randomArray = rand(100, 50);
>
> binaryRandomArray = randomArray > 0.5;

what i mean by independent is that, if I take any 2 rows and compute a
measure of dependence (say, corr), and then permute one of the rows
and compute *corr* a 1000 times and obtain its distribution, then they
should be that of a uniform distribution's pdf (equally likely). Or,
equivalently, the cdf of p-values obtained directly from corr should
be that of a uniform distribution's pdf.

if its not, they are dependent in some way.
best, arun.