시작하기무료로 시작하기

Compute the rolling-window correlation

A rolling-window correlation is a useful tool to investigate how the relationship between ABC and its benchmark moved over time.

In this exercise, your task is to compute moving correlation using a one-year window (12 months). After that, display the values through a line chart.

Rolling correlation is easy to perform with Google Sheets. Just expand the correlation formula with relative values of the input cells, corresponding to the sub-windows of interest.

Note that cells I2:I13 are filled with #N/As. To do so, we used the functionNA(), which requires no argument and returns a #N/A. That's because when dealing with rolling windows, starting the computation in line with the last cell of the first period makes the process easier and more understandable.

이 연습은 강의의 일부입니다

Google Sheets로 하는 금융 분석

강의 보기

연습 안내

  • In I14, use CORREL() to compute the correlation coefficient based on the first 12 returns.

  • Complete the table by using the autofill feature.

  • Display the series using a line chart

  • On the horizontal axis, place the dates starting from December 2013.

실습형 인터랙티브 연습문제

이론을 실습으로 바꾸는 인터랙티브 연습 중 하나를 만나보세요

연습 시작