当前位置:网站首页>机器学习4-降维技术
机器学习4-降维技术
2022-06-28 23:05:00 【只是甲】
一. 主成分分析
1.1 主成分分析概述

如果变量方差很小,也就是样本集中该变量的变化幅度不大,变量对结果的影响也不大。其实可以不考虑变量,从而达到了降维的目的。
剔除以后的其余变量如果贡献了整体方差的85%-90%及以上,剩余的变量就可以代表整体的样本集,从而达到降维的目的。
当然也可以使用x1+x2 或者 x1 - x2 这种组合变量。
1.2 主成分分析的直观几何意义

通过对原始变量进行线性组合,得到优化的指标
把原先多个指标的计算降维为少量几个经过优化指标的计算(占去绝大部分份额)
基本思想:
设法将原先众多具有一定相关性的指标,重新组合为一组新的互相独立的综合指标,并代替原先的指标。
1.3 例子
还是以之前身高体重的例子为例
代码:
x1=c(171,175,159,155,152,158,154,164,168,166,159,164)
x2=c(57,64,41,38,35,44,41,51,57,49,47,46)
plot(x1, x2, xlim = c(145,180), ylim = c(25,75))
lines(c(150,178), c(33,66)); text(180,68,"y1")
lines(c(161,168), c(60,38)); text(161, 63, "y2")

二. 因子分析
2.1 因子分析概述
因子分析:
主成分分析的推广和发展
其实就是把变量组合起来一起看
例如学习成绩,可以分为理科、文科、体育等
因子分析的主要用途:
- 减少分析变量的个数
- 通过对变量间相关关系的探测,将原始变量分组,即将相关性高的变量氛围一组,用共性因子来代替该变量
- 使问题背后的业务因素的意义更加清晰呈现
与主成分分析的区别:

2.2 应用
员工绩效考核指标设计:

边栏推荐
- How to solve the problem of desktop without sound
- 机器学习6-决策树
- 带链接跳转的微信红包封面制作教程和使用指南
- Leetcode detailed explanation of stack type
- [数学建模]Matlab非线性规划之fmincon()函数
- Explanation: Luogu p1762 even number /6.21 internal examination T2
- 非科班!自学之路!
- Basic knowledge diagram of K-line Diagram -- meaning of single K-line
- Mono 的执行流程
- 【深度学习】(3) Transformer 中的 Encoder 机制,附Pytorch完整代码
猜你喜欢

微搭低代码中实现二维码生成

生产环境sonarqube安装
Oracle set password complexity and timeout exit function
![[stm32 HAL库] 串口通信](/img/2c/23a2ecf75141b8f38ab99ac6b2eaef.png)
[stm32 HAL库] 串口通信

【Word 教程系列第 1 篇】如何去除 Word 表格中的箭头
![Leetcode 324 Swing sort II [tri double pointeur] le chemin du leetcode pour l'héroding](/img/41/b8ba8d771b7224eac1cc8c54fe9d29.png)
Leetcode 324 Swing sort II [tri double pointeur] le chemin du leetcode pour l'héroding

DBNN实验进展

YuMinHong set up two funds funded by his hometown

一文读懂,WMS仓储管理系统与ERP有什么区别

第五章 虚拟存储器 练习
随机推荐
With a monthly salary of 60000 yuan, such people began to be robbed after the Internet "reduced costs and increased efficiency"
FANUC机器人_KAREL编程入门(2)_通用IO信号的使用方法
Understand shell script in one article
Basic knowledge diagram of K-line Diagram -- meaning of single K-line
Production environment sonarqube installation
The picture display on the left of the two column layout is determined by the content height on the right
如何使用伦敦金画出支撑阻力线
2022-06-28: what does the following golang code output? A:true; B:false; C:panic; D: Compilation failed. package main import “fm
LINQ linked table query
第四章 存储器管理练习
Detailed steps for MySQL to recover data through IBD files
深入虚拟内存(Virtual Memory,VM)
Tanghongbin, Yaya live CTO: to truly localize, the product should not have the attribute of "origin"
强大的开源API接口可视化管理平台-YApi
设计电商秒杀系统
[kotlin] beautiful pop-up box, custom pop-up box (dialog box), extension function, chrysanthemum waiting bar, message prompt box
Differences among CPU, GPU, TPU and NPU
Small sample sharp weapon 2 Text confrontation + semi supervised FGSM & VAT & FGM code implementation
浅析搭建校园在线教学视频汇聚平台的必要性及解决方案
微搭低代码中实现二维码生成