A wave function is a mathematical description of the quantum state of a particle or system, encapsulating all possible information about that system's behavior and properties. It plays a crucial role in understanding the probabilistic nature of quantum mechanics, as it provides the foundation for calculating probabilities and making predictions about physical observables.