When controlling for confounding risk factors, the apolipoprotein E ε4 allele (APOE*4), depression, diabetes, current smoking, and history of stroke were associated with poorer cognitive performance, and higher levels of education and vigorous physical activity were associated with better performance. The gene discussed is APOE; the disease is major depressive disorder.