Probability theory is an important component of data science, and probability formulas are a key means of analyzing data, occupying a pivotal position in the era of big data. In the context of domestic curriculum ideological and political education, this paper explores the ideological and political elements contained in several probability formulas, seeks the integration of probability formulas and ideological and political education, and makes analogies between the principles, advantages, and applications of these formulas and some ideological and political contents. It not only visualizes abstract probability formulas, but also helps students establish correct worldviews, life values, and moral values. This paper attempts to improve the teaching quality of the courses related to probability and cultivate students’ sense of social responsibility through the ideological and political exploration of these probability formulas.