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.

A First Course in Probability (10th Edition)
10th Edition
ISBN:9780134753119
Author:Sheldon Ross
Publisher:Sheldon Ross
Chapter1: Combinatorial Analysis
Section: Chapter Questions
Problem 1.1P: a. How many different 7-place license plates are possible if the first 2 places are for letters and...
icon
Related questions
Question


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.

Expert Solution
Step 1

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)

 

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
A First Course in Probability (10th Edition)
A First Course in Probability (10th Edition)
Probability
ISBN:
9780134753119
Author:
Sheldon Ross
Publisher:
PEARSON
A First Course in Probability
A First Course in Probability
Probability
ISBN:
9780321794772
Author:
Sheldon Ross
Publisher:
PEARSON