Quality assurance for stereotactic body radiation treatment requires that isocentric verification be ensured during gantry rotation at various angles. This study examined statistical parameters on Winston-Lutz tests to distinguish the deviation of angles from isocenter during gantry rotation using machine learning. The Varian TrueBeam linac was aligned with the marked lines on the Ruby phantom. Eight images were captured while the gantry was rotating at a 45° shift. The statistical features were derived from IsoCheck EPID software. The decision tree model was applied to these Winston-Lutz tests to cluster data into two groups: precise and error angles. At 90° and 270° angles, the gantry exhibits isocentric stability compared to other angles. In these angles, the most statistical features were inside the range. Most variations were observed at 0° and 180° angles. In most tests, the angles 45°, 135°, 225°, and 315° showed reasonable performance and with less variation. The comprehensive statistical analyses for gantry rotation of angles assists expert radiotherapists in determining the contribution of each feature that highly affects gantry movement at specific angles. Misalignment between radiation isocenter and imaging isocenter, tuning of the beam at each angle, or a slight change in the position of the Ruby phantom can further improve the inaccuracy that causes the most variations. Better precision can effectively increase patient safety and quality during cancer treatment.