Loren O. answered 10d
Senior Software Engineer - C++, Go, PHP, Git: Debugging & Coding
Interpreting your question as:
A fair die is thrown 7 times. What is the probability of getting a 1 on at most one of the throws?
First, let’s state a few standard assumptions:
- A fair die has 6 equally likely sides, numbered 1 through 6.
- The throws (also called trials) are independent, meaning the outcome of one throw does not affect the others.
- “At most one” means either zero or exactly one throw comes up as a 1.
The probability of getting a specific outcome (such as a 1) on a single throw is ( 1/6 ), and the probability of not getting a 1 on a throw is ( 5/6 ).
We’ll also use two basic probability rules:
- The probability of one of several mutually exclusive events occurring is the sum of their probabilities.
- The probability of independent events occurring together is the product of their probabilities.
Now consider the possible ways the success condition can occur. These events are mutually exclusive:
- Zero of the 7 throws come up as 1
- Exactly one throw comes up as 1:
- the first throw is a 1 and the other 6 are not
- the second throw is a 1 and the other 6 are not
- …
- the seventh throw is a 1 and the other 6 are not
We can write this compactly as:
(5/6)7 + 7•(1/6)(5/6)6
Now simplify:
(5/6)7 + 7•(1/6)(5/6)6
= 57/67 + (7•56)/67
= (57 + 7•56)/67
= (56(5+7))/67
= (56•12)/67
= (56•2)/66
= (56)/(65•3)
= 15625/23328
Decimal approximation:
≈ 0.669796
So the probability is (15625/23328 ≈ 0.6698).