Some statewide races will be so lopsided that The Associated Press will be able to declare a winner before any of the results are released. The AP takes into account everything it knows about an election. All of the research, all of the past election results, the trends that we've seen in that state, the money being spent in the race, the reporting on what's happening in that race. And then tops it off with something called VoteCast.