Variance-Covariance Matrix
2016-05-02 22:04
288 查看
This lesson explains how to use matrix methods to generate a variance-covariance matrix from a matrix of raw data.
Variance is a measure of the variability or spread in a set of data. Mathematically, it is the average squared deviation from the mean score. We use the following formula to compute variance.
Var(X) = Σ ( Xi - X )2 / N = Σ xi2 / N
where
N is the number of scores in a set of scores
X is the mean of the N scores.
Xi is the ith raw score in the set of scores
xi is the ith deviation score in the set of scores
Var(X) is the variance of all the scores in the set
Covariance is a measure of the extent to which corresponding elements from two sets of ordered data move in the same direction. We use the following formula to compute covariance.
Cov(X, Y) = Σ ( Xi - X ) ( Yi - Y ) / N = Σ xiyi / N
where
N is the number of scores in each set of data
X is the mean of the N scores in the first data
set
Xi is the ithe raw score in the first set of scores
xi is the ith deviation score in the first set of scores
Y is the mean of the N scores in the second data
set
Yi is the ithe raw score in the second set of scores
yi is the ith deviation score in the second set of scores
Cov(X, Y) is the covariance of corresponding scores in the two sets of data
Variance and covariance are often displayed together in a variance-covariance matrix, (aka, a covariance matrix). The variances
appear along the diagonal and covariances appear in the off-diagonal elements, as shown below.
where
V is a c x c variance-covariance matrix
N is the number of scores in each of the c data sets
xi is a deviation score from the ith data set
Σ xi2 / N is the variance of elements from the ith data set
Σ xi xj / N is the covariance for elements from the ith and jth data sets
Variance
Variance is a measure of the variability or spread in a set of data. Mathematically, it is the average squared deviation from the mean score. We use the following formula to compute variance.Var(X) = Σ ( Xi - X )2 / N = Σ xi2 / N
where
N is the number of scores in a set of scores
X is the mean of the N scores.
Xi is the ith raw score in the set of scores
xi is the ith deviation score in the set of scores
Var(X) is the variance of all the scores in the set
Covariance
Covariance is a measure of the extent to which corresponding elements from two sets of ordered data move in the same direction. We use the following formula to compute covariance.Cov(X, Y) = Σ ( Xi - X ) ( Yi - Y ) / N = Σ xiyi / N
where
N is the number of scores in each set of data
X is the mean of the N scores in the first data
set
Xi is the ithe raw score in the first set of scores
xi is the ith deviation score in the first set of scores
Y is the mean of the N scores in the second data
set
Yi is the ithe raw score in the second set of scores
yi is the ith deviation score in the second set of scores
Cov(X, Y) is the covariance of corresponding scores in the two sets of data
Variance-Covariance Matrix
Variance and covariance are often displayed together in a variance-covariance matrix, (aka, a covariance matrix). The variancesappear along the diagonal and covariances appear in the off-diagonal elements, as shown below.
V = |
|
V is a c x c variance-covariance matrix
N is the number of scores in each of the c data sets
xi is a deviation score from the ith data set
Σ xi2 / N is the variance of elements from the ith data set
Σ xi xj / N is the covariance for elements from the ith and jth data sets
相关文章推荐
- 计算机网络笔记之第一章概述
- 【Unity】11.6 恒定力 (Constant Force)
- HTML网页之学生成绩绩点计算代码
- 工作路径的切换
- Hiho+Trie数求字符串前缀的典型模板
- 六、树和二叉树--(1)什么是二叉树
- 第一次盲打,感觉好难啊,~~~~(>_<)~~~~
- linux下解压命令大全
- ./configure,make,make install的作用
- 剑指offer:孩子们的游戏(圆圈中最后剩下的数)
- 计算机科学只存在两个难题:缓存失效和命名
- 20145110 《Java程序设计》第四次实验报告
- Java中获取路径的方法_自我分析
- POJ 1751 Highways
- 【Unity】11.5 物理材质 (Physics Material)
- Immutable 在 JavaScript 中的应用
- Mybatis获取插入记录的自增长ID
- 解决Android Studio倒入项目或者打开项目卡死
- 在Linux中安装dnw
- 【Unity】11.4 车轮碰撞体(Wheel Collider)