Question: 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
Get step-by-step solutions from verified subject matter experts
