Source: https://www.stankova.net/statistics_2012/double_integration.pdf