This paper is the result of team’s hard work, which delves into the correlation functions in proton-proton and PbPb(Lead-Lead) collisions, scrutinizing their relevance in the formation of quark-gluon plasma. This project first simulated these high-energy collisions and generated a comprehensive dataset of proton-proton and PbPb(Proton-Proton) interactions. The entire analysis is designed around the task of calculating azimuthal and pseudorapidity correlation functions, and wish to compare the differences and similarities between the two collision types. Also delved into these correlation functions in proton-proton collisions as potential evidence for QGP(Quark-gluon plasma), a type of matter typically found in heavy metal collisions such as Pb-Pb. The results reveal unique patterns lurking in the correlation functions that suggest that QGPs may form even in smaller collision systems. Also Quark-Gluon Plasma (QGP) is a state where quarks and gluons move freely at extremely high energy densities. The two-particle correlation function helps identify QGP by measuring how particles are correlated after a collision. Specific patterns in these correlations, like a “ridge” structure, indicate the collective behavior of particles, signaling the formation of QGP. These findings are expected to shed more light on the intricate dynamics in particle collisions and the specific conditions that lead to the formation of QGPs.