R scale数据标准化 为什么有负值
时间: 2023-06-20 09:07:25 浏览: 239
在进行数据标准化时,我们通常使用以下公式:
z = (x - mean) / std
其中,z是标准化后的值,x是原始数据,mean是原始数据的平均值,std是原始数据的标准差。
由于原始数据可能有正负值,而平均值可能为正数或负数,因此标准化后得到的值也可能为正数或负数。
例如,如果原始数据的平均值为10,标准差为5,那么原始数据中小于10的值会标准化为负数,大于10的值会标准化为正数。因此,在标准化后的数据中,会存在负数的情况。
相关推荐
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)