🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alive.statistics
Article #59

[urgent]: random sample with predefined correlation

#59
From: Pedro Cardoso
Date: Sun, 02 Oct 2005 22:01
17 lines
1544 bytes
Hello all, I have this problem:

    I have a vector x of values and I would like "randomly" produce other 
vector y,
    such that correlation(x,y) is equal to some predefined value.

    example:
        x=(1, 2, 1, 2, 3, 4, 5, 1, 8)
        y=(?, ?; ?, ?, ?, ?, ?, ?, ?)
        correlation(x,y)=0.7


    Can anyone help?

best regards,
Pedro.
Technical Details
Message-ID: <434058d2$0$17828$a729d347@news.telepac.pt>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!newspump.monmouth.com!newspeer.monmouth.com!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!newshub.ip.pt!brown.telepac.pt!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10468c,d6603d800ee0afd9,start
X-Google-Thread: fbb77,d6603d800ee0afd9,start
X-Google-Thread: 107665,d6603d800ee0afd9,start
X-Google-Attributes: gid10468c,gidfbb77,gid107665,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!newspump.monmouth.com!newspeer.monmouth.com!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!newshub.ip.pt!brown.telepac.pt!not-for-mail
From: "Pedro Cardoso" <pjscardoso@netcabo.pt>
Newsgroups: alive.statistics,alt.sci.math.statistics.prediction,pt.ciencia.geral
Subject: [urgent]: random sample with predefined correlation
Date: Sun, 2 Oct 2005 23:01:41 +0100
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
Lines: 21
Message-ID: <434058d2$0$17828$a729d347@news.telepac.pt>
Organization: Telepac II - Comunicacoes Interactivas, SA
NNTP-Posting-Host: 85.138.12.20
X-Trace: 1128290514 news.telepac.pt 17828 85.138.12.20
X-Complaints-To: abuse@mail.telepac.pt