Machine Learning week 8 quiz: Principal Component Analysis

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.99n , 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  1mmi=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?

1mmi=1||x(i)x(i)approx||21mmi=1||x(i)||20.95

1mmi=1||x(i)x(i)approx||21mmi=1||x(i)||20.05

1mmi=1||x(i)x(i)approx||21mmi=1||x(i)||20.05

1mmi=1||x(i)x(i)approx||21mmi=1||x(i)||20.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  xRn , PCA compresses it to a lower-dimensional vector  zRk .

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).

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值