Please solve using R studio Problem 1 Consider a binomial ra

Please solve using R studio

Problem 1 Consider a binomial random variable XBinom(100,0.01). 1. Report P(X 7), P(X 8), P(X 9), try to use only ONE R command to 2. Use two different ways (all illustrated in lecture) to find the probability P(10 3. n-100, p 0.01 and hence E(X)-np-1. When n is large and p is small, return all these three values. X

Solution

The required R studio code is given as:

#1
dbinom(c(7,8,9),100,0.01)
#2
#First Way
sum(dbinom(10:29,100,0.01))
#Second way
pbinom(29,100,0.01)-pbinom(9,100,0.01)
#3
x=dbinom(0:10,100,0.01)
y=dpois(0:10,1)
matplot(cbind(x,y),type=\'o\',pch=20)


Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site