FiveThirtyEight’s pollster ratings "are calculated by analyzing the historical accuracy and the methodology of each firm’s polls. Accuracy scores account for the type of election, a poll’s sample size, the performance of other polls surveying the same race and other factors...(including) measures of statistical bias in the polls." from the website
See more: The State Of The Polls, 2016 | How this works | Download the data