• Mathematics
    VectorsMatricesVector SpaceAlgebraCalculusLogicAnalytic GeometryStatistics & ProbabilityGeometrySpecial Functions
    Physics
    MechanicsUnits & Constants
    Electronics
    Circuits
    Computer Science
    EncodingComputerLanguages
    Machine Learning
    ClusteringOptimizationRegressionKernels
    AI
    Neural Network
    Finance
    OptionsFixed IncomeMarket Analysis
    Help
    Contact usIndexSearchVersion history
    Practice Quiz
    LoginUser
  • Mathematics
    Statistics & Probability: Covariance Matrix
    • Vectors
      • Matrices
        • Vector Space
          • Algebra
            • Calculus
              • Logic
                • Analytic Geometry
                  • Statistics & Probability
                    • Statistics
                    • Regression
                    • Normal Distribution
                    • Q-Q Plot
                    • Softmax & LogSumExp
                    • Covariance Matrix
                  • Geometry
                    • Special Functions

                      Covariance Matrix

                      Given the data set of n vectors xi = (xi,1, xi,2, ... , xi,m) ∈ ℝm, where i = 1,...,n, we can represent them by a n×m matrix X, such that each of the
                      vectors xi, from the data set, is the i-th row of the matrix X. Given such data set (matrix) X, we can calculate the m×m covariance matrix KXX
                      whose (i, j) element is       KXiXj = cov[Xi, Xj] = E[ (Xi - E[Xi]) ⋅ (Xj - E[Xj]) ]
                      where Xi and Xj are the i-th and j-th columns of matrix X (dimension of the row vector x), and E is the expected value (mean).

                      Please Note:
                      • Covariance is, by default, calculated as unbiased (sample), however, you can also choose a biased (population) version of calulation of KXX.

                      Dimension of the matrix : × Data Bias:
                      X =
                      KXX =  
                      Save File as :



                          
                      Delimiter:






                      Please, don't include any directory or path in the file name.
                      The file location is determined by the browser.