- Learn
- Mathematics
- Statistics
- Introduction to Statistics
- Probability Basics
Probability Basics
BeginnerLesson 4 of 12 in Introduction to Statistics Course
What you will learn
- Set up a chance experiment precisely: list its possible outcomes, describe events as sets of outcomes, and assign probabilities that follow the basic rules.
- List the sample space of a chance experimentIdentify what a chance experiment records and list all of its outcomes completely and without overlap, using a list, a grid or a tree.
- Describe events and combine them with and, or and notWrite events as sets of outcomes, form complements, intersections and unions, and translate everyday phrases such as “at least one” into these combinations.
- Find probabilities from equally likely outcomes and from dataAssign probabilities with the equally likely rule or with relative frequencies, check that they follow the basic rules, and use the complement rule.
- List the sample space of a chance experiment
- Use the addition rule, recognize when two events cannot happen together, and organize overlapping events in Venn diagrams.
- Use the addition rule and recognize mutually exclusive eventsDecide whether two events can happen on the same trial and find with the addition rule for mutually exclusive events or the general addition rule.
- Organize events and probabilities in a Venn diagramDraw a Venn diagram for two events from counts or probabilities, fill every region correctly and read off unions, intersections, complements and “only” regions.
- Use the addition rule and recognize mutually exclusive events
- Read probabilities from two-way tables of counts, and calculate how the probability of an event changes once you know that another event has occurred.
- Read joint and marginal probabilities from a contingency tableBuild and read a contingency table, and use it to find the probabilities of single events, of “and” events and of “or” events.
- Calculate and interpret conditional probabilitiesFind from a table, a Venn diagram, equally likely outcomes or the formula, and keep it apart from and from .
- Read joint and marginal probabilities from a contingency table
- Find the probability that two or more events all happen, decide whether events are independent, and organize multistage problems in tree diagrams.
- Use the multiplication rule for events that happen togetherFind from a probability and a conditional probability, including draws with and without replacement.
- Decide whether two events are independentTest independence with conditional probabilities or with the product rule, use the multiplication rule for independent events, and keep independence apart from mutual exclusivity.
- Solve multistage problems with tree diagramsDraw a tree diagram with conditional branch probabilities, multiply along paths, add the paths that make up an event and convert a tree into expected counts.
- Use the multiplication rule for events that happen together
- Use known rates such as the chance of a positive test among people with a condition to find the reverse probability, the chance of the condition given a positive test, with frequency tables, tree diagrams and Bayes' formula.
- Interpret test results with natural frequenciesTurn a base rate and a test's error rates into counts for an imagined group, and find the probability that a positive or a negative result is correct.
- Apply Bayes' theorem to two or more possible causesUse Bayes' formula with a tree diagram to update the probabilities of competing causes after an observation, and check the result with counts.
- Interpret test results with natural frequencies
Probability Basics study guide
1Outcomes, events, and probabilities
A probability calculation starts with a clear description of what can happen. The same pair of coin flips can be recorded as an ordered sequence or as a count of heads, and those choices produce different sample spaces. Learn to list outcomes, translate words such as “at least one” into events, and assign probabilities using either a fair model or observed data. These choices determine what your later calculations mean.
1.1 What a chance experiment records
Choosing a person at random, rolling a die, and flipping a coin are chance experiments. You know the possible results before starting, but you cannot predict the result of a particular trial with certainty. An outcome is one possible result of that trial. The sample space, written , is the set of all possible outcomes.
Make the recording rule clear
For a single coin flip, . For a six-sided die, . A sample space must cover every possible result, and each trial must fit exactly one entry. “Even” and “greater than 3” would fail as the two entries for a die: a 4 fits both, and a 1 fits neither.
For two coin flips, recording first flip then second flip gives . Here means heads first, tails second. It differs from because the order differs. For two fair, independent flips, these four sequences are equally likely.
You can instead record the number of heads, giving . This is also a valid sample space. Its outcomes are not equally likely: one head can arise from either or , while zero heads comes only from and two heads only from . The recording rule changes the entries, so check their probabilities before using a counting formula.
Use a grid for two results
With two dice, distinguish them as a red die and a blue die. Put the red result down the side of a grid and the blue result across the top. Each cell represents one ordered pair. There are cells, including and as separate outcomes. The sum 7 is an event made of several cells, not a single equally likely cell.
A grid helps you check completeness: each possible first result has every possible second result beside it. For fair, independent dice, all 36 cells have the same probability. Listing just the possible sums from 2 through 12 is valid if sums are what you record, but those sums have different probabilities.
Follow stages with a tree
A tree branches once for each stage. Choosing one of 3 main dishes and then one of 2 desserts gives 6 complete paths. Each path describes one meal. Multiplying the numbers of choices works here because all three main dishes allow the same two desserts.
Replacement changes the possible paths. A bag contains one red, one blue, and one green marble. Draw two and record their colors in order. Without replacement, the list is : a marble cannot be drawn again. With replacement, put the first marble back before drawing again. The extra paths become possible, making 9 paths.
Before listing, decide which feature you record, whether order matters, and whether items are replaced. Then check the list against the physical experiment: no possible result missing, and no trial counted under two entries.
Key Takeaways
- A sample space contains all possible recorded outcomes.
- Each trial must fit exactly one listed outcome.
- Order and replacement affect the list of outcomes.
- Grouped outcomes can have different probabilities even when the original outcomes are equally likely.
1.2 Events and the words and, or, and not
An event is a set of outcomes from the sample space. It occurs when the result belongs to that set. For one die roll, let mean “the result is even.” A roll of 4 makes event occur; a roll of 5 does not.
The experiment is the action, such as “roll a die.” An event describes results of that action, such as “roll a number greater than 4.” An event may hold one outcome, several outcomes, every outcome, or no outcomes. The whole sample space is certain; the empty set is impossible. Rolling a 7 on an ordinary six-sided die is an impossible event.
Not means the complement
The complement of , written or , contains all outcomes outside but inside . For the even results, . On every roll exactly one of and happens. They share no outcomes, and together they cover the sample space.
A complement depends on the sample space. “Not even” means odd here because the possible recorded results are the integers 1 through 6. Keep the experiment in view when translating “not.”
And means the intersection
Let mean “greater than 3.” The intersection contains the results satisfying both descriptions. Checking the even results one at a time leaves . The outcome must belong to both events on the same trial.
The phrase “ but not ” adds a restriction: keep the outcomes in that are outside . Thus . It does not include 4 or 6, even though both are even, because they also belong to .
Or includes the overlap
The union contains results in either event, including results in both. Here . Write each result once. In probability, “or” is inclusive: it includes the overlap. “Exactly one of the two events” has a different meaning and leaves the overlap out.
“Neither nor ” means outside both events. It is the complement of their union, . For a quick check, every outcome must lie either inside the union or outside it, never both.
Translate phrases about counts
For two coin flips, the ordered sample space is .
| Phrase | Outcomes that satisfy it |
|---|---|
| At least one head | |
| At most one head | |
| Exactly one head | |
| No heads |
“At least one” permits one or more. “At most one” permits zero or one. Their overlap is exactly one. The complement of “at least one head” is “no heads,” not “at least one tail”: and each contain both a head and a tail. When a phrase is hard to translate, test each outcome against its words before calculating.
Key Takeaways
- An event occurs when the recorded outcome belongs to its set.
- The complement contains all outcomes outside the event.
- The intersection means both events; the union means either or both.
- “Neither” is outside the union; “exactly one” excludes the overlap.
- “At least one” and “none” are complements.
1.3 Probabilities from a model or from data
A probability measures the chance of an event on a scale from 0 to 1. An impossible event has probability 0, a certain event has probability 1, and 0.5 means equally likely to occur or not occur. Fractions, decimals, and percentages can express the same value: .
Count equally likely outcomes
When every outcome in a finite sample space is equally likely,
For a fair die, three of the six outcomes are even, so . For two fair, independent dice, use the 36 ordered pairs. A sum of 7 occurs at . Thus .
Counting is reliable only when the counted outcomes are equally likely. In two fair coin flips, the count of heads has three possible values, but “one head” combines two sequences. Its probability is ; the probabilities of zero heads and two heads are each . Three possible labels do not give each label a one-third chance.
Estimate probability from observations
An empirical probability uses a relative frequency: divide the number of times an event occurred by the number of trials or observations. If 140 of a store's last 500 customers used a coupon, the estimated probability is . This estimate describes the customers and process from which those observations came.
The law of large numbers explains why repeated data can help. As the same chance experiment is repeated independently many times, an event's relative frequency tends to get closer to its probability. A short run can be quite different: 7 heads in 10 fair flips gives a relative frequency of 0.7. Later flips have no need to repair that run; each independent fair flip still has a heads probability of 0.5.
Check the model and use complements
Each probability must be between 0 and 1, and all outcome probabilities must add to 1. Suppose donor blood types O, A, and B have probabilities 0.45, 0.40, and 0.11. The remaining type AB has probability . Adding probabilities of overlapping events is different: those events can count the same outcome more than once.
The complement rule is . It is especially useful for “at least one,” because the complement is “none.” With two fair dice, no six means each die shows one of 1 through 5. That gives 25 of the 36 ordered pairs, so
Adding one-six probabilities directly would count twice. Keep exact fractions during the work and round the final result: here 0.3056, or 30.6%. A value outside 0 to 1 calls for checking the event, denominator, or arithmetic.
Key Takeaways
- Use favorable outcomes divided by total outcomes when the outcomes are equally likely.
- An empirical probability is an observed relative frequency.
- Long-run stability does not make a particular next result due.
- Outcome probabilities add to 1.
- Use to find a complement.
- Keep exact values through the calculation and round the final answer.
2Overlapping events and the addition rule
An “or” question asks for everything in either event, including the outcomes shared by both. Adding the two event totals can count that shared part twice. The addition rule corrects the count, and a Venn diagram makes the correction visible. Work from the overlap outward to find “only,” “both,” and “neither” regions. You will also recognize the simpler case where the two events cannot occur on the same trial.
2.1 Adding probabilities without counting twice
To find the probability of “ or ,” begin by asking whether both events can happen on one trial. Two events are mutually exclusive, or disjoint, if they have no outcomes in common. Their intersection is empty, so .
For one die roll, “roll a 1” and “roll a 6” are mutually exclusive. “Even” and “greater than 3” are not: a 4 or 6 satisfies both. The descriptions refer to the same roll, so their shared outcomes matter.
Add disjoint events directly
For mutually exclusive events,
A fair die gives . The same idea extends to several events that are mutually exclusive in pairs. A person's blood type is one of O, A, B, or AB. If O, A, and B have probabilities 0.45, 0.40, and 0.11, the probability of O or A or B is 0.96. No donor is included in more than one of those categories.
Subtract a shared part once
For any two events, the general addition rule is
Adding the first two terms includes the overlap twice. Subtracting it once leaves one copy, which is what the union needs. If the events are disjoint, the subtraction is zero and the same formula still works.
For a fair die, “even” and “greater than 3” each have probability , and their overlap has probability . The union has probability . Listing checks the result.
A standard deck contains 52 cards: hearts, diamonds, clubs, and spades, with 13 cards per suit. Each suit has an ace, 2 through 10, jack, queen, and king. The jack, queen, and king are face cards, giving 12 face cards in the deck. For one random card,
The three heart face cards belong to both events. Subtracting all 12 face cards would remove cards that were never counted twice.
Find a missing overlap or a complement
At a college, 60% of students take math, 45% take science, and 25% take both. Their union is . The remaining 20% take neither. A direct sum of 1.05 would be too large for a probability and signals double counting.
You can rearrange the rule: . With probabilities 0.5, 0.4, and 0.7, the overlap is 0.2. That positive overlap rules out mutual exclusivity.
Mutual exclusivity is different from independence. If two positive-probability events cannot happen together, learning that one happened makes the other impossible. Their probabilities change with that information, so they are dependent. Also name the trial carefully: a heart on the first draw and a heart on the second draw can both happen, so those two events are not mutually exclusive.
Key Takeaways
- Mutually exclusive events have no shared outcomes.
- The general addition rule subtracts the overlap once.
- A union includes the overlap; “neither” is its complement.
- The addition rule can be rearranged to find an unknown intersection.
- Mutual exclusivity and independence describe different properties.
2.2 Reading the four regions of a Venn diagram
A Venn diagram shows events inside a rectangle representing the sample space. Each circle represents an event. An overlapping area belongs to both circles; the area outside both circles but inside the rectangle represents “neither.” Circle sizes need not match the probabilities.
Two overlapping circles divide the rectangle into four separate regions: only, both, only, and neither. Every outcome belongs to exactly one region. Counts in the four regions add to the grand total; probabilities add to 1.
Fill the overlap first
A gym has 200 members. Of these, 120 use cardio machines, 80 use weights, and 50 use both. Label the events and . Place 50 in the overlap before filling either “only” region.
- Cardio only: .
- Weights only: .
- Inside either circle: .
- Neither: .
Check each circle separately: the cardio circle holds and the weights circle holds . Check the rectangle too: . Writing 120 in the cardio-only region would incorrectly make the cardio total 170; the original 120 already includes the overlap.
Match the wording to regions
| Event | Regions to use | Probability |
|---|---|---|
| Cardio or weights | Cardio only, both, weights only | |
| Cardio and weights | Both | |
| Exactly one activity | Cardio only, weights only | |
| Neither activity | Outside both | |
| Not cardio | Weights only, neither |
The complement of cardio is the whole region outside the cardio circle, including people who use weights. It is larger than the “neither” region. In symbols, cardio only is , while neither is .
With probabilities, use the same subtraction. If , , and , the only regions are 0.4 and 0.2. Their union is 0.7, leaving 0.3 outside both. A negative region would reveal inconsistent inputs or a subtraction error.
Restrict to a circle for a condition
“Among cardio users” changes the group being considered to the cardio circle. Of those 120 members, 50 use weights, so . Reversing the question gives . The overlap stays the numerator, but the named condition determines the denominator.
Extend to three circles
Three events produce eight regions, including the outside. Start with the region shared by all three. A total for “ and ” includes that center, so subtract the center before placing the count in exactly those two circles. Do the same for each pair. Then subtract the already-filled pieces from each circle total to find its “only” region. Fill the outside last. This inside-out order keeps a person in all three events from being counted again in a pair-only region.
Key Takeaways
- A two-circle diagram has four separate regions, including neither.
- Fill the overlap before subtracting to find each “only” region.
- Circle totals include the overlap.
- “Exactly one” uses the two only regions; “or” also includes both.
- A conditional probability uses the total inside the given circle as its denominator.
- For three circles, fill the triple overlap before the pair-only regions.
3Tables and probabilities within a group
A contingency table organizes one group of people or items by two characteristics at once. It can answer questions about the whole group and questions limited to a particular row or column. The numerator may stay the same while the denominator changes, producing very different answers. Read the wording first, identify the group being considered, and use the table to distinguish joint, marginal, and conditional probabilities.
3.1 Joint and marginal probabilities in a table
A contingency table, also called a two-way table, sorts individuals by two categorical variables. Each row is a category of one variable; each column is a category of the other. A cell counts individuals who meet both its row and column descriptions.
Suppose 400 online-course students are classified by orientation attendance and completion. The 160 attendees include 120 who completed and 40 who did not. The other 240 students include 132 who completed and 108 who did not.
| Orientation | Completed | Did not complete | Total |
|---|---|---|---|
| Attended | 120 | 40 | 160 |
| Did not attend | 132 | 108 | 240 |
| Total | 252 | 148 | 400 |
The row and column totals are marginal totals, named for their position at the margins. The grand total is 400. Each student is counted in one interior cell. Row totals add to 400, column totals add to 400, and the four interior cells add to 400. Do not add all the printed numbers: the margins summarize cells already counted.
One characteristic: use a margin
A marginal probability answers a question about one variable, regardless of the other. For a student chosen randomly from all 400,
and . In the completion question, attendance plays no role, so both rows contribute to the numerator.
These are exact proportions for the 400 students listed. Using them for a wider population makes them estimates. The table itself does not tell you how closely that wider population matches this group.
Two characteristics together: use a cell
A joint probability concerns a combination of the two variables. For attendance and completion together,
It describes 30% of all students. Dividing the four cells by 400 gives joint probabilities 0.30, 0.10, 0.33, and 0.27. They add to 1 because the cells split the group into separate, exhaustive categories. Dividing 120 by the attendee total would answer a different question: completion among attendees.
Read “or” without counting a cell twice
“Attended or completed” includes every attendee and every completer. The relevant cells are 120, 40, and 132, giving . You can also use the addition rule: . Simply adding 160 and 252 counts the 120 attendee-completers twice.
Recover missing entries
Every row and column must balance. If the attendee total is 160 and 120 attended and completed, the other attendee cell is . If 252 completed overall, then completed without attending. Use a second margin to check the value when one is available.
A useful reading habit is to name the numerator in words before dividing. “Completed” calls for a column total; “attended and completed” calls for a cell. For both of these whole-group questions, the denominator is the grand total.
Key Takeaways
- A cell counts individuals with both its row and column characteristics.
- A marginal probability is a marginal total divided by the grand total.
- A joint probability is an interior cell divided by the grand total.
- For “or,” count each qualifying cell once.
3.2 Conditional probability and its denominator
A conditional probability measures a chance after some information is known. Read as “the probability of given .” The condition restricts the group to outcomes where occurs. You then ask what share of that group also belongs to .
Restrict the group first
On a fair die, suppose you know the roll is even. Only remain possible, and these outcomes are equally likely. Two are greater than 3, so . Without the condition the probability is . The information changes the denominator and therefore the chance.
The general formula is
With counts, divide the number in both events by the number in the given event. The numerator must satisfy both descriptions. The denominator contains everyone who meets the condition, including those who do not meet the other description.
Use the given row or column
In the online-course table, 120 of 160 orientation attendees completed. Thus . Using probabilities gives the same result: .
The joint probability, , answers “What share of all students both attended and completed?” The conditional probability answers “What share of attendees completed?” Words such as “given,” “among,” “if,” and “of those who” help identify the restricted group.
| Question | Denominator | Probability |
|---|---|---|
| Attended and completed | All 400 students | |
| Completed, given attendance | 160 attendees | |
| Attended, given completion | 252 completers |
Reversing the condition leaves the same shared count but changes the denominator. Treating the last two probabilities as equal is the confusion of the inverse. Always read the words after the vertical bar before choosing the denominator.
Take a complement within the same group
Among attendees, the probability of not completing is , matching . The condition remains attendance. The two outcomes “completed” and “did not complete” divide that restricted group.
Probabilities with different conditions need not add to 1. Completion among non-attendees is . Adding 0.75 and 0.55 gives 1.30, but the two values describe different groups, so they are not parts of one probability total.
Interpret a group difference carefully
Completion is more common among attendees: 75% against 55%. This is an association in these data. Attendance was chosen by the students, so motivation or other differences could contribute to the pattern; the comparison alone does not establish a causal effect of orientation.
A Venn diagram uses the same denominator rule. In the gym example, weights given cardio is , while cardio given weights is . The display changes, but conditioning still means restricting attention to the named group.
Key Takeaways
- In , the denominator is the probability or count of B.
- The numerator satisfies both the target event and the condition.
- A joint probability uses the whole group; a conditional probability uses the given group.
- Reversing a condition usually changes the probability.
- A conditional complement keeps the same condition.
4Products, independence, and tree paths
An “and” probability can be built one stage at a time. The chance at a later stage may change after an earlier result, as it does when an item is removed from a small bag. Learn to keep that information in the multiplication rule, check when independence allows a simpler product, and organize several possible paths in a tree. Trees also turn rates into counts and show how different groups contribute to an overall probability.
4.1 Multiplying probabilities with the right conditions
The general multiplication rule finds the chance that two events both occur:
The first factor gives the chance of . The second gives the chance of within the cases where occurs. It comes from rearranging the conditional-probability formula and requires for that conditional factor. You can also use when .
If 60% of shoppers use a loyalty card and 25% of card users buy a sale item, the joint probability is . The 25% rate applies within the card-user group. Adding these rates would not find the share meeting both descriptions.
Update a draw without replacement
A standard deck has 52 cards in four suits of 13 cards: hearts, diamonds, clubs, and spades. Draw two cards without putting the first back. For two hearts, the first factor is . After a heart has gone, 12 hearts remain among 51 cards. Therefore,
Both the favorable count and the total change. If you replace and mix the first card before drawing again, the deck is full: . Reusing the original factor is correct for this replacement design, but not for the first design.
Combine a product with a complement
A box contains 10 batteries, including 3 dead and 7 good. Two are selected randomly without replacement. For both dead, . For both good, .
“At least one dead” is the complement of “both good,” so its probability is . This avoids separating one-dead and two-dead cases. The tempting product would act as though the first dead battery had been returned.
A joint probability cannot exceed either event's individual probability. Every outcome counted in “both dead” is already counted in “first dead.” This gives a useful bound on a product calculation.
Continue through several stages
For three events, each new factor accounts for everything before it:
For three hearts without replacement, the factors are , , and . The exact product is . Use the full history to update the third factor.
Recognize a useful approximation
Removing a few items from a very large population changes later probabilities only slightly. From 10,000 items including 3,000 defective ones, the exact probability of two defective draws is . The independent product 0.09 is close. A common guideline allows the independence approximation when the sample is at most 10% of the population. The draws remain dependent; the guideline concerns an approximation, not a change in the experiment.
Key Takeaways
- Use for a joint probability.
- Without replacement, update the counts after each draw.
- Replacement restores the original composition before the next random draw.
- For several stages, condition each factor on the full previous history.
- A small sampling fraction can justify approximate independence for draws without replacement.
4.2 When knowing one event changes nothing
Events are independent when knowing that one occurred leaves the probability of the other unchanged. For positive-probability events, the condition can be written . Events are dependent if the probability changes.
For example, the result of a separately performed fair coin flip does not change the chance of rolling a 6 on a fair die. The joint chance is . A shared cause, such as a storm affecting neighboring houses, can instead make events happen together more often than an independent model predicts.
Use equivalent checks
For events with positive probabilities, any of these equalities establishes independence:
Choose the check that matches the available information. For independent events, the general multiplication rule simplifies to the product of the two unconditional probabilities. Do not use that simplified product to assume the equality you are trying to check.
Check a table
A café records 200 purchases. Card payments include 90 weekday purchases and 60 weekend purchases; cash includes 30 weekday and 20 weekend purchases. Overall, card use is . Among weekend purchases it is , and among weekday purchases it is . Conditioning on the day type leaves the probability unchanged.
The product check agrees: , and . These events are independent within the listed purchases.
In the orientation table, completion overall is 0.63 but completion given attendance is 0.75. The values differ, so the events are dependent in that table. The joint probability 0.30 also differs from the independent product . Real sample tables rarely give exact equalities; deciding what a sample difference says about a wider population needs statistical inference.
Keep independence separate from disjointness
| Property | What it says |
|---|---|
| Mutually exclusive | Both events cannot occur on the same trial. |
| Independent | Learning one occurred leaves the other's probability unchanged. |
For one die roll, “1” and “6” are mutually exclusive. Once a 1 is known, the chance of a 6 is 0 instead of . They are dependent. Positive-probability independent events have a positive product, so they can occur together.
Independent trials have no memory
After five heads with a fair coin, the sixth independent flip still has a heads probability of 0.5. Thinking tails must now be due is the gambler's fallacy. Long-run relative frequencies settle because early streaks become a smaller share of all trials, not because later results compensate.
For four independent die rolls, the chance of no six is . Its complement gives . State why a product of unchanged factors fits: separate independent trials or random draws with replacement support it. Draws without replacement require updated probabilities, or an explicitly approximate model for a small sample from a large population.
Key Takeaways
- Independence means the condition leaves the event probability unchanged.
- Check independence by comparing a joint probability with the product of its marginals.
- Positive-probability mutually exclusive events are dependent.
- Independent trials do not compensate for earlier streaks.
- A table check describes that table; population conclusions require inference.
- Justify independence from the experiment or the probability model.
4.3 Multiplying along a tree and adding paths
A tree diagram lays out possible results in stages. The first branches give first-stage probabilities. Later branches give conditional probabilities given the path so far. Branches leaving the same point must add to 1, because one of those next results must occur.
Two operations do different jobs: multiply along a path to find the joint chance of that full sequence; add separate completed paths to find the chance of an event they make up. Distinct complete paths cannot occur together on one trial.
Build a tree without replacement
A bag holds 5 red and 3 blue marbles. Draw two randomly without replacement. The first branches are red and blue . After a red, the remaining bag has 4 red and 3 blue, so the next probabilities are and . After a blue, they are and .
The full paths have probabilities:
- .
- .
- .
- .
Their sum is . “One of each color” includes both mixed paths, so its probability is . “Same color” uses the other two paths and equals . Counting only red then blue would miss the equally valid blue-then-red sequence.
Use a tree for conditional rates
Machine A makes 60% of a factory's parts and has a 2% defect rate. Machine B makes 40% and has a 5% defect rate. Branch first by machine, then by defective or good. The second-stage defective labels are 0.02 given A and 0.05 given B; their companion good labels are 0.98 and 0.95.
The defective path products are from A and from B. Add them to get . A simple average of 2% and 5% gives 3.5%, which weights both machines equally even though A supplies more parts. The tree weights each rate by its share of production.
The branch 0.02 is a rate within A. It is not the chance of an A-defective part among all output. That joint probability is 0.012, after including A's production share.
Turn rates into counts
Imagine 1,000 parts. The first branches give 600 from A and 400 from B. Applying the conditional rates gives 12 defective from A and 20 from B, for 32 defective parts. The good counts are 588 and 380. These are model-based expected counts for an imagined group; an actual batch can differ.
The resulting contingency table has the same probabilities as the tree: defective overall. Counts often make the denominator easier to see when you later ask where a defective part came from.
Choose a table for one group classified in two ways, a Venn diagram for overlapping event totals, and a tree for stages or conditional rates. In an independent tree the later branch probabilities repeat across earlier results. In a dependent tree, update them along each path.
Key Takeaways
- Branches leaving one point add to 1.
- Multiply along a complete path to find its joint probability.
- Add all paths that satisfy the requested event.
- A conditional branch rate differs from a full-path probability.
- Weight group rates by group shares to get an overall rate.
- An imagined group converts probabilities to expected counts.
- Choose the display that fits the form of the information.
5Bayes’ theorem and the meaning of evidence
A test result or an observed defect can change which cause seems most likely. To update that probability, you need both the rate of the evidence within each group and the sizes of the groups before the evidence arrived. Natural frequencies make those contributions visible. Bayes’ theorem expresses the same reasoning as a ratio: the path for the cause you want divided by all the paths that could produce the observed evidence.
5.1 Test results, base rates, and natural frequencies
A test's chance of returning positive among people with a condition answers a different question from the chance of having the condition after a positive result. The first starts with condition status; the second starts with a test result. The base rate, the proportion with the condition before testing, connects them.
Name the test rates
Let mean “has the condition.” The prevalence is . The sensitivity is . The specificity is , and the false positive rate is . The positive predictive value is , the probability someone with a positive result actually has the condition.
These rates have different denominators. Sensitivity uses people with the condition. Specificity uses people without it. Predictive value uses people with a particular test result.
Convert rates into an imagined group
Consider a hypothetical test with prevalence 1%, sensitivity 90%, and false positive rate 9%. Use natural frequencies: imagine 10,000 people and apply the rates in stages.
- The condition group has people. Of these, 90 test positive and 10 test negative.
- The no-condition group has 9,900 people. Of these, test positive and 9,009 test negative.
| Status | Positive | Negative | Total |
|---|---|---|---|
| Condition | 90 | 10 | 100 |
| No condition | 891 | 9,009 | 9,900 |
| Total | 981 | 9,019 | 10,000 |
Restrict to the observed result
A positive result limits attention to the 981 positives. Only 90 of them have the condition, so
The answer is about 9.2%, despite the 90% sensitivity. The false positive rate applies to a much larger starting group, producing more false positives than true positives. Giving 90% as the answer reverses the conditional probability and ignores the base rate, an error called base rate neglect.
For a negative result, restrict instead to the 9,019 negatives. The chance of no condition is . Positive and negative predictive values can be quite different for the same test.
Change the base rate, keep the test
At a 10% prevalence, the same imagined 10,000 people include 1,000 with the condition and 9,000 without. The positive counts become 900 and 810. The positive predictive value is . The test's conditional rates are unchanged, but the mix of people producing positive results is different.
The prior probability is the chance before observing the evidence; the posterior probability is the updated chance afterward. In the 1% example, a positive result raises the probability from 0.01 to about 0.0917.
Key Takeaways
- A test rate and a predictive value condition on different groups.
- Natural frequencies apply the base rate first, then each group’s test rates.
- Positive predictive value divides true positives by all positives.
- A rare condition can produce many false positives because the no-condition group is large.
- Prior means before the evidence; posterior means after it.
5.2 Updating a cause with Bayes’ theorem
Bayes' theorem reverses the direction of a conditional probability. You may know how often each machine produces a defect, then observe a defective part and ask which machine produced it. The calculation combines each cause's starting share with its rate of producing the evidence.
For a cause and observed evidence ,
The numerator is the joint probability of cause and evidence . The denominator is the total probability of , including both possible starting groups. It must be positive. This is conditional probability with the joint probability expanded using the multiplication rule.
Follow the cause before the evidence
Machine A makes 60% of parts with a 2% defect rate; machine B makes 40% with a 5% defect rate. The two defective paths are and . Their sum is 0.032. Therefore,
The probability for B is . B supplies fewer parts overall but a larger share of defective parts. With 1,000 imagined parts, the same answer is visible in counts: 12 defective from A and 20 from B, so A contributes of the defective group.
Giving only 0.012 would report the joint probability across all parts, before restricting to defective parts. The division by 0.032 makes that restriction.
Include every possible cause
For several causes that are mutually exclusive and together cover all possibilities,
Use one evidence path in the numerator and all evidence paths in the denominator. Suppliers 1, 2, and 3 deliver 50%, 30%, and 20% of components, with defect rates 1%, 2%, and 4%. Their defective paths are 0.005, 0.006, and 0.008. The total is 0.019, so their posterior shares are about 0.2632, 0.3158, and 0.4211. These add to 1 apart from rounding. Omitting the third supplier would change the denominator and overstate the first two shares.
Keep conditional complements in their group
Suppose 30% of emails are spam. The word “free” appears in 40% of spam emails and 5% of other emails. The relevant joint probabilities are 0.12 and 0.035. Thus . In 1,000 imagined emails, 120 spam and 35 other emails contain the word.
The 5% rate is separate information. It is not : that complement is the chance the word is absent among spam emails. Before calculating, name the causes and evidence, write the priors and conditional evidence rates, and check which way the requested conditional probability runs.
Key Takeaways
- Bayes’ theorem divides a cause-and-evidence path by the total probability of the evidence.
- Weight each conditional evidence rate by its cause’s prior probability.
- The denominator includes evidence from every possible cause.
- Posterior probabilities across exhaustive, disjoint causes add to 1.
- A conditional complement keeps the same conditioning group.
- A frequency table and Bayes’ formula give the same update.
Probability Basics examples
1From a recorded result to a probability
14 steps
- 1IntroductionStart with what is recorded
A probability question needs a clear experiment before it needs arithmetic. Two people can watch the same pair of coin flips and record different things: the sequence of results or just the number of heads.
Work from the recording rule to the sample space, then to the event and its probability. You will see why a complete list can still contain outcomes with different chances.
- 2ExplanationOne trial, one entry
A chance experiment has an uncertain result. An outcome is one recorded result; the sample space is the complete set of possible results. For a coin flip, it is .
Each trial must fit exactly one entry. A list that omits a possible result is incomplete. Entries that can describe the same trial also fail, because they overlap.
- 3ExampleKeep the flip order
For two flips, write the first result and then the second. The sample space is . Heads followed by tails differs from tails followed by heads.
For fair, independent flips, the four sequences are equally likely. A small tree would split first into H and T, then split each of those branches into H and T again.
- 4Key InsightGrouping changes the chances
If you record only the number of heads, the sample space becomes . It is complete and has no overlap, so it is valid.
But one head combines HT and TH, while zero and two heads each come from one sequence. The count probabilities are 1/4, 1/2, and 1/4. A new set of labels does not make the labels equally likely.
- 5ChallengeCheck a list after removing an item
A bag holds one red, one blue, and one green marble. Two are drawn without replacement and their colors are recorded in order. Can RR belong to the sample space?
---reveal---
No. After red is drawn, it is gone, so red cannot appear second. The complete color list is RB, RG, BR, BG, GR, GB. Replacement would restore red and allow RR, along with BB and GG.
- 6ExplanationMake an event from outcomes
On one die roll, let mean “even,” and mean “greater than 3.” An event occurs when the result belongs to its set.
The intersection means both descriptions: . The union means either or both: . Include a shared result once in the union.
- 7TipCheck what not leaves behind
The complement of an event contains all outcomes outside that event. For the even event, . The event and its complement together cover the die’s sample space without overlap.
“Neither A nor B” goes outside both sets, leaving 1 and 3. “A but not B” stays in A but removes the overlap, leaving only 2.
- 8ChallengeAt least, at most, or exactly
For two flips, which outcomes mean “at most one head”? Is this the complement of “at least one head”?
---reveal---
“At most one” includes zero or one: TT, HT, TH. It is not the complement of “at least one,” because HT and TH belong to both. The complement of “at least one head” is only TT, meaning no heads.
- 9ExplanationChoose a counting model
For a finite set of equally likely outcomes, divide the count in the event by the total count. A fair die gives three even results out of six, so the probability is 0.5.
For two dice, count the 36 ordered pairs, not the 11 possible sums as if they had equal chances. A sum of 7 has six pairs and probability .
- 10ExampleUse observed frequencies
If 140 of 500 recent customers used a coupon, the observed relative frequency is 0.28. This is an empirical probability estimate for the process those customers came from.
The law of large numbers describes how relative frequency tends toward probability over many independent repetitions. A short run can differ substantially, and later trials do not have to compensate for earlier results.
- 11ExampleFind no six first
To find “at least one six” in two fair, independent die rolls, start with its complement: no six. Each die then has five acceptable faces.
There are no-six pairs among 36 equally likely pairs. So . Keep the fraction until the final rounding.
- 12ChallengeSpot the double count
Why does adding fail to give the probability of at least one six in two fair die rolls?
---reveal---
The first term includes every first-die six, and the second includes every second-die six. The pair (6,6) appears in both. Subtract its probability, 1/36, once: . The union needs one copy of that pair.
- 13ChallengeCombine wording with a probability
Two fair coins are flipped independently. What is the probability of exactly one tail, and how does it differ from at least one tail?
---reveal---
Exactly one tail includes HT and TH, giving 2/4. At least one also includes TT, giving 3/4. Recording only counts is valid, but assigning one-third to each count would lose the two sequences making exactly one tail.
- 14RecapA useful order for solving
Set up the experiment and its recording rule, then translate the requested event. Choose probabilities appropriate to the outcomes or the observed data.
When the event says “at least one,” checking “none” can simplify the work. Before accepting an answer, check that the probability is between 0 and 1 and that any full outcome model totals 1.
2See the overlap before you add
11 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionOne person can belong to both groups
- 2ExplanationAsk whether both can happen
- 3AnalogyOne name appearing on two lists
- 4ExampleApply the general addition rule
- 5ChallengeFind an unknown shared part
- 6ExamplePut the gym overlap in first
- 7ExampleFill the outside
- 8Key InsightOnly and not select different regions
- 9ChallengeChange the group in the question
- 10ChallengeRead a diagram and check the addition rule
- 11RecapUse regions to check your work
3Read the group before dividing
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionThe same count can give different answers
- 2ExampleBuild the attendee row
- 3ExampleFinish the margins
- 4ExplanationChoose a cell or a margin
- 5ChallengeRead an or event from cells
- 6AnalogyZoom in on one row
- 7ExplanationWrite the denominator rule
- 8ExampleReverse the question
- 9ChallengeKeep the condition when taking a complement
- 10ConnectionCompare groups without assigning a cause
- 11ChallengeIdentify two denominators
- 12RecapName what the fraction counts
4Follow the path, then combine the paths
16 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionLater chances can change
- 2ExplanationUse the chance after the first event
- 3ExampleRemove a dead battery
- 4ExampleUse all good as a complement
- 5ChallengeChange the replacement rule
- 6ExplanationCheck whether the condition changes anything
- 7ExampleCompare a café’s rates
- 8ChallengeDoes no overlap mean independence?
- 9TipSeparate exact and approximate independence
- 10ExampleBuild the marble branches
- 11ExampleMultiply each complete path
- 12ChallengeInclude both orders
- 13ExampleWeight two factory rates
- 14ConnectionRead a tree as imagined counts
- 15ChallengeCheck independence with the tree
- 16RecapA path and an event need different operations
5Turn evidence into an updated probability
14 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionThe result changes the group
- 2ExplanationName the starting groups
- 3ExampleStart with 10,000 imagined people
- 4ExampleFollow the much larger group
- 5ExampleRestrict to positive results
- 6ChallengeRead the negative result
- 7Key InsightThe base rate changes the answer
- 8ExplanationWrite the update as a ratio
- 9ExampleTrace a defective part
- 10ChallengeExplain the missing division
- 11ExampleInclude a third cause
- 12TipKeep a complement within its condition
- 13ChallengeDiagnose a claim about an accurate test
- 14RecapFollow causes forward, then condition backward
Probability Basics practice questions
Set 1: Outcomes, groups, and first calculations10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Combining rules and following evidence10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Checking denominators and dependence10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Choosing models and reversing probabilities10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Association
B
Base rate neglect
Bayes’ theorem
Branch probability
C
Chance experiment
Complement
Conditional probability
Conditioning event
Confusion of the inverse
Contingency table
D
Dependent events
E
Empirical probability
Empty set
Equally likely outcomes
Event
Evidence
Exhaustive causes
Expected count
F
False positive rate
G
Gambler’s fallacy
General addition rule
General multiplication rule
Grand total
I
Inclusive or
Independence check
Independent events
Intersection
J
Joint probability
L
Law of large numbers
M
Marginal probability
Marginal total
Mutually exclusive events
N
Natural frequencies
Neither event
O
Only region
Ordered pair
Outcome
Overlap
P
Path probability
Positive predictive value
Posterior probability
Prevalence
Prior probability
Probability
R
Relative frequency
S
Sample space
Sensitivity
Specificity
T
Tree diagram
Triple overlap
U
Union
V
Venn diagram
W
Weighted overall probability
With replacement
Without replacement
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.