Question

In: Statistics and Probability

9. Suppose that DVDs in a certain shipment are defective with a Beta distribution with α...

9. Suppose that DVDs in a certain shipment are defective with a Beta distribution with α = 2 and β = 5. Use R to compute the probability that the shipment has:

a)  20% to 30% defective DVDs.

b)  Less than 10% defective DVDs.

c) More than 25% defectives.

d) Set up the integral to find the probability that there is between 10% and 40% defectives. Then find the answer with R.

Solutions

Expert Solution

Given data follows beta distribution with

then ,

#Random number generation
p=rbeta(50,2,5)
p

#20% to 30% defective DVDs
D=pbeta(0.3,2,5)-pbeta(.2,2,5)
D

#less than 10% defective DVDs
LD=pbeta(.10,2,5)
LD

#More than 25% defective
MD=pbeta(.25,2,5,lower=F)
MD

#10% to 40% defective DVDs
D=pbeta(0.4,2,5)-pbeta(.1,2,5)
D
ANSWER

p=rbeta(50,2,5)
> p
[1] 0.33525159 0.40475736 0.33494896 0.33931759 0.77575651 0.21931675
[7] 0.14948975 0.26728552 0.30995125 0.36932356 0.22764835 0.21471545
[13] 0.17399571 0.23928556 0.10755878 0.36965143 0.07485323 0.27514441
[19] 0.24465168 0.60415653 0.10913094 0.47693667 0.12814216 0.40777194
[25] 0.22353339 0.22941899 0.35387726 0.39870388 0.42905823 0.33479674
[31] 0.07990354 0.12944578 0.03134308 0.25032622 0.44486543 0.18881404
[37] 0.52870911 0.16775588 0.09361808 0.07542389 0.30773208 0.57031194
[43] 0.29524329 0.54738416 0.31677122 0.48244908 0.25418352 0.11410115
[49] 0.16632487 0.29064165
>
> #20% to 30% defective DVDs
> D=pbeta(0.3,2,5)-pbeta(.2,2,5)
> D
[1] 0.235185
>
> #less than 10% defective DVDs
> LD=pbeta(.10,2,5)
> LD
[1] 0.114265
>
> #More than 25% defective
> MD=pbeta(.25,2,5,lower=F)
> MD
[1] 0.5339355
>
> #10% to 40% defective DVDs
> D=pbeta(0.4,2,5)-pbeta(.1,2,5)
> D
[1] 0.652455
>


Related Solutions

Suppose that the proportion θ of defective items in a large shipment is unknown, and that...
Suppose that the proportion θ of defective items in a large shipment is unknown, and that the prior distribution of θ is a beta distribution for which the parameters are α = 2 and β = 200. If 100 items are selected at random from the shipment and if three of these items are found to be defective, what is the posterior distribution of θ?
Suppose a shipment of 140 electronic components contains 4 defective components. To determine whether the shipment...
Suppose a shipment of 140 electronic components contains 4 defective components. To determine whether the shipment should be accepted, a quality control engineer randomly selects 4 of the components and test them. If 1 or more of the components is defective, the shipment is rejected. what is the probability that the shipment rejected?
A certain large shipment comes with a guarantee that it contains no more than 25% defective...
A certain large shipment comes with a guarantee that it contains no more than 25% defective items. If the proportion of items in the shipment is greater than 25%, the shipment may be returned. You draw a random sample of 12 items and test each one to determine whether it is defective. a. If in fact 25% of the items in the shipment are defective (so that the shipment is good, but just barely) what is the probability that 7...
A certain large shipment comes with a guarantee that it contains no more than 20% defective...
A certain large shipment comes with a guarantee that it contains no more than 20% defective items. If the proportion of items in the shipment is greater than 20%, the shipment may be returned. You draw a random sample of 10 items and test each one to determine whether it is defective.             If in fact 20% of the items in the shipment are defective (so that the shipment is good, but just barely) what is the probability that 7...
A certain large shipment comes with a guarantee that it contains no more than 20% defective...
A certain large shipment comes with a guarantee that it contains no more than 20% defective items. If the proportion of items in the shipment is greater than 20%, the shipment may be returned. You draw a random sample of 10 items and test each one to determine whether it is defective. Assume X P(X) P ( X = 0) = C (10,0) * 0.2^0 * ( 1 - 0.2)^10= 0 0.1074 P ( X = 1) = C (10,1)...
A shipment of 9 microwave ovens contains 3 defective units. A restaurant buys four of these...
A shipment of 9 microwave ovens contains 3 defective units. A restaurant buys four of these units. What is the probability of the restaurant buying at least three non-defective​ units?
Suppose that two defective refrigerators have been included in a shipment of eight refrigerators. The buyer...
Suppose that two defective refrigerators have been included in a shipment of eight refrigerators. The buyer begins to test the eight refrigerators one at a time. Let the random variable Y represent the number of defective refrigerators found after three refrigerators have been tested. Compute the probability distribution of Y. I did a similar problem to this but worked out a sample space etc. and solved for certain probabilities however what confused me then and what confuses me now is...
Suppose that 10% of the engines manufactured on a certain assembly lineare defective. If engines are...
Suppose that 10% of the engines manufactured on a certain assembly lineare defective. If engines are randomly selected one at a time and tested, (a) (4 points) Calculate the probability that two good engines will be testedbefore a defective engine is found. (b) (4 points) Calculate the probability that at least three good engineswill be tested before a defective engine is found. (c) (2 points) Calculate the expected value of the number of good enginestested before a defective engine is...
In a shipment of 15 components of a particular computer model, 5 components are defective. For...
In a shipment of 15 components of a particular computer model, 5 components are defective. For exercises 1 & 2, let X be the number of defective components discovered when 4 of them are randomly selected for inspection. 1. Define the probability mass function of X. 2. What is the probability that at least 2 defective components are discovered during the inspection?
A shipment of 1000 radios contains 15 defective ones. a) If an inspector selects 10 to...
A shipment of 1000 radios contains 15 defective ones. a) If an inspector selects 10 to sample, what is the % chance he will detect at least one defect? b) How many radios must be sampled to yield a 50+% chance of detecting a defect?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT