A process model says that each part from a production line is defective with probability . One day an inspector checks 200 parts and finds 9 defective, an observed rate of . Is the model wrong, and is a run of sound parts now due? Answering needs a precise language for chance. This lesson sets up sample spaces, events and the rules for complements and unions, and it separates a probability in a model from the relative frequency seen in one finite run.
Key terms
Sample space and events
Definition The sample space of a chance process is the set of all its possible outcomes, where an outcome is one complete result. An event is a set of outcomes to which the model assigns a probability, and it occurs when the outcome that happens belongs to it. In a finite sample space every set of outcomes is usually taken to be an event. A probability model gives each event a number with and , and for any finite or infinite sequence of disjoint events the probability of their union is the sum of their probabilities. For a finite sample space the model is fixed by giving each outcome a probability, with these outcome probabilities nonnegative and adding to . Then is the sum of the probabilities of the outcomes in . If has outcomes, all equally likely, and contains of them,
In plain words List everything that can happen, then name the collections of outcomes you want to ask about. Counting outcomes is a valid way to find probabilities only when the model makes the outcomes equally likely. Having a list of labels is not enough to justify that.
Example For one roll of a die, and the event “even” is . If the die is fair, each outcome has probability and . Now take a weighted die model that gives the six outcomes the weights out of a total of . The event “at least five” is , and its probability is , while counting two of the six labels would give the wrong value .
Complement rule
Definition The complement of an event is the set of outcomes in that are not in . The events and are disjoint and together make up , so . This gives the complement rule
In plain words Either an event happens or it does not, so the two probabilities share the total of . When an event is awkward to count directly, its complement is often simpler. The standard case is “at least one”, whose complement is “none”.
Example Roll two fair dice and treat the ordered pairs of results as equally likely. Let be the event of at least one six. Its complement “no six” contains the pairs that use only the faces to , so
Counting the pairs with a six directly gives , the same answer, but it needs care not to count the pair twice.
Union and intersection
Definition The union is the event containing every outcome that lies in , in or in both. It occurs when at least one of the two events occurs. The intersection is the event containing the outcomes that lie in both, and it occurs when both events occur. In probability the word “or” means the union, which includes the outcomes where both events happen, unless “exactly one” is said. Since lies inside and lies inside , every model has .
In plain words Union is the inclusive “or” and intersection is “and”. Joining events with “or” never removes outcomes, and joining them with “and” never adds any.
Example For one fair die let be “even” and be “at least four”. Then and , so and . The event “exactly one of the two” is , which leaves out the overlap.
Disjoint events
Definition Events and are disjoint, also called mutually exclusive, if they share no outcomes, that is, if . Events are disjoint if every two of them are disjoint. They are exhaustive if their union is the whole sample space, so that at least one of them occurs. Events that are both disjoint and exhaustive split into pieces of which exactly one occurs, and their probabilities add to .
In plain words Disjoint events cannot happen together, and exhaustive events leave nothing out. The two properties are separate, and a collection of events can have either one without the other. Disjointness is also different from independence, which the next lesson defines. When two disjoint events both have positive probability, learning that one occurred rules out the other, which is strong information rather than a lack of connection.
Example For one die roll, “odd” and “even” are disjoint and exhaustive, and under a fair model their probabilities and add to . The events and are disjoint but not exhaustive. The events “at most four” and “at least three” are exhaustive but not disjoint, since both contain and . Under a fair model their probabilities add to , more than , because the overlap is counted twice.
Addition rule
Definition For any two events and in a probability model,
The reason is that splits into the disjoint pieces and , while splits into the disjoint pieces and . It is the two-event case of the inclusion-exclusion principle. When and are disjoint, the last term is and . More generally, if are disjoint, then .
In plain words Adding and counts the overlap twice, once inside each event. Subtracting once leaves every outcome of the union counted exactly once. Without that correction the sum can even exceed .
Example A constructed model has equally likely outcomes. Event contains of them, event contains , and belong to both. Then
and by the complement rule the probability that neither event occurs is . In a diagram the regions hold outcomes in only, in both, in only and in neither, and . If instead and had and outcomes with none in common, the overlap term would be and would be .
Long-run relative frequency
Definition If a chance process is repeated times and an event occurs in of them, the relative frequency of in those trials is . The long-run interpretation of probability applies when the trials are modeled as independent repetitions under the same conditions, each giving the probability . In that model, for every margin , the probability that differs from by more than tends to as grows, which is the law of large numbers. It does not say that the relative frequency moves steadily toward , and it does not say that a finite run must balance out.
In plain words A probability belongs to the model and a relative frequency belongs to the data. Over many independent repetitions the two tend to be close, but a finite run varies, and an accurate count of what happened is still not the model’s probability. Short runs often show streaks and imbalances, and in a model of independent trials later outcomes do not compensate for earlier ones.
Example Suppose of rolls of a die come up even, a relative frequency of . That does not change the fair model’s probability . Under the fair model with independent rolls, or more even results in rolls has probability about , so a run like this is not unusual. After a streak of even results the next roll is still even with probability in that model, because independent rolls keep no record of earlier outcomes.
Check yourself
- A model has equally likely outcomes. A diagram of events and shows outcomes in only, in both, in only and in neither. Use the addition rule to find , then find the probability that neither event occurs.
Show the answer
The event contains outcomes and contains , so , and . The addition rule gives , which matches the direct count . The complement rule then gives for neither event, the outcomes outside both. Adding without the correction would count the shared outcomes twice.
- Events and in some model have and . Can they be disjoint? What is the smallest possible value of ?
Show the answer
If they were disjoint, the addition rule would give , which is impossible for a probability. In general , so the addition rule gives
The bound can be reached. Take equally likely outcomes with and . Then and , and the overlap has probability . So the smallest possible value is , and the two events cannot be disjoint.
- A process model gives each part a defect probability of , independently from part to part. An inspector finds defective parts among . Find the relative frequency of defects. Does it show that the model probability is wrong, and does it make the next part more likely to be sound?
Show the answer
The relative frequency is . It describes this run of 200 parts, while is a probability in the model, so the two numbers answer different questions. Under the model a run of 200 parts has defects on average, but the count varies from run to run, and under the model or more defects among parts has probability about . A count this high is not unusual under the model, so this run does not by itself show that the model is wrong. It does not show that the model is right either, and weighing such evidence is a task for the inference lessons later in the course. Under the model the next part is still defective with probability , because independent parts do not make up for earlier defects.