Male sex exacerbates APOE4-related cognitive impairment and anxiety in aged mice and is insensitive to the cognition improvement effect of metformin in the aged apoE3 mice. Here, APOE is linked to Cognitive impairment.