In activities where success depends on own abilities and skills, people are often overconfident. The traditional explanation for this overconfidence is a bias in beliefs. However, empirical research has shown that decisions under uncertainty depend both on beliefs and ambiguity attitudes. This raises the question whether overconfidence might also be caused by ambiguity attitude. This paper explores this question. We perform an experiment in which subjects have to bet on their performance in an ability test. We have three treatment groups. The positive information group received positive feedback about their absolute score and their relative rank in the ability test, the negative information group received negative feedback about their score and rank, and the control group received no feedback. We observed that overconfidence was related to a bias in beliefs: subjects in the positive information group held beliefs that were too optimistic and the beiefs of subjects in the negative information group were too negative. This held both for score and for rank. We found that ambiguity attitude had a large impact on overconfidence, stronger than that of beliefs. The effect of information on ambiguity attitudes was mixed: for score we observed evidence that positive information made subjects less ambiguity averse, but for rank we did not observe this. Interestingly, we found that for an endogenous source of ambiguity (their performance in the ability test), subjects were more ambiguity seeking than what has commonly been observed for exogenous sources of uncertainty.