Python3Numpy——相关性协方差应用
基本理论 Correlation Are there correlations between variables? Correlation measures the strength of the linear association between two numerical variables. For example, you could imagine that for children, age correlates with height: the older the child, the taller he or she is. You could reasonably expect to get a straight line or upward curve with a positive slope when you plot age against height. 定义 生物是一个有机的整体,其各个组成部分都是相关联的,我们可以通过研究一个生物的牙齿、爪子或者骨骼来复原这个生物。 协方差: 定义: 对于离散型随机变量: 对于连续性随机变量: 协方差化简: 当X与Y独立时, 有Cov(X, Y) = 0 协方差基本性质: 随机变量和的方差与协方差的关系: D(X +/- Y) = D(X) + D(Y) +/- 2Cov(X, Y) 协方差的有界性 相关系数: