Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Hw 6 - hw 6

Rating
-
Sold
-
Pages
4
Grade
A+
Uploaded on
15-10-2024
Written in
2024/2025

Exam of 4 pages for the course Intro to Analytics Modeling at Intro to Analytics Modeling (Hw 6 - hw 6)

Institution
Intro To Analytics Modeling
Course
Intro to Analytics Modeling

Content preview

10/15/24, 9:20 Hw 6 - hw
AM 6




Question 9.1

Using the same crime data set uscrime.txt as in Question 8.2, apply Principal Component
Analysis and then create a regression model using the first few principal components. Specify
your new model in terms of the original variables (not the principal components), and compare
its quality to that of your solution to Question 8.2. You can use the R function prcomp for PCA.
(Note that to first scale the data, you can include scale. = TRUE to scale as part of the PCA
function. Don’t forget that, to make a prediction for the new city, you’ll need to unscale the
coefficients (i.e., do the scaling calculation in reverse)!)




Based off the plot, the first ff pcs are good since it is above the STD. Setting this number, we can
build the model (shown in the code below)
We can then run the same variables from the previous HW and compare the 2 models. The
model transformation is shown in the code below.




about:blan 1/
k 4

Written for

Institution
Intro to Analytics Modeling
Course
Intro to Analytics Modeling

Document information

Uploaded on
October 15, 2024
Number of pages
4
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$12.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
EXAMSHAVEN1

Get to know the seller

Seller avatar
EXAMSHAVEN1 Stanford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
2
Member since
1 year
Number of followers
0
Documents
924
Last sold
11 months ago
A+ GRADE FOR NURSING EXAMS

Success is the sum of small efforts - repeated day in and day out. I am here to help in the precise way possible. Day in day out I will be updating you \\\'all with the latest exams not only in nursing but also in other areas. Don\\\'t forget to check out my store and recommend it to a friend. I will be uploading LATEST TESTBANKS TOO.

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions