The pollution ranking is based on a combination of visitor perceptions and data from institutions like the World Health Organization. The Pollution Index estimates overall pollution levels by considering air and water pollution, garbage disposal, and other factors, with air pollution given the highest weight, while the Pollution Exp Scale uses an exponential function to highlight extremely polluted cities.