Business Analytics & Data Science

B04 · Intermediate

Descriptive and Inferential Statistics

10 lessons

B04 · Module 1, lesson 2 · Lesson 2 of 10

Probability

Probability is the language every test and interval in this course is written in. Learn to read joint, marginal and conditional probabilities from a contingency table, to use the addition and multiplication rules, to check whether two events are independent, to draw a tree diagram, and to turn a screen’s accuracy into the probability that a flagged case is real with Bayes’ rule.

About 70 minutes

Before you start

You will be able to

  • Define an experiment, its sample space and its events, and distinguish classical, relative-frequency and subjective probability.
  • Calculate joint, marginal and conditional probabilities from a contingency table, and the probability of a complement, a union and an intersection.
  • Decide whether two events are independent by comparing P(A | B) with P(A), and say what independence would predict for a table.
  • Use a tree diagram and the multiplication rule for events in sequence, with and without replacement.
  • Apply Bayes’ rule to a screening problem, explaining the role of the base rate and of false positives.
  • Calculate the number of possible samples and arrangements with COMBIN and PERMUT.

Review first

Fictional case A fictional coffee business founded by Ana Lim. It starts as a catering and barista-training service, opens its own cafés and an online shop for beans, and plans a canned cold brew.

The idea

Fictional case

In B03, a PivotTable of the spring orders showed that app orders were more often subscriptions than web orders, and Ana wants to say it precisely. If she picks one of the 231 orders at random, how likely is it to be a subscription, and does knowing that it came through the app change that? And when Tillwise (fictional), the company that processes Lantern’s card payments, flags an order as possible fraud, how likely is the order to be fraudulent? All three are questions of probability.

Experiments, sample spaces and events

An experiment is any process with an uncertain outcome: drawing an order at random, the next customer’s rating, whether a quote is accepted. Its sample space is the set of all possible outcomes, and an event is any set of outcomes. Picking one spring order at random has a sample space of 231 orders; “the order is a subscription” is an event containing 104 of them.

A probability is a number from 0 to 1 that measures how likely an event is: 0 for impossible, 1 for certain. The probabilities of all the outcomes in a sample space add to 1. Writing P(A)P(A) for the probability of event AA, the chance that a randomly drawn spring order is a subscription is P(sub)=104÷231≈0.450P(\text{sub}) = 104 \div 231 \approx 0.450.

Three ways to assign a probability

  • Classical: when every outcome is equally likely, P(A)P(A) is the number of outcomes in AA divided by the number in the sample space. A draw at random from the 231 orders is exactly such an experiment, which is why 104÷231104 \div 231 is the probability.
  • Relative frequency: the share of times an event happens in a long run of repetitions. Treat 45.0% as the chance that Ana’s next order is a subscription and you are using the spring’s relative frequency as an estimate. The law of large numbers says that the relative frequency settles closer and closer to the true probability as the repetitions grow, which is why estimates from many orders are steadier than estimates from few.
  • Subjective: a judgement of how likely an event is, used when there is no long run to count. Ana’s view that there is a 60% chance her largest café client renews its contract (fictional) is a subjective probability. It must still obey the rules below, and it should be revised when evidence arrives, which is what Bayes’ rule does.

Reading probabilities from a contingency table

A contingency table counts observations by two categorical variables at once: B03’s PivotTable of channel against subscription is one. Dividing every count by the grand total turns it into a table of probabilities for an order drawn at random.

Lantern’s 231 spring orders by channel and subscription: counts, with probabilities for an order drawn at random
SubscriptionOne-offTotal
Web47 (0.203)85 (0.368)132 (0.571)
App57 (0.247)42 (0.182)99 (0.429)
Total104 (0.450)127 (0.550)231 (1.000)
  • A joint probability is the probability that two events both happen, read from the body of the table: P(app and sub)=57÷231≈0.247P(\text{app and sub}) = 57 \div 231 \approx 0.247.
  • A marginal probability is the probability of one event on its own, read from the margins: P(app)=99÷231≈0.429P(\text{app}) = 99 \div 231 \approx 0.429 and P(sub)≈0.450P(\text{sub}) \approx 0.450.
  • A conditional probability is the probability of one event given that another has happened. P(sub∣app)P(\text{sub} \mid \text{app}), read “the probability of a subscription given an app order”, keeps only the 99 app orders: 57÷99≈0.57657 \div 99 \approx 0.576. For web orders it is 47÷132≈0.35647 \div 132 \approx 0.356.

