Mean number of days in a Gregorian month

478 Views Asked by At

Across the Gregorian calendar, what's the arithmetic mean of the number of days in each month?

The context for this question is that I have some survey data in which people were asked how many times they had done something in the past 6 months, and one of the options was "daily". I'd like to represent each subject's choice as an integer number of events in the 6-month interval. It seems to me like the best way to represent "daily" is to multiply 6 by the mean number of days in a month.

1

There are 1 best solutions below

0
On BEST ANSWER

The Gregorian calendar has a period of 400 years, or $400 \cdot 12$ months. Each cycle comprises $400 \cdot (365 - 28)$ days outside of February. February has 28 days in common years and 29 days in leap years, and there are 97 leap years, so the cycle comprises $97 \cdot 29 + (400 - 97) 28$ days in February. So the mean number of days per month is $400 \cdot (365 - 28) + 97 \cdot 29 + (400 - 97) 28$ all divided by $400 \cdot 12$, which is exactly $30.436875$. This is in fact the same thing as $365.2425 ÷ 12$ as suggested by achille hui, which makes sense considering that addition is commutative and associative, and I'm an idiot.