Objective: The objective of this retrospective study was to employ machine learning techniques to examine age-related traits of ocular aberrations in a substantial population with myopia and myopic astigmatism. Methods: This was a cross-sectional study. Data from a population of myopic and myopic astigmatism patients who underwent wavefront aberration examinations at the Refractive Surgery Center of Tianjin Eye Hospital in Tianjin, China, were collected continuously from January 2013 to July 2017. The data from the right eye of each individual were collected for analysis. Each eye had 32 outcome data points, including age, best-corrected visual acuity (BCVA), lower-order aberrations (spherical diopter, cylindrical diopter, and astigmatic axis), and higher-order aberrations [Zernike coefficients and root mean square (RMS) of the third to sixth order aberrations] were analyzed. Higher-order aberrations were measured by Hartmann-Shack aberrometer. Results: The study included 1 507 subjects (1 507 eyes), comprising of 694 males and 813 females, with a mean age of (23.28±5.45) years. The findings demonstrated a decrease followed by an increase in most of the higher-order aberrations with age between 15-40 years. The minimum value points were observed in the age group of 25-30 years for RMS of total higher-order aberrations, 3rd RMS (with a confidence of 47.74% for range 1), 4th RMS (with a confidence of 86.01% for range 1), and trefoil aberrations (with a confidence of 56.38% for C33 and 73.25% for C3-3). The minimum value points were also observed in the age group of 30-35 years for primary spherical aberration (with a confidence of 56.10% for C40) and vertical coma-like aberration (with a confidence of 56.91% for C3-1). In contrast, astigmatism with the rule tended to decrease with age, while astigmatism against the rule and oblique astigmatism tended to increase (with a confidence of 88.66%, 84.71%, 81.07%, 79.67%, and 66.35% for astigmatism with the rule in different age groups). Conclusions: As age increases, the population with with-the-rule astigmatism decreases while the population with against-the-rule astigmatism increases. The high-order aberrations are the lowest in the 25-35 age group.