Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given a sample data set below containing atttibutes (ID, Smoke(Y/ N), 4-levels of Credit Score: Poor, Fair, Good and Excellent, and Income) of mixed types.
Given a sample data set below containing atttibutes (ID, Smoke(Y/ N), 4-levels of Credit Score: Poor, Fair, Good and Excellent, and Income) of mixed types. Calculate the distance between object ID 2 and ID 4 using the distance function for attributes of mixed types and the distance function can be found at Text book, page 75, labeled as (2.22). Apply Manhattan (or city block) distance to the ordinal attribute after normalization/ mapping the range of variable to [0,1] by replacing rank, this is, 2,; in the formula (2.21). Keep 4 decimal places and show all your work. ID Smoke Credit Score Y 1 Poor 10,000 2 Y Good 8,000 3 N Fair 12,000 4 N Fair 5,000 5 N Excellent 9,000
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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