Correlation with p-values

本文介绍如何在Excel中计算样本相关系数对应的P值,包括提供了一个受保护的工作表来计算P值及置信区间,并说明了如何使用StatTools函数进行替换。

From:  http://forums.palisade.com/ShowPost.aspx?PostID=580

http://www.psych.ualberta.ca/~westburylab/downloads/corrpcalc.html

http://faculty.vassar.edu/lowry/rsig.html

A correspondent asked how to use StatTools to show the p-value for a correlation, without doing a full regression. This can't be done directly in StatTools, but the calculations are not too difficult in Excel.

As it happens, I offer an Excel worksheet to my students (see attachment). It computes the p-value for the null hypothesis "linear correlation in population is zero" and also computes a confidence interval for the population correlation coefficient, based on the sample correlation coefficient.

The worksheet is protected to prevent accidentally overwriting the formulas. To allow changes, open it in Excel and select Tools... Options... Unprotect Sheet. You could then replace the user input for correlation coefficient with a call to the StatTools function StatCorrelateCoeff(), replace the user input for number of points with a StatCount() function, and so on.

The theory behind the worksheet is explained at http://www.tc3.edu/instruct/sbrown/stat/correl.htm .

下载 correl.xls

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值