Path: news.mathworks.com!not-for-mail
From: "Siva " <sivaathome@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Random sampling with constraints
Date: Mon, 16 Apr 2012 20:20:08 +0000 (UTC)
Organization: Roche Diagnostics
Lines: 11
Message-ID: <jmhuto$fog$1@newscl01ah.mathworks.com>
References: <jmde4t$hd4$1@newscl01ah.mathworks.com> <jmevbj$o98$1@newscl01ah.mathworks.com> <jmg1b2$4gd$1@newscl01ah.mathworks.com> <jmg48r$ffs$1@newscl01ah.mathworks.com> <jmgume$q8d$1@newscl01ah.mathworks.com> <jmhiri$ov4$1@newscl01ah.mathworks.com> <jmhndl$edq$1@newscl01ah.mathworks.com> <jmhttt$bm7$1@newscl01ah.mathworks.com>
Reply-To: "Siva " <sivaathome@gmail.com>
NNTP-Posting-Host: www-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1334607608 16144 172.30.248.48 (16 Apr 2012 20:20:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 16 Apr 2012 20:20:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11031
Xref: news.mathworks.com comp.soft-sys.matlab:764774

"Roger Stafford" wrote in message <jmhttt$bm7$1@newscl01ah.mathworks.com>...
> "Siva " <sivaathome@gmail.com> wrote in message <jmhndl$edq$1@newscl01ah.mathworks.com>...
> > My fault for not making it clear but "d" is an integer. Would that make a difference to your analysis?
> - - - - - - - - - -
>   No, just multiplying P and d by 2 with P = [2 4 6 10] and d = 3 gives the same probabilities.  Actually P can be evenly spaced as in P = [2 4 6 8], d = 3, and n = 2.  The three possible S vectors are S = [2 6], [4 8] and [2 8], but their respective probabilities are: 3/8, 3/8, and 2/8.  Counterexamples are easier to find than those with uniform distributions!
> 
> Roger Stafford

Roger - 
Of course! I should have seen that. 
Siva