Spearman correlation is a way to measure how two sets of data relate by looking at their order, not their exact values. We start with two lists of numbers. Then, we rank each list separately, turning the numbers into their positions in order. Next, we find the difference between these ranks for each pair. We square these differences and use them to calculate the Spearman correlation coefficient. This coefficient tells us how closely the two lists match in order. A value of 1 means perfect match, -1 means perfect opposite, and 0 means no relation. The p-value tells us if this correlation is likely due to chance. In our example, the ranks match perfectly, so the correlation is 1 and the p-value is very small, showing a strong relationship.