In data science, you are given the following problem:
In an inspection of automobiles, 70% of all the automobiles had emissions that did not meet the pollution control requirement. For a random sample
of 20 automobiles, you are required to calculate the probability that 8 automobiles fail the inspection. Which of this code will you use to calculate
the required probability
Answers
Given :70% of all the automobiles had emissions that did not meet the pollution control requirement a random sample of 20 automobiles
To Find : calculate the probability that 8 automobiles fail the inspection
Code for the same
Solution:
70% of all the automobiles had emissions that did not meet the pollution control requirement
=> p = 0.7 ( probability to fail the inspection )
q = 1 - p = 1 - 0.7 = 0.3 Probability to pass inspection
n = 20
x = 8
P(x) = ⁿCₓpˣqⁿ⁻ˣ
P(8) = ²⁰C₈(0.7)⁸(0.3)¹²
= 0.00386
the probability that 8 automobiles fail the inspection = 0.00386
n = = 20
pi = 0.7
x = 8
value = stats.binom.cdf(x, n, pi ) is not correct as it will provide provide probability of failure from 1 to 8 ( cumulative distribution )
stats - Statistic
binom = binomial distribution
cdf = cumulative distribution function.
value = stats.binom.pmf(x, n, pi ) as we need to get probability of x = 8
pmf = probability mass function.
Learn More:
The probability of a component's failure is 0.05. Out of 14 ...
https://brainly.in/question/19727623
If probability is 0.55 that a person will believe in a piece of fake news ...
https://brainly.in/question/19591686
Answer:
fjaattggtgd
Explanation:
sdfwyecfyw