Você está na página 1de 1

Xbar=86000 #sample mean

> muo=80000 #hypothesised value


> n=14 #sample size
> s= 12000 #standrad deviation
t=(Xbar-muo)/(s/sqrt(14))
> t #test statistics
[1] 1.870829
# we than compute the critical value at 0.04 significance level.
alpha=0.04
t.alpha=qt(1-alpha,df=n-1)
t.alpha #critical value
#Thus 1.870829 comes under critical value of 1.898874.Thus we can conclude that the
average monthly salary of sales person is more than 80,000.
we compute the critical value at 0.02 significance level.
alpha= 0.02
> t.alpha=qt(1-alpha,df=n-1)
> t.alpha #Critical value
[1] 2.281604

# Thus we can coclude that at 0.02 significance level the claim can be correct.

Você também pode gostar