251crazy 1/18/08
Crazy Idea for the week.
The following routine will give you the solution to every version of the mean and variance section of the first part of Grass1.
Just open up Minitab. Hit the ‘editor’ pull-down menu and check ‘enable commands’
When the Minitab prompt comes up, paste everything below here onto the command sheet after the prompt. (MTB > ). Hit enter.Now, can you write your results convincingly enough to make me think that you actually did the problem?
Erase c1-c10
read c1
2.3
7.9
11.5
2.1
9.1
5.8
2.7
12.0
0.6
-8.7
4.1
-0.6
-0.4
end
read c2
8.8
2.9
2.5
6.5
3.4
-3.6
3.4
-1.5
11.5
16.1
4.6
1.4
4.4
end
read c3
12.1
3.6
1.8
9.9
9.8
6.8
3.9
9.9
8.2
14.1
6.8
13.9
6.7
end
read c4
5.7
5.7
2.8
2.9
1.2
6.8
0.3
9.6
3.8
0.7
9.3
9.4
6.1
end
read c5
16.0
3.5
-1.7
6.8
8.9
4.1
-2.9
15.5
1.9
-0.9
3.0
2.8
4.1
end
read c6
11.4
-4.6
4.7
-2.7
-3.6
-0.5
-1.2
-2.6
13.4
0.5
3.2
9.1
0.8
end
read c7
3.3
3.5
12.2
-1.6
7.1
4.1
0.1
7.1
-1.5
1.0
6.2
1.7
-2.3
end
read c8
-2.5
1.6
2.7
-0.8
-0.3
3.0
0.3
10.6
4.9
3.3
14.8
17.4
9.5
end
read c9
6.7
1.7
2.0
10.5
4.6
11.3
6.7
4.1
5.2
3.7
9.9
4.9
9.7
end
read c10
3.0
5.3
1.1
6.0
8.9
7.4
1.2
0.6
4.2
7.1
5.0
-2.5
8.8
end
name c1 'x0'
name c2 'x1'
name c3 'x2'
name c4 'x3'
name c5 'x4'
name c6 'x5'
name c7 'x6'
name c8 'x7'
name c9 'x8'
name c10 'x9'
erase c11-c31
erase k1-k31
describe c1-c10
name c11 'x0o'
name c12 'x1o'
name c13 'x2o'
name c14 'x3o'
name c15 'x4o'
name c16 'x5o'
name c17 'x6o'
name c18 'x7o'
name c19 'x8o'
name c20 'x9o'
name c21 'x0sq'
name c22 'x1sq'
name c23 'x2sq'
name c24 'x3sq'
name c25 'x4sq'
name c26 'x5sq'
name c27 'x6sq'
name c28 'x7sq'
name c29 'x8sq'
name c30 'x9sq'
name k1 'sumx0'
name k2 'sumx1'
name k3 'sumx2'
name k4 'sumx3'
name k5 'sumx4'
name k6 'sumx5'
name k7 'sumx6'
name k8 'sumx7'
name k9 'sumx8'
name k10 'sumx9'
name k21 'sumx0sq'
name k22 'sumx1sq'
name k23 'sumx2sq'
name k24 'sumx3sq'
name k25 'sumx4sq'
name k26 'sumx5sq'
name k27 'sumx6sq'
name k28 'sumx7sq'
name k29 'sumx8sq'
name k30 'sumx9sq'
let c21 = c1 * c1
let c22 = c2 * c2
let c23 = c3 * c3
let c24 = c4 * c4
let c25 = c5 * c5
let c26 = c6 * c6
let c27 = c7 * c7
let c28 = c8 * c8
let c29 = c9 * c9
let c30 = c10 * c10
let k21 = sum(c21)
let k22 = sum(c22)
let k23 = sum(c23)
let k24 = sum(c24)
let k25 = sum(c25)
let k26 = sum(c26)
let k27 = sum(c27)
let k28 = sum(c28)
let k29 = sum(c29)
let k30 = sum(c30)
sort c1 c11
sort c2 c12
sort c3 c13
sort c4 c14
sort c5 c15
sort c6 c16
sort c7 c17
sort c8 c18
sort c9 c19
sort c10 c20
name k11 'varx0'
name k12 'varx1'
name k13 'varx2'
name k14 'varx3'
name k15 'varx4'
name k16 'varx5'
name k17 'varx6'
name k18 'varx7'
name k19 'varx8'
name k20 'varx9'
let k1 = sum(x0)
let k2 = sum(x1)
let k3 = sum(x2)
let k4 = sum(x3)
let k5 = sum(x4)
let k6 = sum(x5)
let k7 = sum(x6)
let k8 = sum(x7)
let k9 = sum(x8)
let k10 = sum(x9)
print c1-c10
print k1-k10
MTB > name k31 'n'
MTB > let k31 = count(c1)
print k31
name k1 'meanx0'
name k2 'meanx1'
name k3 'meanx2'
name k4 'meanx3'
name k5 'meanx4'
name k6 'meanx5'
name k7 'meanx6'
name k8 'meanx7'
name k9 'meanx8'
name k10 'meanx9'
let k1 = k1/k31
let k2 = k2/k31
let k3 = k3/k31
let k4 = k4/k31
let k5 = k5/k31
let k6 = k6/k31
let k7 = k7/k31
let k8 = k8/k31
let k9 = k9/k31
let k10 = k10/k31
print k1-k10
let k11 = k21-k31*k1*k1
let k11 = k11/(k31-1)
let k12 = k22-k31*k2*k2
let k12 = k12/(k31-1)
let k13 = k23-k31*k3*k3
let k13 = k13/(k31-1)
let k14 = k24-k31*k4*k4
let k14 = k14/(k31-1)
let k15 = k25-k31*k5*k5
let k15 = k15/(k31-1)
let k16 = k26-k31*k6*k6
let k16 = k16/(k31-1)
let k17 = k27-k31*k7*k7
let k17 = k17/(k31-1)
let k18 = k28-k31*k8*k8
let k18 = k18/(k31-1)
let k19 = k29-k31*k9*k9
let k19 = k19/(k31-1)
let k20 = k30-k31*k10*k10
let k20 = k20/(k31-1)
print k11-k20
name k11 'stdvx0'
let k11 = sqrt(k11)
name k12 'stdvx1'
let k12 = sqrt(k12)
name k13 'stdvx2'
let k13 = sqrt(k13)
name k14 'stdvx3'
let k14 = sqrt(k14)
name k15 'stdvx4'
let k15 = sqrt(k15)
name k16 'stdvx5'
let k16 = sqrt(k16)
name k17 'stdvx6'
let k17 = sqrt(k17)
name k18 'stdvx7'
let k18 = sqrt(k18)
name k19 'stdvx8'
let k19 = sqrt(k19)
name k20 'stdvx9'
let k20 = sqrt(k20)
print c21-c30
print k21-k30
print k1-k10
print k11-k20
print c11-c20