The fraction of shipments that will be accepted is 0.1299.
<h3>
How to calculate the probability?</h3>
Probability of a defective DVD = 0.04
Using Binomial distribution,
Fraction of shipments accepted = Probability of zero defects in sample of 50 = P(X = 0)
= 50C0 * 0.040 * (1 - 0.04)⁵⁰
= 0.96⁵⁰
= 0.1299
Fraction of shipments accepted = Probability of zero or one defects in sample of 50 = P(X = 0) + P(X = 1)
= 50C0 * 0.040 * (1 - 0.04)50-0 + 50C1 * 0.041 * (1 - 0.04)50-1
= 0.9650 + 50 * 0.04 * 0.9649
= 0.4005
Learn more about probability on:
brainly.com/question/24756209
#SPJ1
<span>In the glare of the sun, it is hard to see and be seen. Some precautions would be :
1) </span><span>Have a polarized sunglasses ready, they can help reduce glare.
2) Use your sun visor – it can help to block out the sun.
3) Leave more following space between you and the next vehicle.
4) Drive with your headlights on to increase your visibility to other drivers.
</span>5) Keep your windshield clean, inside and out, avoid storing papers or
other items on the dashboard.
6) If having a difficult time seeing the road, use the lane markings to help
guide you.
First we need to understand what "n for n in range(10)" means. Basically, we are iterating through all the values n that are in the range of 10 (meaning 0, 1, 2, 3, ..., 9).
Next we are evaluating if n%2. The percentage sign is used to represent modulus which is the remainder of when two numbers are divided. In this case, we are dividing n by 2, and the remainder is our result. When dividing by 2, the only possible remainders are 0 or 1, which when used in an if statement represent the boolean vlaues false and true, respectively. We are doing this calculation for each n from 0 to 9, and if the result is true, we output n to an array.
The numbers that will result in true (a remainder of 1) are the odds numbers. For example, 4/2 = 2 with nothing left over while 5/2 = 2 with 1 left over.
So the following is returned:
[1, 3, 5, 7, 9]
Yes each time it's pressed so it's true