You are on page 1of 6

21MID0105 S.

MUNIRULLAH

NAME: S.MUNIRULLAH
REG.NO: 21MID0105
COURSE: STATISTICS FOR ENGINEERS
COURSE CODE: MAT2001
PROGRAMME: INTEGRATED MTECH CSE DATASCIENCE

DIGITAL ASSIGNMENT- VI
21MID0105 S.MUNIRULLAH

xbar=39350

> mu0=40000

> sigma=3260

> n=100

> z=(xbar-mu0)/(sigma/sqrt(n))

>z

[1] -1.993865

> alpha=0.05

> z.alpha=qnorm(1-alpha)

> -z.alpha

[1] -1.644854
21MID0105 S.MUNIRULLAH

xbar=5.1

> mu0=4.9

> sigma=1.2

> n=49

> z=(xbar-mu0)/(sigma/sqrt(n))

>z

[1] 1.166667

> alpha=0.01

> z.alpha=qnorm(1-alpha)

> -z.alpha

[1] -2.326348
21MID0105 S.MUNIRULLAH

y1<-rnorm(8,mean=1234,sd=36)

> y2<-rnorm(7,mean=1036,sd=40)

> t.test(y1,y2)

Welch Two Sample t-test

data: y1 and y2

t = 6.6533, df = 8.7754, p-value = 0.000105

alternative hypothesis: true difference in means is not equal

to 095 percent confidence interval:

130.4977 265.7539

sample estimates:

mean of x mean

of y1232.008

1033.882
21MID0105 S.MUNIRULLAH

s1=c(9,11,13,11,15,9,12,14)

> s2=c(10,12,10,14,9,8,10)

> var.test(s1,s2)

F test to compare two variances

data: s1 and s2

F = 1.2108, num df = 7, denom df = 6, p-value = 0.8315

alternative hypothesis: true ratio of variances is not equal

to 195 percent confidence interval:

0.2125976 6.1978188

sample

estimates:ratio

of variances

1.210843
21MID0105 S.MUNIRULLAH

You might also like