Two methods of generating samples are available: and :
Uses actual data for correlation evaluation.
Correlation coefficients are based on the sample values.

Used to correlate linear relationships.
Uses ranks of data.
Bases correlation coefficients on the rank of samples.

Recognizes monotonic relationships, which are less restrictive than linear ones. In a monotonic relationship, one of the following two things happens:
As the value of one variable increases, the value of the other variable also increases.
As the value of one variable increases, the value of the other variable decreases.
The method is considered to be more accurate.