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 05:53:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 12
Message-ID: <h0vert$5nb$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1244872381 5867 172.30.248.35 (13 Jun 2009 05:53:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 13 Jun 2009 05:53:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1875128
Xref: news.mathworks.com comp.soft-sys.matlab:547114


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