Question: 6. KNN (20 points) Table 5 is a gene expression microarray data, where each row represents a sample for a person, each column represents a

6. KNN (20 points) Table 5 is a gene expression microarray data, where each row represents a sample for a person, each column represents a gene, and each entry represents gene expression value of a gene over a sample. The output of each sample indicates whether a specific disease exists in this sample. Please use Euclidean Distance- Weighted KNN (K=3) to predict the output of the sample 11 and sample 12. Sample G5 Output G1 G1 1.0 2.0 G4 1.2 G6 2.6 G7 2.3 Yes No G2 2.3 3.6 1.5 1.9 2.4 G3 5.2 1.8 4.1 9.5 5.3 2.7 Yes 1.3 1.5 1.7 No 1.5 1.6 3.9 Yes 5.1 2.6 1.7 Yes 3.5 3.4 No 4.1 3.1 3.3 1.8 2.5 | 4.2 2.4 6.2 2.9 2.5 Yes 3.6 5.6 1.9 3.2 2.6 5.2 No Table 5: Gene expression data G4 Output Sample 61 2.1 62 2.2 63 3.2 64 1.4 3.8 65 5.1 2.3 66 2.4 5.7 67 1.4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
