6.1方差分析方差分析k211k210:H:H FF因素水平内方差因素水平间方差F水平 抽样结果平均A1A2A3Akx11 x12 x13 x1rx21 x22 x23 x2rx31 x32 x33 x3rxk1 xk2 xk3 xkr2xk3210:H rx1x3xk211k210:H:H rxxr1iijjkxrkxxjij1.做出原假设和备择假设2.2.计算每一种因素水平下的样本均值计算每一种因素水平下的样本均值3.计算总均值计算总均值SSESSRSSTSSESSTSSR)4(xxSSR)3(xxSSE2nxxxxSST12j2jjij222ij)()(方差类型方差类型离差平方和离差平方和SS自由度自由度df均方误差均方误差MSF值值因素水平间方差SSRk-1SSR/(k-1)=MSRMSR/MSE因素水平内方差SSEn-kSSE/(n-k)=MSE总方差SSTn-1)kn(,1k(F)kn/(SSE)1k/(SSR)1r(k,1k(F不能拒绝原假设),kn(,1k(FF拒绝原假设),kn(,1k(FF