You are on page 1of 7

PREET JAIN

PRACTICAL 6
86032200036
Q.1
INPUT:
##Ho: MU=3.25
##H1: MU=/=3.25
x=3.4
mu=3.25
s=2.61
n=900
z=(x-mu)/(s/sqrt(n))
z
##Decision Rule
##Reject Ho if |z| > 1.967, Otherwise Acceept Ho
l1=x+1.96*(s/sqrt(n))
l1
u1=x-1.96*(s/sqrt(n))
u1

OUTPUT:
>z
[1] 1.724138
> l1
[1] 3.57052
> u1
[1] 3.22948

DECISION:
Ho is accepted at 5% level of significance.
Q.2
INPUT:

##Q2
##Ho: mu1=mu2
##H1: mu1=/=mu2
n1=1000
n2=2000
s=2.5
x1=67.5
x2=68
z=(x1-x2)/(s*sqrt((1/n1)+(1/n2)))
z

OUTPUT:
>z
[1] -5.163978

DECISION:
Reject Ho if |z| > 1.967, Otherwise Accept Ho
5.16 > 1.96
Hence Ho is rejected

CONCLUSION:
We conclude that, they are not from the same population.
Q3
INPUT:
##Q3
##Ho: x1=x2
##H1: x1/=x2
n1=400
n2=400
s1=40
s2=55
x1=250
x2=220
z=(x1-x2)/sqrt((s1^2/n1)+(s2^2/n2))
z

OUTPUT:
>z
[1] 8.822575

DECISION:
Reject Ho if |z| > 1.967, Otherwise Accept Ho
Ho is rejected

CONCLUSION:
Is not equal, it differs significantly.
Q.4
INPUT:

##Q4
##Ho: mu1=mu2
##H1: mu1/=mu2
n1=250
x1=120
s1=12
n2=400
x2=124
s2=14
E=sqrt((s1^2/n1)+(s2^2/n2))
E

z=(x1-x2)/E
z

OUTPUT:
>E
[1] 1.032473
>z
[1] -3.874194

DECISION:
Reject Ho if |z| > 1.967, Otherwise Accept Ho
Ho is rejected

CONCLUSION:
There is significant difference in the average weight of the items
produced by the two processors.
Q.5
INPUT:

##Q5
##Ho: Rice and wheat are equally popular (P=0.54)
##H1: Rice and wheat are not equally popular (P/=0.5)
n=1000
x=540
p=0.54
Q=0.5
P=0.5
z=(p-P)/sqrt((P*Q)/n)
z

OUTPUT:
>z
[1] 2.529822

DECISION:
|z| < 2.58
Ho is accepted

CONCLUSION:
We can say that, rice and wheat eaters are equally popular in
Maharashtra
Q.6
INPUT:
##Q6
##Ho: P=0.85
##H1: P>0.85
n=20
x=18
p=0.9
P=0.85
Q=0.15
z=(p-P)/sqrt((P*Q)/n)
z

OUTPUT:
>z
[1] 0.6262243

DECISION:
Ztable < Zcal
Hence Accept Ho

CONCLUSION:
It is not in favour.
Q.7
INPUT:
##Q7
##Ho: P1=P2
##H1: P/=P2
n1=500
n2=400
p1=0.62
p2=0.59
P=((n1*p1)+(n2*p2))/(n1+n2)
Q=1-P
Q
z=(p1-p2)/sqrt((P*Q)*((1/n1)+(1/n2)))
z

OUTPUT:
>P
[1] 0.6066667
> Q=1-P
>Q
[1] 0.3933333
>z
[1] 0.9155025

DECISION:
Ho is accepted

CONCLUSION:
There is no significant between two groups and their attitude.

You might also like