After adjusting for multiple covariates, the TyG index and AIP were significantly positively correlated with AF, indicating that TyG and AIP are independent predictors of AF. Here, AIP is linked to atrial fibrillation.