EXCEL里面如何用函数求协方差? Option ExplicitOption Base 1Private Sub CommandButton1_Click()Dim i%,j%,k%,p(6),s(6,6)For i=1 To 6p(i)=Sheet1.Cells(1070,i)Next iFor i=1 To 6For j=1 To 6s(i,j)=0For k=1 To 1070s(i,j)=s(i,j)+(Sheet1.Cells(k,i)-p(i))*(Sheet1.Cells(k,j)-p(j))Next ks(i,j)=s(i,j)/1069Sheets(\"Sheet2\").Cells(i,j)=s(i,j)If i<;>;j Then Sheets(\"Sheet2\").Cells(j,i)=s(i,j)Next jNext iEnd Sub
协方差函数和方差函数在EXCEL中怎么显示?
如何用Excel计算协方差矩阵,用Excel表格计算一些我们口头很难算出的数据是我们经常做的事情,那么今天教大家如何用WPSExcel表格计算协方差矩阵,一起来看看吧!