Elevated HAMD‐17 score (≥14), the root node indicated by greatest mean decreases in the Gini impurity index, was a discriminating factor for high risk of cirrhosis, while HLA‐DRB1*03:01 allele, high levels of ALP (≥118 and 195 U/L, respectively), as well as increased age (≥64 years) were also found to be important risk factors for cirrhosis in patients with PBC. The gene discussed is HLA-DRB1; the disease is primary biliary cholangitis.