There is general consensus that Trump's victory was an unexpected outcome of the 2016 presidential election.