Вы находитесь на странице: 1из 6

Reg.

No: 18BCB0081
Name: PRATEEK SINHA

NAME : PRATEEK SINHA

REG.NO : 18BCB0081

SUBJECT CODE : MAT2001

SUBJECT TITLE : STATISTICS FOR ENGINEERS

LAB SLOT : L15+16

GUIDED BY : MANIMARAN.A
Reg. No: 18BCB0081
Name: PRATEEK SINHA

AIM:

Check whether the production of the day chosen is a representative sample at


95% of confidence level

KEY WORDS

Zta=qnorm(1-alpha)

zcal=(p-P)/sqrt(P*(1-P)/2)

R-CODE:

> print("HO := p=P")

[1] "HO := p=P"

> print("H1 := p!=P")

[1] "H1 := p!=P"

> 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)){

+ print("H0 is accepted and H1 is rejected")} else{


Reg. No: 18BCB0081
Name: PRATEEK SINHA

+ print("H1 is accepted and H0 is rejected")}

[1] "H1 is accepted and H0 is rejected"

AIM:

Check whether the given assumption is reasonably regarded or not at 99% of


confidence level

KEY WORDS:

ZCal=(x0-Mu)/(Sigma/sqrt(n))

R-CODE:

> print("H0:= x0=Mu")

[1] "H0:= x0=Mu"

> print("H1:= x0!=Mu")

[1] "H1:= x0!=Mu"

> 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))

+ 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 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

+ print("H1 is accepted and H0 is rejected")


[1] "H0 is accepted and H1 is rejected"

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.

Вам также может понравиться