Find the frequency of each bin
The next step is to count how many times historical returns fall into a specific bin, that is, to identify the frequency of each bin.
For example, if a bin includes returns larger than or equal to 2% and smaller than 3%, to get the frequency you have to count the number of returns that meet these criteria.
To do so, you can use the function COUNTIFS()
with two conditions: historical returns larger than or equal to the left boundary of the bin (first condition) and smaller than the right boundary of the bin (second condition). Recall that to write a logical condition, include it within quotation marks “… ”
and if necessary, use the concatenation operator &
(for example, “>=”&G7
means larger than or equal to cell G7
).
This exercise is part of the course
Financial Analytics in Google Sheets
Exercise instructions
In
I7
, use the functionCOUNTIFS()
to count the number of past returns that fall into the first bin.In
I8:I35
, use the autofill feature to complete the table.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
