Question: Find the maximum and minimum values for each behavior: This is needed in order to normalize the dataset. To do this, complete the findMostSimilarCustomer() method
Find the maximum and minimum values for each behavior: This is needed in order to normalize the dataset.
To do this, complete the findMostSimilarCustomer() method located in the SimilarCustomer.java file. The findMostSimilarCustomer() will take the arguments double[][] customerBehaviorMatrix, and int currentCustomerIndex. The method will return a matrix called mostSimilarCustomerIndex.
1
The dataset needs to be normalized so that each behavior/property is measured on the same scale. Normalization for each entry can be done using the following formula:
Formula for normalization
where xij is the entry of the ith customer with jth behavior and minj and maxj are the minimum and maximum values of the jth behavior.
3
Calculate similarity between customers. This can be done using the basic Euclidean distance formula.
Xjj - min; -,Vij mai max; min; Xjj - min; -,Vij mai max; minStep by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
