Question

In: Statistics and Probability

Can you explain with R Code: The probability that an electronic component fails in the first...

Can you explain with R Code:

The probability that an electronic component fails in the first day of operation is 0.005. 400 items are tested independently and whether they fail or not after a day will be recorded.

(a)What is the distribution of the number of items that fail?

(b) What is the probability that at least two items fail?

(c) Give the Poisson approximation for a, and compute the approximate answer to part b based on the Poisson approximation?

Comment on the accuracy of the approximation.

Solutions

Expert Solution

R CODE :

# Part (b)

1- pbinom ( 1, 400, 0.005)

#-- It gives 1-P (X <=1) ,where pbinom is the Cdf of Binomial evaluated at 1, and parameters are n=400, p=0.005.

# Part (c)

1- ppois (1,2)

#-- It gives 1- P (X <=1) ,where ppois is the Cdf of Poisson evaluated at 1, and parameter is =2


Related Solutions

(R code needed) Lifetimes of electronic components manufactured by an electronic company are assumed to follow...
(R code needed) Lifetimes of electronic components manufactured by an electronic company are assumed to follow an Exp(λ) distribution with mean 1/λ. A random sample of 30 lifetimes in years was obtained and shown below: 5.1888 3.6757 4.5091 7.1320 1.3711 1.6454 2.1979 3.8805 0.5290 2.3796 3.2840 3.6678 0.6836 7.9914 12.9922 2.6192 0.3593 5.0234 0.2240 7.5862 0.1172 0.0618 2.6203 16.2319 17.2107 0.8101 8.9368 2.0752 0.9925 1.0187 The data can also be found in life2018.csv. (a) Find the moment estimate of λ....
Please Provide R code as well Use R to find probability (p-value). Find probability P(X>12.3), where...
Please Provide R code as well Use R to find probability (p-value). Find probability P(X>12.3), where X follows F-distribution with degree of freedom in numerator 4 and degree of freedom in numerator 10.
Use R programming to resolve this; can you please provide details on the code? A) Create...
Use R programming to resolve this; can you please provide details on the code? A) Create a dataframe – comparativeGenomeSize with the following vectors: > organism<-c("Human","Mouse","Fruit Fly", "Roundworm","Yeast") > genomeSizeBP<-c(3000000000,3000000000,135600000,97000000,12100000) > estGeneCount<-c(30000,30000,13061,19099,6034) B) Print the organism and estGeneCount for Human and fruitfly.(1) C) Add a column to this data frame calculating base pairs per gene. To do this, write a function “genedensity” that takes as arguments the genomesizeBP and estimatedGeneCount information, and calculates from this the estimated bp per gene....
Can someone show me the R code to accomplish this? In R, Construct scatter plots of...
Can someone show me the R code to accomplish this? In R, Construct scatter plots of y versus x, y versus ln(x), ln(y) versus ln(x) and 1/y versus 1/x. Include your R code in a separate file. The article “Reduction in Soluble Protein and Chlorophyll Contents in a Few Plants as Indicators of Automobile Exhaust Pollution” (Intl. J. of Environ. Studies, 1983: 239-244) reported the accompanying data on x distance from a highway (meters) and y lead content of soil...
can anyone explain the code from R below? spam is a dataset sample <- sample( c(TRUE,...
can anyone explain the code from R below? spam is a dataset sample <- sample( c(TRUE, FALSE), nrow(spam), replace=TRUE) train <- spam[sample,] test <- spam[!sample,] when i run train and test, we got two different datasets that are split from the original spam dataset. But i don't understand the first line of code. not sure why this line of code can split data into two sets.
anyone can explain why this code in R doesn't work? i also tried to use filter...
anyone can explain why this code in R doesn't work? i also tried to use filter function, no hope either! b <- subset(sub,NEIGHBORHOOD == "HARLEM-CENTRAL") the name of the variable is correct, the condition. is correct too.
For each problem, write an R code to compute each probability. (a)   Binomial Distribution: X ~...
For each problem, write an R code to compute each probability. (a)   Binomial Distribution: X ~ Bin(10, 0.7)     (i)            P(X = 2)     (ii)           P(X < 2)     (iii)          P(X > 2)     (iv)          P(1 < X < 7) (b) Normal Distribution: X ~ N(0, 4). Note that variance is 4 and, hence, the standard deviation is 2.     (i)             P(X < 3)     (ii)           P(X > 3)     (iii)          P(1 < X < 3) (c) Choose either (a) or (b) and interpret the results in...
(Use R Programming to Code) Use the Monte Carol simulation to estimate the probability that all...
(Use R Programming to Code) Use the Monte Carol simulation to estimate the probability that all six faces appear exactly once in six tosses of fair dice.
Using R Studio Use the two iid samples. (You can copy and paste the code into...
Using R Studio Use the two iid samples. (You can copy and paste the code into R). They both come from the same normal distribution. X = c(-0.06, 1.930, 0.608 -0.133,0.657, -1.284, 0.166, 0.963, 0.719, -0.896) Y = c(0.396, 0.687, 0.809, 0.939, -0.381, -0.042, -1.529, -0.543, 0.758, -2.574, -0.160, -0.713, 0.311, -0.515, -2.332, -0.844, -0.942, 0.053, 0.066, 0.942, -0.861, -0.186, -0.947, -0.110, 0.634, 2.357, 0.201, -0.428, -1.661, 0.395) (a) Report 95% confidence interval for the mean of X. Should we...
Explain in your own words what you are to code when the first listed diagnosis is...
Explain in your own words what you are to code when the first listed diagnosis is unconfirmed? Give an example coding scenario.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT