Hindsight Bias (Also known as the "knew-it-all-along phenomenon"), is the tendency when an individual assumes that he/she knew and predicted an outcome after the outcome has been determined (Hoffrage & Pohl, 2003). Due to that, it makes the individual believe that he/she could have predicted that outcome with statements such as: "I knew it all along" or "I knew it would happen" (Hoffrage & Pohl, 2003).
Hindsight bias functions in a way that after learning the outcome, it gives the individual a sense of predictability, a higher degree of certainty of the outcome without any prior knowledge. Having hindsight bias could potentially lead to people being overconfident on their ability.
As an example, consider a student who is answering a test question and is uncertain whether he should answer A or B. The student eventually answer B. When the teacher mentioned the actual answer is B. The student's first thing that came into his mind after the answer is mentioned: "I knew the answer is B all along". Making him feel confident about it despite the fact that he was uncertain about the answer during the initial stage on doing the test.
Confirmation Bias is the tendency for the individual to find and gather information that is more inclined and supports his/her beliefs (Nickerson, 1998). At the same time, ignoring the other possible alternatives of the information; making it biased.
Example, if a person strongly believes that playing games is harmful for children, he/she would find information/studies that supports the connotation that playing games is harmful. Without acknowledge or accept the fact there are also information/studies shown that it is beneficial for children to play games.
Hoffrage, U., & Pohl, R. (2003). Research on hindsight bias: A rich past, a productive present, and a challenging future. Memory, 11(4-5), 329–335. doi:10.1080/09658210344000080
Nickerson, R. S. (1998). Confirmation bias: A ubiquitous phenomenon in many guises. Review of General Psychology, 2(2), 175–220. doi:10.1037/1089-2618.104.22.168