Usually, errors are found in 10% of lines of code written by software engineers at Error Free Code, Inc. What is the probability that in a r

Question

Usually, errors are found in 10% of lines of code written by software engineers at Error Free Code, Inc. What is the probability that in a randomly selected sample of 5 lines of code 2 of them have errors?

in progress 0
Ruby 3 weeks 2021-11-13T22:34:19+00:00 1 Answer 0 views 0

Answers ( )

    0
    2021-11-13T22:35:59+00:00

    Answer: The required probability is 0.008.

    Step-by-step explanation:

    Since we have given that

    Probability of getting codes having no error = 10% = q

    Probability of getting codes having error = 100-10=90%.= q

    So, sample n = 5

    X = 2 (i.e. code 2 of them have errors)

    Using “Binomial theorem”:

    P(X=n)^nC_xp^xq^{n-x}

    P(X=2)=^5C_2(0.9)^2(0.10)^3=0.008

    Hence, the required probability is 0.008.

Leave an answer

45:7+7-4:2-5:5*4+35:2 =? ( )