Conditioning shrinks the sample space to the orders that meet the condition. That is why the order of the bar matters: P(app∣sub)=57÷104≈0.548P(\text{app} \mid \text{sub}) = 57 \div 104 \approx 0.548 is a different question (of the subscription orders, what share came through the app?) with a different answer. B03’s % of Row Total and % of Column Total are these two conditional probabilities, as percentages.

Complements and “or”

The complement of an event AA, written A′A' (“not A”), is every outcome not in AA, so P(A′)=1−P(A)P(A') = 1 - P(A): the chance an order is one-off is 1−0.450=0.5501 - 0.450 = 0.550. For “or”, add the two probabilities and take away the overlap, which would otherwise be counted twice: P(app or sub)=0.429+0.450−0.247=0.632P(\text{app or sub}) = 0.429 + 0.450 - 0.247 = 0.632. Check it with counts: the 99 app orders plus the 47 web subscriptions make 146 orders, and 146÷231≈0.632146 \div 231 \approx 0.632.

Two events are mutually exclusive when they can’t happen together, like “web order” and “app order” for the same order. Their overlap is empty, so the probability of one or the other is the plain sum: 0.571+0.429=10.571 + 0.429 = 1.

Independence

Two events are independent when knowing that one happened doesn’t change the probability of the other: P(A∣B)=P(A)P(A \mid B) = P(A). Here it fails. An order’s chance of being a subscription is 0.450 overall but 0.576 among app orders and 0.356 among web orders. In these orders, channel and subscription are associated.

Independence also predicts what the table would look like. If channel told you nothing about subscription, the 99 app orders would contain subscriptions in the overall proportion, 99×104÷231≈44.699 \times 104 \div 231 \approx 44.6, instead of the 57 observed. Whether a gap of about 12 orders is more than chance would produce in 231 orders is a test question; module 4’s chi-square test answers it. And even a real association wouldn’t show that the app causes subscriptions: app users may be Lantern’s most loyal customers in the first place.

In depth

The rules of probability

