Pearson correlation testΒΆ
The Pearson test checks if there exists a linear relationship between two random
variables and
.
The Pearson test is based on the Pearson correlation coefficient defined in
Pearson coefficient. It tests if the Pearson correlation
coefficient is significantly different from zero. In the case where form a Gaussian
vector, it is equivalent to test the independence between
and
.
The Pearson test compares the null hypothesis against
the alternative hypothesis
.
The Pearson coefficient is evaluated on a sample generated by the
bivariate random vector
of size
and denoted by
according to the relation (1).
The statistics used in the test is defined by:
Under the null hypothesis , the statistics
follows a Student
distribution with
degrees of freedom in the case of a Gaussian vector. In the other
cases, the Student distribution
is equivalent to the asymptotic distribution of
. The library uses the Student distribution
in all the cases.
The p-value is the probability
where
is the realization of
computed on the sample. The null hypothesis
is rejected if
where
is specified
(usually 0.1 or 0.05). The p-value limit
is the probability to wrongly reject the null hypothesis
, which
means to commit a Type I error.
When the null hypothesis is rejected, it means that there is a significant linear
relationship between
and
.
OpenTURNS