当前位置:网站首页>机器学习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 应用
员工绩效考核指标设计:

边栏推荐
- Cs5463 code module analysis (including download link)
- Qsrand, srand random number generating function in qt5.15 has been discarded
- Implementation of go language plug-in platform
- Web API learning notes 1
- 在QT进行cin(全网最清晰教程)
- 深入虚拟内存(Virtual Memory,VM)
- 2022 PMP project management examination agile knowledge points (4)
- CS5463代码模块解析(包含下载链接)
- 第四章 存储器管理练习
- Is it safe to open a stock account by mobile phone?
猜你喜欢

WMS仓库管理系统模块之波次拣货

How to solve the problem of desktop without sound

CS5463代码模块解析(包含下载链接)

Leetcode detailed explanation of stack type

On the necessity and solution of building a campus online teaching video convergence platform

Tanghongbin, Yaya live CTO: to truly localize, the product should not have the attribute of "origin"

k线图基础知识图解——单根K线的含义

浅析搭建校园在线教学视频汇聚平台的必要性及解决方案

【深度学习】(2) Transformer 网络解析,代码复现,附Pytorch完整代码

机器学习6-决策树
随机推荐
Mono 的执行流程
Is it safe and reliable to open a securities account in changtou school?
Tanghongbin, Yaya live CTO: to truly localize, the product should not have the attribute of "origin"
【Word 教程系列第 1 篇】如何去除 Word 表格中的箭头
LeetCode 324 摆动排序 II[排序 双指针] HERODING的LeetCode之路
Mathematical knowledge: finding combinatorial number I - finding combinatorial number
TDD和自动化测试
小样本利器2.文本对抗+半监督 FGSM & VAT & FGM代码实现
Implementation of go language plug-in platform
【Flutter 问题系列第 71 篇】Flutter 中 Uint8List 和 Image 之间的相互转换
Powerful open source API interface visual management platform Yapi
TDD案例实战
leetCode-栈类型详解
云计算的迷路者
Online linear programming: Dual convergence, new algorithms, and regret bounds
月薪6万,互联网“降本增效”后,这类人开始被疯抢
2022-06-28:以下golang代码输出什么?A:true;B:false;C:panic;D:编译失败。 package main import “fm
[kotlin] beautiful pop-up box, custom pop-up box (dialog box), extension function, chrysanthemum waiting bar, message prompt box
[sword finger offer] 50 First character that appears only once
Deep virtual memory (VM)