So in my stats book I am told the following: A type I error is a false positive meaning you reject the null hypothesis when it's true. A type II error is a false negative meaning you reject the alternative hypothesis when it's true. My question is what causes these errors to occur? Is it simply bad sampling methods resulting in your getting biased data that causes you to get a skewed test statistic value and make the wrong conclusions?
What causes these types of errors in hypothesis testing?
Thank you
Both of these possible errors are simply the result of the fact that you are conducting a statistical test. Since chance is involved, your results are not always going to be correct. You can try to design the experiment to minimize the probabilities of these errors, but you'll never eliminate them completely.