# java 皮尔逊相关系数_皮尔逊相关系数

correlation

coefficient，它描述了两个定距变量间联系的紧密程度(线性关系)。样本的简单相关系数一般用R表示，计算公式为：

pearson(皮尔逊相关系数)R值和P值都需要考虑，R值表示在样本中变量间的相关系数，表示相关性的大小；P值是检验值，是检验两变量在样本来自的总体中是否存在和样本一样的相关性。

Exercise

At the beginning

of an introductory engineering course, 10 students were given a

pre-test to determine their initial mathematical ability. The

following table lists the student's pre-test score and final grade

in the class:

Student Number

Pre-Test

1

2

3

4

5

6

7

8

9

10

45

23

50

46

33

21

13

30

34

50

92

86

97

95

87

76

72

84

85

98

1. Calculate

Pearson's Correlation Coefficient (r) on this data.

r =

2. What

statistical test is used to determine if this value of r is

statistically significant?

3. Is the

correlation seen in this data statistically significant. Why?

4. Display a

scatterplot of the data. Does the data appear linearly correlated.

Do there seem to be any outlier values?

5. Suppose an 11th

student were added to the data, with a pre-test score of 40 and a

Course Grade of 70. How would this effect r?

12-31 334
07-05 1万+
02-18 9552
08-25 4130
12-20 1524
04-13 2760
02-16 23
01-17 4775
11-04 1085
07-11 15万+
09-19 2070
09-19 1641
06-24 2391
12-12 1万+
11-04 489