Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: calculate P value from r
Date: Sat, 13 Jun 2009 04:30:18 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 12
Message-ID: <h0va0q$qo3$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1244867418 27395 172.30.248.38 (13 Jun 2009 04:30:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 13 Jun 2009 04:30:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1875128
Xref: news.mathworks.com comp.soft-sys.matlab:547107


Hi 
I want to calculate P value from r without using function [r, P]=corrcoef() (because computation complexity issues):

for example:
v1 = [1 2 3 4];
v2 = [3 4 5 6];

r = v1 * ( v2' ) / sqrt( ( v1 * v1'  ) * ( v2 * v2' ) ); 

now I want to get P from this r, how can I do it? 

diego