Need help with R. Should use R's ready-made distribution functions d/p/q/r -binom and -norm. (a) The random variable X follows the binomial distribution with parameters n = 60 and p = 13 . Calculate P(X ≤ 10),P(X > 30) and P(X = 19∪X = 20∪X = 21), and store the results in variables a1, a2 and a3. (b) Continuation of previous paragraph. Store in the variable a4 a number for which P(X ≤ a4) = 0.034 applies. (c) The random variable Y follows a normal distribution with parameters μ = 1 and σ = 2. Calculate P(Y ≤ 0), P(Y > 2) and P(Y = 1), and store the results in the variables b1, b2 and b3.
Need help with R. Should use R's ready-made distribution
(a) The random variable X follows the binomial distribution with parameters n = 60 and p = 13 . Calculate P(X ≤ 10),P(X > 30) and P(X = 19∪X = 20∪X = 21), and store the results in variables a1, a2 and a3.
(b) Continuation of previous paragraph. Store in the variable a4 a number for which P(X ≤ a4) = 0.034 applies.
(c) The random variable Y follows a
a)The random variable X follows the binomial distribution with parameters n = 60 and p = 13 . Calculate P(X ≤ 10),P(X > 30) and P(X = 19∪X = 20∪X = 21), and store the results in variables a1, a2 and a3.
Note-Given p=13 which is not possible, so here I take p=1/3
R-CODE
P(X ≤ 10)
a1<-pbinom(10,60,1/3)
P(X > 30)=1-P(X <=30)
a2<-1-pbinom(30,60,1/3)
P(X = 19∪X = 20∪X = 21)=P(X=19)+P(X=20)+P(X=21)
a3<-dbinom(19, 60, 1/3)+dbinom(20, 60, 1/3)+dbinom(21, 60, 1/3)
Step by step
Solved in 2 steps