In probability theory, an experiment or trial is any procedure that can be infinitely repeated and has a well-defined set of possible outcomes, known as the sample space. An experiment is said to be random if it has more than one possible outcome, and deterministic if it has only one. A random experiment that has exactly two possible outcomes is known as a Bernoulli trial. When an experiment is conducted, one outcome results— although this outcome may be included in any number of events, all of which would be said to have occurred on that trial. After conducting many trials of the same experiment and pooling the results, an experimenter can begin to assess the empirical probabilities of the various outcomes and events that can occur in the experiment and apply the methods of statistical analysis.
Experiments and trials
Random experiments are often conducted repeatedly, so that the collective results may be subjected to statisticalanalysis. A fixed number of repetitions of the same experiment can be thought of as a composed experiment, in which case the individual repetitions are called trials. For example, if one were to toss the same coin one hundred times and record each result, each toss would be considered a trial within the experiment composed of all hundred tosses.
Mathematical description
A random experiment is described or modeled by a mathematical construct known as a probability space. A probability space is constructed and defined with a specific kind of experiment or trial in mind. A mathematical description of an experiment consists of three parts:
A sample space, Ω, which is the set of all possible outcomes.
A set of events, where each event is a set containing zero or more outcomes.
The assignment of probabilities to the events—that is, a function P mapping from events to probabilities.
An outcome is the result of a single execution of the model. Since individual outcomes might be of little practical use, more complicated events are used to characterize groups of outcomes. The collection of all such events is a sigma-algebra. Finally, there is a need to specify each event's likelihood of happening; this is done using the probability measure function, P. Once an experiment is designed and established, ω, from the sample space Ω. All the events in that contain the selected outcome ω are said to “have occurred”. The probability functionP is defined in such a way that, if the experiment were to be repeated an infinite number of times, the relative frequencies of occurrence of each of the events would approach agreement with the values P assigns them. As a simple experiment, we may flip a cointwice. The sample space is ' where "H" means "heads" and "T" means "tails". Note that each of , ,... are possible outcomes of the experiment. We may define an event which occurs when a "heads" occurs in either of the two flips. This event contains all of the outcomes except'.