Age, prostate-specific antigen (PSA) density (PSAD), systemic immune-inflammation index, cystatin C level, and the Prostate Imaging Reporting and Data System (PI-RADS) v2.1 score were significant predictors of prostate cancer (PCa) on multivariable logistic regression analyses (P < 0.05) and the five parameters were used to construct the XYFY nomogram. The gene discussed is KLK3; the disease is posterior cortical atrophy.