Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(a) (8 points) Suppose we have 5 data points in a 2-dimensional Euclidean space: x1= [12]T,x2=[7376]T,x3=[36]T,x4=[56512]T,x5=[320340]T. What are the first and second principal components? (Please
(a) (8 points) Suppose we have 5 data points in a 2-dimensional Euclidean space: x1= [12]T,x2=[7376]T,x3=[36]T,x4=[56512]T,x5=[320340]T. What are the first and second principal components? (Please do not use code to solve this sub-problem.) (b) (12 points) Consider a dataset of automobiles' information (file: automobile.csv 2 ), we will analyze it through PCA. Use these five feature columns: curb-weight, horsepower, city-mpg, highway-mpg, price to obtain a subdataset, and answer the following question: what are the first principal component and second principal component of this subdataset? If you want to use Python for this problem, please note that only standard Python library such as Numpy, Scikit-learn, Pandas are allowed. Your source code is required to be submitted and please make sure it is bug-free
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started