Every way of assigning probabilities must obey the same rules. For any event, 0≤P(A)≤10 \leq P(A) \leq 1, and the whole sample space has probability 1. The complement rule follows: P(A′)=1−P(A)P(A') = 1 - P(A). The addition rule gives “or”, the union A∪BA \cup B: P(A or B)=P(A)+P(B)−P(A and B)P(A \text{ or } B) = P(A) + P(B) - P(A \text{ and } B). Here “and” is the intersection A∩BA \cap B, the outcomes in both events, and its probability is 0 for mutually exclusive events.

Conditional probability is defined from the joint and marginal probabilities, P(A∣B)=P(A and B)÷P(B)P(A \mid B) = P(A \text{ and } B) \div P(B), for any BB with P(B)>0P(B) > 0. Rearranged, it is the multiplication rule: P(A and B)=P(B)×P(A∣B)P(A \text{ and } B) = P(B) \times P(A \mid B). With the table, P(app and sub)=0.429×0.576≈0.247P(\text{app and sub}) = 0.429 \times 0.576 \approx 0.247, the same joint probability as before.

For independent events the multiplication rule simplifies to P(A and B)=P(A)×P(B)P(A \text{ and } B) = P(A) \times P(B). Three checks are equivalent, and any one of them shows independence: P(A∣B)=P(A)P(A \mid B) = P(A), P(B∣A)=P(B)P(B \mid A) = P(B), or P(A and B)=P(A)P(B)P(A \text{ and } B) = P(A)P(B). For channel and subscription, P(app)P(sub)=0.429×0.450≈0.193P(\text{app})P(\text{sub}) = 0.429 \times 0.450 \approx 0.193, against the joint probability of 0.247.

Probabilities in Excel

A PivotTable gives the counts, and B03’s % of Grand Total, % of Row Total and % of Column Total turn them into joint and conditional probabilities. The same numbers come from formulas on the order sheet, with channel in column K and subscription in column L: =COUNTIFS(K2:K232,"app",L2:L232,"yes")/COUNT(J2:J232) is the joint probability 0.247, and =COUNTIFS(K2:K232,"app",L2:L232,"yes")/COUNTIF(K2:K232,"app") is the conditional probability 0.576. The pattern is always the same: the count of orders that meet both conditions, divided by the count of orders that meet the condition after the bar (or by all orders, for a joint probability).

Formulas have two advantages over a PivotTable for this work. They update when the data change, and they make the condition visible: anyone reading COUNTIF(K2:K232,"app") in the denominator can see that the probability is conditional on an app order. When a report quotes a percentage, the first check is the denominator, because a share of all orders, a share of app orders and a share of subscription orders are three different probabilities.

Tree diagrams

A tree diagram shows events in sequence. Each branch carries the probability of an event given everything to its left, so the first branches are marginal probabilities and later ones conditional. Multiplying along a path gives the joint probability of that path (the multiplication rule), and the paths’ probabilities add to 1.

The channel × subscription table as a tree. The first branches split orders by channel; the second by subscription, given the channel. Multiplying along each path gives the joint probabilities in the table.

Adding the paths that end in “subscription” recovers the marginal probability: 0.203+0.247=0.4500.203 + 0.247 = 0.450. This is the law of total probability: P(A)=P(B)P(A∣B)+P(B′)P(A∣B′)P(A) = P(B)P(A \mid B) + P(B')P(A \mid B'). It is the denominator of Bayes’ rule.

Sampling with and without replacement

Draw two spring orders at random. If the first is put back before the second is drawn (with replacement), the draws are independent and P(both subscriptions)=(104÷231)2≈0.2027P(\text{both subscriptions}) = (104 \div 231)^2 \approx 0.2027. If it isn’t (without replacement), the second draw depends on the first: 104÷231×103÷230≈0.2016104 \div 231 \times 103 \div 230 \approx 0.2016. Surveys and audits sample without replacement, but when the sample is a small part of the population the two answers are almost the same. That is why the next lesson can treat a few draws from a large population as independent; OpenStax’s rule of thumb is a sample of fewer than 10% of the population.

Bayes’ rule

Tillwise screens every card payment and flags some as possible fraud. Suppose (all rates fictional) that 0.4% of orders are fraudulent, the base rate; that the screen flags 95% of fraudulent orders; and that it also flags 2% of genuine ones, its false positive rate. If an order is flagged, what is the probability it is fraudulent? The screen’s 95% is P(flag∣fraud)P(\text{flag} \mid \text{fraud}); the question asks for P(fraud∣flag)P(\text{fraud} \mid \text{flag}). Bayes’ rule turns one into the other:

P(fraud∣flag)=P(fraud) P(flag∣fraud)P(fraud) P(flag∣fraud)+P(genuine) P(flag∣genuine)=0.004×0.950.004×0.95+0.996×0.02≈0.160P(\text{fraud} \mid \text{flag}) = \frac{P(\text{fraud})\,P(\text{flag} \mid \text{fraud})}{P(\text{fraud})\,P(\text{flag} \mid \text{fraud}) + P(\text{genuine})\,P(\text{flag} \mid \text{genuine})} = \frac{0.004 \times 0.95}{0.004 \times 0.95 + 0.996 \times 0.02} \approx 0.160

Only about 16% of flagged orders are fraudulent. Natural frequencies make the reason visible. Of 10,000 orders, 40 are fraudulent and 38 of them are flagged; of the 9,960 genuine orders, 2%, about 199, are flagged too. So 38 of about 237 flagged orders are fraud. When the base rate is low, even a small false-positive rate produces more false alarms than real cases.

Confusing P(flag∣fraud)P(\text{flag} \mid \text{fraud}) with P(fraud∣flag)P(\text{fraud} \mid \text{flag}) is sometimes called the confusion of the inverse; it usually comes from ignoring the base rate (base-rate neglect), and it lies behind many bad decisions about screening tests, alarms and audits. The reverse question gives a reassuring answer: an order that is not flagged is fraudulent with probability about 0.0002, two in ten thousand. A screen like this is good at clearing orders and poor at convicting them.

Counting outcomes: COMBIN and PERMUT

Classical probability needs the number of equally likely outcomes, and counting them is often the hard part. The number of ways to choose kk items from nn when order doesn’t matter is the number of combinations, (nk)=n!÷(k! (n−k)!)\binom{n}{k} = n! \div (k!\,(n - k)!), Excel’s =COMBIN(n,k); when order matters it is the number of permutations, n!÷(n−k)!n! \div (n - k)!, =PERMUT(n,k). Here n!n! (“n factorial”) is n×(n−1)×⋯×1n \times (n - 1) \times \dots \times 1.

Ana could draw 5,247,527,901 different samples of 5 orders from the 231: =COMBIN(231,5). A simple random sample makes each of them equally likely. Choosing 3 of 5 trainees for a photo can be done in =COMBIN(5,3) = 10 ways, but lining 3 of them up in order in =PERMUT(5,3) = 60 ways, because each group of 3 can be arranged in 3!=63! = 6 orders. Combinations return in the next lesson, where they count the ways a binomial outcome can happen.

Formulas

Complement rule

P(A′)=1−P(A)P(A') = 1 - P(A)
AA
An event
A′A'
Its complement: every outcome not in A
P(⋅)P(\cdot)
Probability, from 0 to 1

Addition rule

P(A or B)=P(A)+P(B)−P(A and B)P(A \text{ or } B) = P(A) + P(B) - P(A \text{ and } B)
A,BA, B
Two events
P(A and B)P(A \text{ and } B)
Their joint probability (the overlap)

For mutually exclusive events P(A and B) = 0, so P(A or B) = P(A) + P(B).

Conditional probability and the multiplication rule

P(A∣B)=P(A and B)P(B),P(A and B)=P(B) P(A∣B)P(A \mid B) = \dfrac{P(A \text{ and } B)}{P(B)}, \qquad P(A \text{ and } B) = P(B)\,P(A \mid B)
P(A∣B)P(A \mid B)
Probability of A given that B has happened
P(B)P(B)
Probability of the condition (must be more than 0)

From a table of counts: the count in the cell divided by the count of the condition’s row or column.

Independence

A,B independent  ⟺  P(A∣B)=P(A)  ⟺  P(A and B)=P(A) P(B)A, B \text{ independent} \iff P(A \mid B) = P(A) \iff P(A \text{ and } B) = P(A)\,P(B)
A,BA, B
Two events with positive probability
P(⋅)P(\cdot)
Probability of the event in brackets

If independent, the expected count in a table cell is row total × column total ÷ grand total.

Bayes’ rule

P(A∣B)=P(A) P(B∣A)P(A) P(B∣A)+P(A′) P(B∣A′)P(A \mid B) = \dfrac{P(A)\,P(B \mid A)}{P(A)\,P(B \mid A) + P(A')\,P(B \mid A')}
P(A)P(A)
Prior probability (the base rate) of A
P(B∣A)P(B \mid A)
Probability of the evidence B when A is true (a screen’s sensitivity)
P(B∣A′)P(B \mid A')
Probability of the evidence when A is false (the false-positive rate)
P(A∣B)P(A \mid B)
Probability of A after seeing B

Assumes. The denominator is P(B), by the law of total probability.

Combinations and permutations (COMBIN, PERMUT)

(nk)=n!k! (n−k)!,P(n,k)=n!(n−k)!\binom{n}{k} = \dfrac{n!}{k!\,(n - k)!}, \qquad P(n, k) = \dfrac{n!}{(n - k)!}
nn
Number of items to choose from
kk
Number chosen
n!n!
n factorial: n × (n − 1) × … × 1, with 0! = 1
P(n,k)P(n, k)
Number of ordered selections (permutations)

In Excel: =COMBIN(n,k) and =PERMUT(n,k); =FACT(n) gives n!.

Worked examples

A first example: Four probabilities from the channel table

Fictional figures

One of Lantern’s 231 spring orders is drawn at random. Using the channel × subscription table, find P(web), P(web and one-off), P(one-off | web) and P(web or one-off).

  1. Marginal: P(web)=132÷231≈0.571P(\text{web}) = 132 \div 231 \approx 0.571.
  2. Joint: P(web and one-off)=85÷231≈0.368P(\text{web and one-off}) = 85 \div 231 \approx 0.368.
  3. Conditional: keep only the 132 web orders, P(one-off∣web)=85÷132≈0.644P(\text{one-off} \mid \text{web}) = 85 \div 132 \approx 0.644. Check with the multiplication rule: 0.571×0.644≈0.3680.571 \times 0.644 \approx 0.368.
  4. Addition rule: P(web or one-off)=0.571+0.550−0.368=0.753P(\text{web or one-off}) = 0.571 + 0.550 - 0.368 = 0.753, the 174 orders that are web, one-off or both. Its complement is the 57 app subscriptions: 1−0.753=0.2471 - 0.753 = 0.247.

Answer. P(web) ≈ 0.571, P(web and one-off) ≈ 0.368, P(one-off | web) ≈ 0.644, P(web or one-off) ≈ 0.753.

What it means. Almost two web orders in three are one-off purchases. The “or” probability is easiest through its complement: the only orders that are neither web nor one-off are the app subscriptions.

A harder example: Are East orders more often subscriptions?

Fictional figures

By region, the spring orders split as follows (subscription, one-off): North 19 and 39; South 18 and 25; East 39 and 13; West 17 and 36; Central 11 and 14. Is region independent of subscription for these orders? What would independence predict for the East? And if Ana picks two subscription orders at random, without replacement, for a follow-up call, what is the chance both are from the East?

Spring orders by region and subscription
RegionSubscriptionOne-offTotalP(sub | region)
North1939580.328
South1825430.419
East3913520.750
West1736530.321
Central1114250.440
Total1041272310.450
  1. Compare each region’s conditional probability with the overall one. P(sub∣East)=39÷52=0.75P(\text{sub} \mid \text{East}) = 39 \div 52 = 0.75, far above P(sub)≈0.450P(\text{sub}) \approx 0.450; North (0.328) and West (0.321) are below it. The conditional probabilities differ, so region and subscription are not independent in these orders.
  2. What independence predicts: the 52 East orders would contain subscriptions in the overall proportion, 52×104÷231≈23.452 \times 104 \div 231 \approx 23.4, against 39 observed.
  3. Turn the condition round: P(East∣sub)=39÷104=0.375P(\text{East} \mid \text{sub}) = 39 \div 104 = 0.375, against P(East)=52÷231≈0.225P(\text{East}) = 52 \div 231 \approx 0.225. The East supplies 37.5% of subscription orders but 22.5% of all orders.
  4. Two subscription orders without replacement: P(both East)=39104×38103≈0.1383P(\text{both East}) = \tfrac{39}{104} \times \tfrac{38}{103} \approx 0.1383. The second fraction is conditional on the first call being to an East customer, so one East order has left the pool.

Answer. Not independent: P(sub | East) = 0.75 against P(sub) ≈ 0.450; independence would predict about 23.4 East subscriptions, not 39. P(both calls go to the East) ≈ 0.138.

What it means. In the spring data, East customers subscribe far more often than others. That is a description of these orders: whether the gap is bigger than chance is module 4’s chi-square test, and why it exists (a local café partner promoting subscriptions? the delivery schedule?) is a question the data can’t answer alone.

Applied: a business decision: Should flagged orders be cancelled automatically?

Fictional figures

Tillwise offers Ana a setting that cancels every flagged order automatically. Using the fictional rates above (base rate 0.4%, 95% of fraud flagged, 2% of genuine orders flagged) and Lantern’s 583 orders in December 2026, how many orders would be cancelled in a month like December, how many of them genuine, and what should Ana choose?

  1. Probability that an order is flagged (law of total probability): 0.004×0.95+0.996×0.02=0.023720.004 \times 0.95 + 0.996 \times 0.02 = 0.02372. In December, 583×0.02372≈13.8583 \times 0.02372 \approx 13.8 orders would be flagged.
  2. Of those, fraudulent: 583×0.004×0.95≈2.2583 \times 0.004 \times 0.95 \approx 2.2; genuine: 583×0.996×0.02≈11.6583 \times 0.996 \times 0.02 \approx 11.6.
  3. Bayes’ rule gives the same split as a probability: P(fraud∣flag)≈0.160P(\text{fraud} \mid \text{flag}) \approx 0.160, so about 16% of cancelled orders would be fraud and 84% genuine customers.
  4. Weigh the outcomes. Automatic cancellation would turn away about 12 genuine December customers to stop about 2 fraudulent orders. Holding flagged orders for a manual check instead costs about 14 short reviews a month.

Answer. About 14 December orders would be flagged; about 12 of them genuine. Ana should hold flagged orders for review rather than cancel them.

What it means. A flag raises the probability of fraud from 0.4% to about 16%, a forty-fold increase, but leaves most flagged orders genuine. The flag is a reason to look, not a verdict. If Ana’s real base rate is lower than 0.4%, the share of false alarms is even higher.

Explore

The channel × subscription table with every probability in this lesson as a formula. Change the counts in B2:C3 and watch the conditional probabilities: make P(subscription | app) equal P(subscription | web) and check that the expected app subscriptions in B12 then match the observed count.

Loading the interactive…

Tillwise’s fictional fraud screen. Move the base rate down to 0.1% and the share of flagged orders that are fraud falls sharply; raise it to 5% and most flags are real. Then cut the false-positive rate: it matters far more than the share of fraud caught.

Loading the interactive…

Common mistakes

  • “P(A | B) and P(B | A) are the same thing.”

    They answer different questions. 57.6% of app orders are subscriptions, but 54.8% of subscriptions are app orders. With a rare event the gap is enormous: the fraud screen flags 95% of fraud, yet only 16% of flagged orders are fraud.

  • “Mutually exclusive events are independent.”

    They are the opposite: if two events can’t happen together, knowing one happened makes the other impossible. Independent events can happen together, and one tells you nothing about the other.

  • “P(A or B) = P(A) + P(B).”

    Only when A and B can’t both happen. Otherwise the overlap is counted twice: P(app or subscription) is 0.429 + 0.450 − 0.247 = 0.632, not 0.879.

  • “The conditional probabilities differ, so one causes the other.”

    A difference between P(subscription | app) and P(subscription | web) shows association in these orders. It may be chance (module 4 tests that), and even a real association can come from a confounding variable, such as loyal customers preferring the app.

  • “Ignore the base rate: the screen is 95% accurate.”

    A screen’s sensitivity and false-positive rate describe how it treats cases whose truth is known. What a flagged case means depends on how common the condition is. Always put the base rate into Bayes’ rule, or count natural frequencies.

Guided practice

Work through these with hints when you need them. Every hint and every worked solution is there to be used.

Loading four questions…

On your own

No hints this time. Answer, check, and read the feedback; the solution appears once you have answered or if you ask for it. Your first answers count toward mastery.

Loading six questions…

In practice

Conditional probabilities are how businesses read their own data. A retailer compares the share of app customers who return with the share of web customers; an insurer prices a policy from claim rates conditional on age and region; a bank tunes a fraud model by trading its sensitivity against its false-positive rate. In each case the first question is “conditional on what?”, and the second is whether the comparison is between groups that differ in other ways too.

Bayes’ rule is the arithmetic of screening, and screening is everywhere: credit checks, quality inspections, spam filters, medical tests, audit samples. The managerial lesson is that the value of a flag depends on the base rate. A screen that is excellent in a population where the problem is common can be mostly false alarms where it is rare, so a business should decide what a flag triggers (a review, a call, a hold) from the expected numbers of true and false flags, not from the screen’s headline accuracy.

Fictional case

Ana sets Tillwise to hold flagged orders for her to check rather than cancel them, and adds a line to her shop review: “App orders were subscriptions 58% of the time, web orders 36%; East orders 75%. These are differences in the spring’s orders; whether they are more than chance, and why, is still open.” Module 4 runs the test.

Knowledge check

Six questions, one attempt each, no hints. Score 80% or more to complete the lesson; you can take it again at any time.

Loading six questions…

Summary

  • A probability is a number from 0 to 1; it can be classical (equally likely outcomes), a relative frequency (a long-run share) or subjective (a judgement), and all obey the same rules.
  • From a contingency table: joint probabilities come from the cells, marginal probabilities from the totals, conditional probabilities from a cell divided by its row or column total.
  • P(A′) = 1 − P(A); P(A or B) = P(A) + P(B) − P(A and B); P(A and B) = P(B) × P(A | B).
  • A and B are independent when P(A | B) = P(A); independence predicts each cell’s count as row total × column total ÷ grand total.
  • Mutually exclusive events can’t happen together and are not independent; P(A | B) is not P(B | A).
  • A tree diagram multiplies along branches for joint probabilities; without replacement, later branches change.
  • Bayes’ rule turns P(evidence | condition) into P(condition | evidence); with a low base rate most flags can be false positives.
  • COMBIN counts unordered selections and PERMUT ordered ones; a simple random sample makes every combination equally likely.

Key formulas

Terms introduced

Sample space
The set of all possible outcomes of an experiment, such as the 231 orders that a random draw could pick.
Event
A set of outcomes of an experiment, such as “the order drawn is a subscription”.
Probability
A number from 0 (impossible) to 1 (certain) that measures how likely an event is; the probabilities of all the outcomes in a sample space add to 1.
Relative frequency
The number of times an event occurs divided by the number of trials or observations; used as an estimate of its probability.
Law of large numbers
As an experiment is repeated more and more times, the relative frequency of an event tends to get closer to its probability, and the average of the results to the expected value.
Contingency table
A table that counts observations by two categorical variables at once, one in the rows and one in the columns, with row and column totals.
Joint probability
The probability that two events both happen, P(A and B); in a contingency table, a cell count divided by the grand total.
Marginal probability
The probability of one event regardless of the others; in a contingency table, a row or column total divided by the grand total.
Conditional probability
The probability of an event given that another has happened, P(A | B) = P(A and B) ÷ P(B).
Complement
All the outcomes not in an event A, written A′; P(A′) = 1 − P(A).
Mutually exclusive
Describes events that can’t happen together, so P(A and B) = 0 and P(A or B) = P(A) + P(B).
Independent
Describes events where knowing one has happened doesn’t change the probability of the other: P(A | B) = P(A), equivalently P(A and B) = P(A) × P(B). Two categorical variables are independent when this holds for every pair of their categories.
Tree diagram
A diagram of events in sequence whose branches carry probabilities, conditional on the branches before them; multiplying along a path gives its joint probability.
Bayes’ rule
P(A | B) = P(A) P(B | A) ÷ [P(A) P(B | A) + P(A′) P(B | A′)]: how the probability of A changes once evidence B is seen.
Base rate
How common a condition is in the population before any evidence is seen, such as the share of orders that are fraudulent; the prior probability in Bayes’ rule.
False positive
A case flagged by a screen or test that does not have the condition, such as a genuine order flagged as fraud. The false-positive rate is the share of cases without the condition that the screen flags, P(flag | no condition).

Sources

  1. Holmes, A., Illowsky, B. & Dean, S. (2023). Introductory Business Statistics 2e, section 3.1, “Terminology” (sample space, events, relative frequency, conditional probability). OpenStax. openstax.org/books/introductory-business-statistics-2e/pages…
  2. Holmes, A., Illowsky, B. & Dean, S. (2023). Introductory Business Statistics 2e, chapter 3, “Formula Review” (independence, mutually exclusive events, the multiplication and addition rules). OpenStax. openstax.org/books/introductory-business-statistics-2e/pages…
  3. Holmes, A., Illowsky, B. & Dean, S. (2023). Introductory Business Statistics 2e, section 4.2, “Binomial Distribution” (sampling without replacement and the 10% rule). OpenStax. openstax.org/books/introductory-business-statistics-2e/pages…
  4. Ault, S. V., Liao, S. N. & Musolino, L. (2025). Principles of Data Science, section 3.4, “Probability Theory” (Bayes’ theorem and a screening example). OpenStax. openstax.org/books/principles-data-science/pages/3-4-probabi…
  5. Microsoft Support. “COMBIN function”, with the page for PERMUT. support.microsoft.com/en-us/office/combin-function-12a3f276-…