UPI Study › Courses › Discrete Mathematics › Free lessons › Lesson 8.1 Free with a free account
Binomial Experiments and Their Conditions
Discrete Mathematics · Chapter 8: Binomial Probability, Recurrence Relations, and Generating FunctionsSection 8.1 · lesson 46 of 879 min · free with a free account
Free preview
Create a free account to keep watching
It takes a minute and costs nothing. Your free account unlocks all of Chapter 1 and 3 more lessons of Discrete Mathematics.
Lesson complete
Earn the 4 college credits for Discrete Mathematics
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: The Binomial Probability Formula →← Comparing Game Strategies with Expected ValueNext lesson: The Binomial Probability Formula →
In this lesson
Classify first, compute later.
- Define a Bernoulli trial
- State the 4 conditions of a binomial experiment
- Check a real scenario condition by condition
- Recognize the scenarios that only look binomial
Transcript
Everything said in the video, section by section (1,218 words). Read along, or search it.
Binomial Probability, Recurrence Relations, and Generating Functions
Binomial Experiments and Their Conditions
Chapter eight covers binomial probability, recurrence relations, and generating functions. It starts with a classification skill. Before computing any binomial probability, you have to confirm the situation is actually binomial. This section lays out exactly what that requires, one condition at a time. The formula itself comes in section eight point two, once the classification is secure.
The Opening Problem
A Canary Test of 50 Transactions
A site reliability engineer is about to route real customer traffic to a newly deployed checkout service. First, she runs a controlled test. She sends fifty identical, independently issued test transactions, and records whether each one fails. Staging data suggests each transaction fails with a fixed probability of zero point zero two. And each request is routed independently, with no shared state or retry logic linking them. Before she can ask how many failures to expect, or how likely three or more failures are, there's a prior question. Does this test actually satisfy the conditions that make a binomial experiment the right model? Some situations look binomial at a glance, and aren't.
Definition 8.1.1
The Bernoulli Trial
Every binomial experiment is built from a simpler unit. A single random experiment with exactly two possible outcomes. It's called a Bernoulli trial. The two outcomes are conventionally labeled success and failure, with fixed probabilities p and one minus p. Those labels are a modeling convention, not a judgment. Success simply names whichever outcome is being counted. It's standard to record the result as a random variable X sub i, equal to one when the counted outcome happens, and zero otherwise. It models far more than pass or fail tests. A coin flip, a spam-filter decision, or one bit sent over a noisy channel. All that matters is exactly two outcomes, each with a fixed probability. The name honors the Swiss mathematician Jacob Bernoulli, whose late seventeenth-century work first gave this structure a formal treatment.
Worked Example 8.1.1
1 Transaction, 1 Bernoulli Trial
Take one of the engineer's fifty transactions on its own. The team is counting failures, so it's convenient to designate failure as the counted outcome. X sub i is one when transaction i fails, and zero when it's processed correctly. So the probability that X sub i is one is zero point zero two. And the probability that it's zero is zero point nine eight. That single transaction is one Bernoulli trial. Whether all fifty together form a binomial experiment is a separate question.
Definition 8.1.2
4 Conditions, All at Once
A binomial experiment combines Bernoulli trials in a specific way, and only when four conditions all hold at once. First, a fixed number of trials, n, decided in advance. It isn't determined by the outcomes seen while the experiment runs. Second, every trial has exactly two outcomes. Each is a Bernoulli trial. Third, a constant probability of success. The same p on every trial. And fourth, independence. Knowing whether one trial succeeded gives no information about any other. When all four hold, X, the number of successes across n trials, is a binomial random variable. And missing a condition doesn't make an experiment invalid. It just points to a different model.
Worked Example 8.1.2
Checking the Canary Test
Now check the canary test against all four. Fixed n. The engineer decided before sending anything that exactly fifty requests would go out. That doesn't depend on how many fail along the way. Two outcomes. Every transaction is scored as failed, or processed correctly. There's no third category. Constant p. The load conditions are held fixed for all fifty requests, so p is zero point zero two throughout. Independence. There's no shared state, caching, or retry logic. Knowing request twelve failed says nothing about request thirteen. All four hold, so it's a binomial experiment, with n equal to fifty and p equal to zero point zero two. The same check fits a forty-bit codeword sent over a stable, noisy channel.
Worked Example 8.1.3a
Sampling Without Replacement
Not every repeated yes or no process is binomial. The most instructive cases silently fail just one condition. Suppose a quality-control lead samples five hard drives, without replacement, from a shipment of twenty. Four of the twenty are defective. The first draw is defective with probability four in twenty, zero point two. If the first draw was defective, nineteen drives remain, three of them defective. So the second is defective with probability three nineteenths, about zero point one five eight. If the first draw wasn't defective, all four defectives remain. So it's four nineteenths, about zero point two one. The second draw's chance genuinely depends on the first. Independence fails, so this isn't binomial. Sampling without replacement follows the hypergeometric distribution, from section seven point two.
2 More Failure Modes
A Stopping Rule, and a Drifting p
Two more failure modes. Suppose a tester keeps sending transactions, and stops as soon as the first failure occurs. Now the number of trials is itself random. A lucky run might stop after three, an unlucky one after eighty. The fixed n condition fails before the others even matter. That wait-for-the-first-event structure is a different distribution, called geometric. It's outside this section, but worth recognizing. Or suppose a spam filter is evaluated on a fixed batch of two hundred emails. Partway through, a model update is silently deployed. n is fixed, and each email still has two outcomes. But the probability of a correct classification changes. So the constant p condition fails.
Table 8.1.1
5 Scenarios, 4 Conditions Each
This table checks five scenarios against all four conditions. The canary test and the codeword on a noisy channel pass every condition. Both are binomial. The hard drive sample has a fixed n and two outcomes. But the trials aren't independent, so it's hypergeometric. Sending until the first failure has no fixed n, so it's geometric. And the spam-filter batch with a mid-batch update has a p that isn't constant, so it isn't binomial either.
Figure 8.1.1
A Decision Procedure
Here's the same logic as a decision procedure. Check the four conditions in order. A single no, at any point, rules out a binomial model, and suggests which alternative is likely more appropriate. Four yes answers confirm the experiment is binomial, and license the formula developed in section eight point two.
The Silent Condition
Constant p Isn't Independence
One subtlety deserves its own slide. Constant p and independence are separate conditions. Condition three is about marginal probabilities. Each trial's chance of success, before anything is observed. Condition four is about conditional probabilities. Whether that chance changes once other trials' results are known. The hard drive sample shows the difference. Before any draw, each draw is defective with probability zero point two. Yet once the first draw is seen, that shifts. So a scenario can satisfy constant p, and still fail independence. That's why independence is the condition most often violated silently.
Takeaways
Classify Before You Compute
To summarize. A Bernoulli trial is a single experiment with two outcomes and fixed probabilities. It's the building block of a binomial experiment, not the same thing. A binomial experiment needs all four conditions at once. A fixed n, two outcomes per trial, a constant p, and independence. Sampling without replacement is dependent, even when p looks constant. And a stopping rule makes n random, which rules out a binomial model. Here's something to think about. Redo the hard drive calculation with fifty thousand items, ten thousand of them defective. The conditional probabilities get very close together. Does that mean independence is now satisfied? Or is it still technically violated, with a negligible effect? Is there a meaningful difference between those two claims? And does it matter which one an analyst relies on, when choosing the simpler binomial model as an approximation?
About Discrete Mathematics at UPI Study
Discrete Mathematics (Math 230) is a self-paced online course of 87 video lessons in 13 chapters, from logic and proof to counting, probability, graph theory and trees. It carries a NCCRS credit recommendation for 4 semester credits.
Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Enroll now → Course details Download the syllabus Every course with PRO →
Why take it here
Why students take Discrete Mathematics with UPI Study
Where the credit goes
Universities that work with NCCRS
Discrete Mathematics carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.
FAQ
Questions students ask us
About Binomial Experiments and Their Conditions
What is a Bernoulli trial?
What are the four conditions of a binomial experiment?
Is drawing 5 items without replacement from a small batch a binomial experiment?
What is the difference between constant probability and independence in a binomial experiment?
About the Discrete Mathematics course
How many college credits is Discrete Mathematics?
How much does Discrete Mathematics cost and what is included?
Which universities accept UPI Study credits?
How long does Discrete Mathematics take?
How are the exams done?
How do my credits reach my college?
Ready for the full course? Earn 4 credits in Discrete Mathematics.
87 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.
4 credits · NCCRSEnroll →