Trump’s victory was many things. I think of it as a failure of big data analytics on many fronts. My personal theory is that there is more to it than meets the eye, but whatever does meet the eye seems to indicate a massive failure.
I am a conspiracy theory nut. So let me propose a conspiracy theory to explain the shocking Trump victory. It is vote rigging, but not the way you were thinking. Before proceeding, let me say that this is merely for fun. Don’t take it too seriously.