相关系数的计算过程可表示为:将每个变量都转化为标准单位,乘积的平均数即为相关系数[1]。
两个变量的关系可以直观地用散点图表示,当其紧密地群聚于一条直线的周围时,变量间存在强相关[2]。
一个散点图可以用五个统计量来概括。 所有x值得平均数,所有x值的SD, 所有y值得平均数,所有y值的SD, 相关系数r.
将第一个变量记为 x , 第二个变量记为 y , 相关系数为 r ,则可以通过以下公式:
r = [(以标准单位表示的 x ) X (以标准单位表示的 y )] 的平均数
If we have a series of n measurements of X and Y written as xi and yi where i = 1, 2, ..., n, then the sample correlation coefficient can be used to estimate the population Pearson correlation r between X and Y. The sample correlation coefficient is written
s_x and s_y are the sample standard deviations of X and Y.
If we have a series of n measurements of X and Y written as xi and yi where i = 1, 2, ..., n, then the sample correlation coefficient can be used to estimate the population Pearson correlation r betwe ...
urill 发表于 2010-11-21 20:33