Principal Component Analysis

5 试题

1.

Consider the following 2D dataset:

Which of the following figures correspond to possible values that PCA may return for u(1) (the first eigenvector / first principal component)? Check all that apply (you may have to check more than one figure).

2.

Which of the following is a reasonable way to select the number of principal components k?

(Recall that n is the dimensionality of the input data and m is the number of input examples.)

Choose k to be 99% of n (i.e., k=0.99∗n, rounded to the nearest integer).

Choose k to be the smallest value so that at least 1% of the variance is retained.

Choose the value of k that minimizes the approximation error 1m∑mi=1||x(i)−x(i)approx||2.

Choose k to be the smallest value so that at least 99% of the variance is retained.

3.

Suppose someone tells you that they ran PCA in such a way that "95% of the variance was retained." What is an equivalent statement to this?

1m∑mi=1||x(i)−x(i)approx||21m∑mi=1||x(i)||2≤0.95

1m∑mi=1||x(i)−x(i)approx||21m∑mi=1||x(i)||2≥0.05

1m∑mi=1||x(i)−x(i)approx||21m∑mi=1||x(i)||2≤0.05

1m∑mi=1||x(i)−x(i)approx||21m∑mi=1||x(i)||2≥0.95

4.

Which of the following statements are true? Check all that apply.

Feature scaling is not useful for PCA, since the eigenvector calculation (such as using Octave's svd(Sigma) routine) takes care of this automatically.

Given an input x∈Rn, PCA compresses it to a lower-dimensional vector z∈Rk.

PCA can be used only to reduce the dimensionality of data by 1 (such as 3D to 2D, or 2D to 1D).

If the input features are on very different scales, it is a good idea to perform feature scaling before applying PCA.

5.

Which of the following are recommended applications of PCA? Select all that apply.

Data visualization: Reduce data to 2D (or 3D) so that it can be plotted.

To get more features to feed into a learning algorithm.

Clustering: To automatically group examples into coherent groups.

Data compression: Reduce the dimension of your input data x(i), which will be used in a supervised learning algorithm (i.e., use PCA so that your supervised learning algorithm runs faster).

Machine Learning week 8 quiz: Principal Component Analysis相关推荐

  1. 机器学习与高维信息检索 - Note 4 - 主成分分析及其现代解释(Principal Component Analysis, PCA)及相关实例

    主成分分析及其现代解释 4. 主成分分析及其现代解释 Principal Component Analysis and Its Modern Interpretations 4.1 几何学解释 The ...

  2. Machine Learning week 8 quiz: programming assignment-K-Means Clustering and PCA

    一.ex7.m %% Machine Learning Online Class % Exercise 7 | Principle Component Analysis and K-Means Clu ...

  3. 如何利用PCA(Principal component analysis)来简化数据

    本博文的的内容为以下: 降维技术 主成分分析(PCA) 对半导体数据进行降维处理 降维(dimensionality reduction)的目标就是对输入的数目进行消减,由此剔除数据中的噪声并提高机器 ...

  4. pca降维python实例_主成分分析(Principal component analysis, PCA)例子–Python | 文艺数学君...

    摘要这一篇是关于PCA的实战, 我们会举一个例子, 看一下PCA具体在实战中是如何来进行的. 同时我们会比较同一个数据下, 使用PCA(主成分分析)和FA(因子分析)得到结果的不同. 简介 这一篇文章 ...

  5. 笔记:Online robust principal component analysis via truncated nuclear norm regularization

    Hong, B., Wei, L., Hu, Y., Cai, D., & He, X. (2016). Online robust principal component analysis ...

  6. 笔记:Inductive Robust Principal Component Analysis

    Bao, B.K., et al., Inductive robust principal component analysis. IEEE Transactions on Image Process ...

  7. 主成分分析(principal component analysis, PCA)公式

    主成分分析(principal component analysis, PCA)公式 主成分分析 摘要 什么是主成分 求解 PCA 的公式 数学证明 程序验证 参考文献 主成分分析 摘要 主成分分析作 ...

  8. 【碎片知识(9)】PCA (Principal Component Analysis) [主成分分析]

    离开很久啦,从Ph.D.套磁开始到全部settle down花费了太久的时间,在上周也终于把研究方向定下来了,终于手头的事告一段落了.未来是跨度三到四年的research生涯,无数师兄师姐告诫我,读博 ...

  9. PCA(Principal Component Analysis)的原理、算法步骤和实现。

    PCA的原理介绍:  PCA(Principal Component Analysis)是一种常用的数据分析方法.PCA通过线性变换将原始数据变换为一组各维度线性无关的表示,可用于提取数据的主要特征分 ...

最新文章

  1. Entity Framework 5中遇到的 mysql tinyint(1) 转换为 bool 的问题 (我用的是VS2013中的EF5版本)...
  2. sharemouse切窗口就锁定了什么原因_Excel表格如何锁定,被锁定的表格又该如何解除锁定呢?...
  3. 初学ActionScript 3.0(一):Hello World
  4. 计算机信息管理相关课题论文,计算机信息管理课题论文[].doc
  5. 假如我们的坦克继续前进队——需求改进系统设计
  6. a16z和斯坦福大学区块链研究中心将于5月4日举行NFT虚拟峰会
  7. Hadoop平台优化综述(一)
  8. C#语法基础(二)---数组stringArrayList
  9. 图像降噪:Scale-Space and Edge Detection Using Anisotropic Diffusion
  10. numpy-poly1d、polyfit、polyval多项式使用
  11. 基于Bootstrap的Metro风格模板
  12. 计算机接口接触不良,如何处理电脑耳机插口接触不良
  13. TCP/IP协议中分包与重组原理介绍、分片偏移量的计算方法、IPv4报文格式
  14. java excel 插入新行_POI ,Java 操作 Excel 實現行的插入(insert row)
  15. 卡尔卡西25首练习曲简析-音阶与音程训练
  16. 利用html开发英语单词小程,前端利用表单标签自己制作一个简单的表单页面-表单制作-小程序表单制作...
  17. 关于达梦数据库备份恢复无法恢复,及备份恢复后启库无法启动,遇见的dmap(管道)问题
  18. cron定时任务详解
  19. VMware百度百科
  20. C# 中用 Sqlparameter 的几种用法

热门文章

  1. 为什么硅谷公司对Android不感冒?
  2. 快递信息css3手风琴代码_用纯CSS实现手风琴效果的示例代码
  3. Java Review - 使用Timer时需要注意的事情
  4. 白话Elasticsearch73_ES生产集群中的索引管理02
  5. 实战SSM_O2O商铺_21【商铺列表】Dao层开发
  6. SQL发HTML页脚怎么写,SQL Server中发送HTML格式邮件的方法
  7. 自定义本地Maven 仓库 配置
  8. LtRecyclerView:自带上拉下拉,能增加头条目和尾条目的RecyclerView
  9. 查看操作系统版本linux_查看电脑操作系统版本(适用于Mac OS)
  10. matlab训练神经网络模型并导入simulink详细步骤