portfolio_toolkit.utils.correlation module

portfolio_toolkit.utils.correlation.calculate_correlation(returns1, returns2)[source]

Calculates the correlation between two return series.

Parameters:
  • returns1 (pd.Series) – The first return series.

  • returns2 (pd.Series) – The second return series.

Returns:

The correlation between the two return series.

Return type:

float