An experiment is a procedure undertaken to test a hypothesis or to investigate a phenomenon, often involving controlled conditions to observe outcomes. It serves as a fundamental building block in understanding probability and uncertainty, as it allows for the collection of data that can reveal patterns and inform predictions about random events.