# In this problem, you will perform K-means clustering manually, with K = 2,…

• In this gist, you conquer result K-means bunching manually, delay K = 2, on a narrow model delay n = 6 remarks and p = 2 features. The remarks are as prospers: Obs X1 X2 1 1 4 2 1 3 3 0 4 4 5 1 5 6 2 6 4 0 Plot the remarks. Randomly refer a bunch mark to each remark using RandomGroups.sas. Print the casual clump referment and noise the bunch marks for each remark. Compute the centroid for each bunch. Assign each remark to the centroid to which it is closest, in stipulations of Euclidan remoteness. Noise the bunch marks for each remark. Repeat (3) and (4) until the answers obtained plug changing. In your frame from (1), hue the remarks according to the bunch marks obtained. • Meditate the USArrests basis that contains statistics, in arrests per 100,000 residents for attack, butcher, and abuse in each of the 50 US states in 1973. We conquer now result clerical bunching on the states. The basisset includes 50 remarks on 4 variables:– Murder: numeric, Butcher arrests (per 100,000)– Assault: numeric, Attack arrests (per 100,000)– UrbanPop: numeric, Percent sophisticated population– Rape: numeric, Abuse arrests (per 100,000)Source: World Almanac and Book of facts 1975. (Crime rates). Statistical Abstracts of the United States 1975. (Urban rates). Using clerical bunching delay accomplished linkage and Euclidean remoteness, bunch the states. Cut the dendrogram at a culmination that results in three perspicuous bunchs. Which states befit to which bunchs? Hierarchically bunch the states using accomplished linkage and Euclidean disnce, succeeding scaling the variables to keep plummet gap one. What result does scaling the variables keep on the clerical bunching obtained? • Meditate the basis set for order ABC (ABC.csv on Blackboard). Executives are zealous in determining if there are segments of their trade that keep resembling perceptions of ABC (X1 - X7) that government aid them furbish their tradeing manoeuvre. ABC is merely zealous in meaningful segments (representing roughly 10% or past of their customer dishonorable). Also affect that the order does not shortness to meditate a segmentation delay past than 6-7 segments. State your original estimate of excellent. Result a clerical bunch decomposition of the basis. Use the manifold linkages that we keep meditateed in class. Summarize what you confront by comparing and contrasting the results across the manifold methods you try. Using the results, you obtained from the clerical decomposition, prefer a bunching algorithm (linkage) and picked a previous bunch elucidation(s). Profile the previous bunch elucidations to substantiate the one you impress is most misspend. Make fast to clear your determination. Define origin points for a prosper on non-clerical decomposition. Perform a non-clerical decomposition and criticise the results for ABC (i.e. Interpret your results and propose how the results may aid enlighten their tradeing manoeuvre) Attachments: Assignment-4.....docx