Correlation

Last updated 9 November 2026

Function reference › Risk and Performance Measures › Correlation

1 GIAnalyzer function for Excel. Optional arguments are shown in [brackets].

GIA_RPM_Correlation

Returns the historical correlation during a specified period, given historical daily prices of two assets.

GIA_RPM_Correlation(HDates1, HRates1, HDates2, HRates2, TimeInterval, Overlap, DaysNumber, WeekLastDay, PriceChangeCalc, StartDate, EndDate, ExcludeFromDate, ExcludeToDate, [MismatchedDatesMethod])

Returns: Historical correlation during a specified period

ArgumentUseDescription
HDates1RequiredThe array of dates of historical prices of the asset 1.
HRates1RequiredThe array of historical prices of the asset 1.
HDates2RequiredThe array of dates of historical prices of the asset 2.
HRates2RequiredThe array of historical prices of the asset 2.
TimeIntervalRequiredTime period of the price changes (Days, Week, Month, Quarter, Year)
OverlapRequiredWhether there is an overlap between dates (Yes, No)
DaysNumberRequiredNumber of days if the parameter TimeInterval is Days
WeekLastDayRequiredThe last day of the week if the parameter TimeInterval is Week (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday)
PriceChangeCalcRequiredCalculation type of the price change (Discrete, Continuous, Absolute). See the documentation for full description.
StartDateRequiredThe first date in the required period.
EndDateRequiredThe last date in the required period.
ExcludeFromDateRequiredThe first date in the period excluded from the required period.
ExcludeToDateRequiredThe last date in the period excluded from the required period.
MismatchedDatesMethodOptional, default DiscardThe method of resolving arrays with mismatched dates (Discard, Fill).