Professional Documents
Culture Documents
No: 18BCB0081
Name: PRATEEK SINHA
REG.NO : 18BCB0081
GUIDED BY : MANIMARAN.A
Reg. No: 18BCB0081
Name: PRATEEK SINHA
AIM:
KEY WORDS
Zta=qnorm(1-alpha)
zcal=(p-P)/sqrt(P*(1-P)/2)
R-CODE:
> alpha=0.05
> zta=qnorm(1-alpha)
> zta
[1] 1.644854
> n=400
> P=20/100
> p=50/100
> zcal=(p-P)/sqrt(P*(1-P)/n)
> zcal
[1] 15
if(abs(zcal)<abs(zta)){
AIM:
KEY WORDS:
ZCal=(x0-Mu)/(Sigma/sqrt(n))
R-CODE:
> alpha=0.01
> ZTab=qnorm(1-alpha)
> ZTab
[1] 2.326348
> Mu=3.23
> Sigma=2.31
> n=900
> x0=3.47
> ZCal=(x0-Mu)/(Sigma/sqrt(n))
> ZCal
[1] 3.116883
Reg. No: 18BCB0081
Name: PRATEEK SINHA
> if(abs(ZCal)<abs(ZTab))
+ else
AIM:
To check if there is a significant decrease of the consumers of tea from the initial
in accordance to 1% level of significance.
KEY WORDS:
P=((n1*p1)+(n2*p2))/(n1+n2)
ZCal=(p1-p2)/sqrt(P*(1-P)*((1/n1)+(1/n2)))
R-CODE:
> print("H0 := p1=p2")
[1] "H0 := p1=p2"
> print("H1 := p1!=p2")
[1] "H1 := p1!=p2"
> alpha=0.01
> ZTab=qnorm(1-alpha)
> ZTab
[1] 2.326348
> n1=1000
> n2=1200
> p1=800/1000
> p2=800/1200
> P=((n1*p1)+(n2*p2))/(n1+n2)
> ZCal=(p1-p2)/sqrt(P*(1-P)*((1/n1)+(1/n2)))
> ZCal
Reg. No: 18BCB0081
Name: PRATEEK SINHA
[1] 6.992059
> if(abs(ZCal)<abs(ZTab))
+ print("H0 is accepted and H1 is rejected")
+ else
+ print("H1 is accepted and H0 is rejected")
[1] "H1 is accepted and H0 is rejected"
AIM:
To check if boys are performing better than girls on the basis of marks at 5% level
of significance
KEY WORDS:
ZCal=(x1-x2)/sqrt(((s1^2)/n1)+((s2^2)/n2))
R CODE:
> print("H0 := x1=x2")
[1] "H0 := x1=x2"
> print("H1 := x1!=x2")
[1] "H1 := x1!=x2"
> alpha=0.05
> ZTab=qnorm(1-alpha)
> ZTab
[1] 1.644854
> n1=32
> n2=36
> x1=72
> x2=70
> s1=9
> s2=6
> ZCal=(x1-x2)/sqrt(((s1^2)/n1)+((s2^2)/n2))
> ZCal
[1] 1.064304
> if(abs(ZCal)<abs(ZTab))
+ print("H0 is accepted and H1 is rejected")
+ else
Reg. No: 18BCB0081
Name: PRATEEK SINHA
Conclusion:
1) No, the production of the day chosen is not representative sample as
ZCal>Zta.
2) No, the assumption is not reasonably regarded as ZCal>ZTab.
3) No, there is no significant decrease as ZCal>ZTab.
4) Yes, the boys are performing better than girls as ZCal<ZTab.