Conformity refers to the phenomenon that individual's ideas and behaviors change in a direction consistent with the majority of people due to the guidance or pressure of the masses.
Buying lottery tickets is not a conformity phenomenon.