Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

To replicate the KNN results in this exercise, it is essential that you use R version 4.2 .1 or later and the latest version of

image text in transcribed
To replicate the KNN results in this exercise, it is essential that you use R version 4.2 .1 or later and the latest version of the relevant packages. For consistency, the exercise uses the random number generator (RNG) algorithm from R version 3.5 .3 . To replicate the results with newer versions of R, execute the following line of code at the beginning of the R session or your R code: suppressWarnings(RNGversion("3.5.3")). For. R, partition the data sets into 60% training and 40% validation and implement the 10-fold cross-validation. Use the statement set.seed(1) to specify the random seed for data partitioning and cross-validation. When searching for the optimal value of k, search within possible k values from 1 to 10 . If the predictor variable values are in the character format, then treat the predictor variable as a categorical variable. Otherwise, treat the predictor variable as a numerical variable. The Chartered Financial Analyst (CFA) designation is the de facto professional certification for the financial industry, Employers encourage their prospective employees to complete the CFA exam. Daniella Campos, an HR manager at SolidRock Investment, is reviewing 10 job applications. Glven the low pass rate for CFA Level 1, Daniella wants to know whether or not the 10 prospective employees will be able to pass the CFA Level 1 exam. Historically, the pass rate is higher for those with work experience and a good GPA in college. With this insight, she compiles the accompanying data file with information on 63 current employees who took the CFA Level I exam last year, including the employee's success on the exam (1 for pass, 0 for fain), the employee's college GPA, and years of work experience. a. Perform KNN analysis to estimate a classification model for the CFA Level 1 .xam using the CFA Data worksheet and score the 10 job applicants in the CFA Score worksheet. What are the misclassification rates for k=3,4, and 5 ? Note: Round your answers to 4 decimal places

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial Management Of Health Care Organizations

Authors: William N. Zelman, Michael J. McCue, Noah D. Glick

3rd Edition

0470497521, 9780470497524

More Books

Students also viewed these Finance questions

Question

Outline Abelards position on the roles of faith and reason.

Answered: 1 week ago

Question

Who responds to your customers complaint letters?

Answered: 1 week ago

Question

Under what circumstances do your customers write complaint letters?

Answered: 1 week ago