Você está na página 1de 5

Kshitij Deshpande

002221396

ASSIGNMENT 3

Question1
Solution- p=0.2
a)
Expected number of trials to obtain the first success
Ex=1/p
1/0.2
Ans 5
b)
Due to the lack of memory property, getting the next success after nth
success
will remain same
Ex1=1/p
1/0.2
Ans 5
Question2
Solution
a)
Probability that 4 or more people will have to be tested before 2 with the
gene are detected
P(X>=4)=1-P(X<=3) i.e. 2,3 excluding 1 since we are selecting 2 people
P(X>=4)=1-[P(X=2)+P(X=3)]
dnbimon(x-r,r,p)
1-sum(dnbinom(0:1,2,.1))
Ans 0.972
b)
people are expected to be tested before 2 with the gene are detected:
EX=r/p, where r is 2
r=2
p=0.1
Ex=r/p
Ans 20
Question3
Solution
a)
Probability that all eight computers fail in a day
P<-0.005
r<-8
p1<-p**r
p1<-3.90625e-19

b)
mean number of days until a specific computer fails is EX=1/p
Ex=1/p
200 days

Kshitij Deshpande
002221396
c)
mean number of days until all eight computers fail in the same day
Ex1=1/p1 since p1 is the probability of all eight computers fail in the same
day
2.56e+18

Question 4
Solution
a)
mean number of fills before the line is stopped
Follows the negative binomial distribution
P=0.001
r<=3
Ex<-r/P
3000
b)
standard deviation of the number of fills before the line is stopped

Variance
Variance<-r*(1-P)/(P*P)
Standard Deviation is the sqrt of variance
Sd<-sqrt(Variance)

1731.185

Question 5
Solution
P is 0.3 since 30% has the marker
a)
probability that exactly 1 man has the marker is
N=800, K=240 N-k=560
n=10 are selected from the sample, the prob that exactly one has marker
is P(X=1)
dhyper(1,240,560,10)
0.1200794

b)
probability that more than 1 has the marker is
P(X>1)=1-[P(X=0)+P(X=1)]
1-(dhyper(0,240,560,10)+dhyper(1,240,560,10))
0.8523523

Question 6
Solution
Porbability of a bad washer is 5/75
n=10 10 washers has been selected
N=75, K=70, N-K=5
a)

Kshitij Deshpande
002221396
None of the bad washer in the sample
dhyper(0,5,70,10)
0.4785736

b)
At least one unacceptable washer in the sample
1-(dhyper(0,5,70,10))
0.5214262
c)
exactly one unacceptable washer P(X=1)
dhyper(1,5,70,10)
0.3922734

d)
Mean number of unacceptable washers in the sample
Mean is sample size(10)* probability(5/75)
Ex=10*(5/75)
2/3
Question 7
Solution
a)
probability that there are exactly 5 calls in one hour is
Lambda*T is 10, i.e. 10 calls per hour, P(X=5)
dpois(5,10)
0.03783327

b)
probability that there are 3 or less calls in one hour is
p(X<=3)
ppois(3,10)
0.01033605

c)
probability that there are exactly 15 calls in two hours is
Lambda*T=10*2=20
dpois(15,20)
0.05164885

d)
probability that there are exactly 5 calls in 30 minutes is
Lambda*T=10*1/2=5,P(X=5)
dpois(5,5)
0.1754674

Kshitij Deshpande
002221396

Question 8
Solution
Lambda*T=.05*10=.5 where t is square root, P(X=0)
a)
probability that there are no surface flaws in an autos interior is
dpois(0,.5)
p<-0.6065307

b)
probability that none of the 10 cars has any surface flaws is
P(X=0), Lambda*T=.5*10=5
dpois(0,5)
0.006737947

c)
Probability that at most one carof the 10 cars has flaw,
P(X=0)+P(X=1)
dbinom(0,10,1-p)+dbinom(1,10,1-p)
0.05044844

Question 9
Solution
Lambda*T=.01*100=1 where t is the number of pages P(X<=3)
probability that there are three or less errors in 100 pages is
ppois(3,1)
0.9810118

Question 10
Solution
a)
This is Binomial Distribution since x is random variable
that is equal to the number of correct responses in the test.
b)
The expected score is
Expected value is np, n is 50 , and p is 1/5
n=50
p=1/5
Ex=n*p
10

Kshitij Deshpande
002221396
c)
The Variance is
var=(n)*(p)*(1-p)
=8

Você também pode gostar