求鸢尾花数据均值协方差
时间: 2023-12-04 17:37:24 浏览: 78
鸢尾花数据集包含四个特征:花萼长度、花萼宽度、花瓣长度和花瓣宽度,共有三种不同的鸢尾花品种。这里给出每个品种的四个特征的均值和协方差矩阵:
- 均值:
- Iris Setosa: [5.006, 3.418, 1.464, 0.244]
- Iris Versicolor: [5.936, 2.77, 4.26, 1.326]
- Iris Virginica: [6.588, 2.974, 5.552, 2.026]
- 协方差矩阵:
- Iris Setosa:
```
[[0.12424898, -0.0450998 , 0.02950408, 0.01088571],
[-0.0450998 , 0.10961633, -0.011672 , -0.00983796],
[0.02950408, -0.011672 , 0.03295671, 0.01138082],
[0.01088571, -0.00983796, 0.01138082, 0.011436]]
```
- Iris Versicolor:
```
[[0.26643265, -0.08518367, 0.18289796, 0.05577959],
[-0.08518367, 0.09846939, -0.04022245, -0.04231327],
[0.18289796, -0.04022245, 0.22081633, 0.07310204],
[0.05577959, -0.04231327, 0.07310204, 0.03910612]]
```
- Iris Virginica:
```
[[0.40434286, -0.10937755, 0.3032898 , 0.04909388],
[-0.10937755, 0.10400408, -0.07138082, -0.04618367],
[0.3032898 , -0.07138082, 0.30458776, 0.04882449],
[0.04909388, -0.04618367, 0.04882449, 0.07543265]]
```
阅读全文