summaryrefslogtreecommitdiff
path: root/260/CH6/EX6.14/6_14.sce
blob: 1af8f9ff7464054bcf14f06f2a3a6354d7ab34a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//Eg-6.14
//pg-304           

clear
clc

//mean and standard deviation are given as
x=1.011;
s=.108;

n=500;
a=1;

d=(x-a)/(s/n^.5);
if d<=1.96 & d>=-1.96 then
    disp("null hypothesis :Ho:u=1mm is accepted")
else
    disp("the value of d lies outside range.Therefore we will reject HO at 0.05 level of significance")
end