What is the difference between "varies from A to A" and "varies by A"?
When we say something varies from A to A those two things are being compared to each other. So here varies from country to country means we are comparing different countries to each other. However, varies by means we are focusing on the cause of variation and not comparing anything. Ex: Each country varies by population size.