The Statistics of Urban Scaling and Their Connection to Zipf’s Law