Correlation with p-values

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

 

posted @   emanlee  阅读(509)  评论(0编辑  收藏  举报
编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
点击右上角即可分享
微信分享提示