The correlation coefficient is calculated using statistical methods such as Pearson's correlation coefficient or Spearman's rank correlation coefficient.