The best explanation for how historians create sound generalizations about trends in history is:
They interpret primary source evidence.
Interpreting primary sources allows historians to analyze authentic materials from the time period they are studying, leading to well-founded conclusions about historical trends.