Correlation between the extraordinary Hall effect and resistivity