Respuesta :
Answer:
a) We can use the following R code:
> x <- seq(0,12,by = 1)
> y <- dbinom(x,12,0.05)
> plot(x,y,type="h",main="Histogram for n=12, p=0.05")
And we got the figure attached.
b) [tex] \mu = E(X) = n*p = 12*0.05=0.60[/tex]
So the expected number is 0.6 syringes
c) [tex]P(X<2) = P(X=0)+P(X=1)[/tex]
[tex]P(X=0)=(12C0)(0.05)^0 (1-0.05)^{12-0}=0.5404[/tex]
[tex]P(X=1)=(12C1)(0.05)^1 (1-0.05)^{12-1}=0.34128[/tex]
[tex] P(X<2) = 0.5404+0.34128=0.882[/tex]
d) For this case we need to find first the variance given by:
[tex]\sigma^2= Var(X) = n*p*(1-p) =12*0.05*(1-0.05)=0.57[/tex]
And the deviation would be the square root of the variance
[tex] \sigma =Sd(X) = \sqrt{0.57}=0.755[/tex]
Step-by-step explanation:
Previous concepts
The binomial distribution is a "DISCRETE probability distribution that summarizes the probability that a value will take one of two independent values under a given set of parameters. The assumptions for the binomial distribution are that there is only one outcome for each trial, each trial has the same probability of success, and each trial is mutually exclusive, or independent of each other".
Solution to the problem
Let X the random variable of interest, on this case we now that:
[tex]X \sim Binom(n=12, p=0.05)[/tex]
The probability mass function for the Binomial distribution is given as:
[tex]P(X)=(nCx)(p)^x (1-p)^{n-x}[/tex]
Where (nCx) means combinatory and it's given by this formula:
[tex]nCx=\frac{n!}{(n-x)! x!}[/tex]
Part a
We can use the following R code:
> x <- seq(0,12,by = 1)
> y <- dbinom(x,12,0.05)
> plot(x,y,type="h",main="Histogram for n=12, p=0.05")
And we got the figure attached.
Part b
For this case the mean is given by the following formula:
[tex] \mu = E(X) = n*p = 12*0.05=0.60[/tex]
So the expected number is 0.6 syringes
Part c
The batch is rejected if we have two or more defective syringes. So then the probability that would be accepted is:
[tex]P(X<2) = P(X=0)+P(X=1)[/tex]
[tex]P(X=0)=(12C0)(0.05)^0 (1-0.05)^{12-0}=0.5404[/tex]
[tex]P(X=1)=(12C1)(0.05)^1 (1-0.05)^{12-1}=0.34128[/tex]
[tex] P(X<2) = 0.5404+0.34128=0.882[/tex]
Part d
For this case we need to find first the variance given by:
[tex]\sigma^2= Var(X) = n*p*(1-p) =12*0.05*(1-0.05)=0.57[/tex]
And the deviation would be the square root of the variance
[tex] \sigma =Sd(X) = \sqrt{0.57}=0.755[/tex]
