This paper presents an innovative gene selection method for cancer classification using microarray data, which combines Analysis of Variance (ANOVA), Principal Component Analysis (PCA), and K-nearest neighbors (KNN) with Recursive Cluster Elimination (RCE). The proposed method reduces the gene subset size while achieving high classification accuracy of 99.10%, outperforming traditional techniques. It addresses challenges in gene selection algorithms related to small sample sizes and varying data distributions.