Type I Error vs P-Value
Both terms below come up in the same part of the course, and students mix them up. Here is each one defined on its own, side by side, so you can see where they part company.
Type I error
Hypothesis testing
A Type I error is rejecting a true null hypothesis: a false positive, concluding there is an effect when in fact there is none.
A Type I error requires two conditions at once: is true, and the test rejects it anyway. Its long-run rate under a true null is exactly the significance level (alpha) you chose, which makes it the one error probability you set directly rather than inherit.
Take against , with (sigma) known to be 15 and , so the standard error is 3 and an test rejects once (x-bar) clears 104.93. If the true mean really is 100, that happens in 5 percent of samples. Those 5 percent are Type I errors, and there is nothing wrong with the data or the arithmetic in any of them: the sample was unlucky, not mistaken. Drop to 0.01 and the cutoff moves to 106.98, so the rate falls to 1 percent.
The sentence to retire: "my p-value was 0.03, so there is a 3 percent chance this rejection is a Type I error." Once the decision is made, either is true and you erred or it is false and you did not; the coin has already landed. describes the procedure across many repetitions, not the single conclusion in front of you, and 0.03 is the p-value, computed under a null that may well be false.
The error is also unavailable when is false, no matter how badly the test performs. Rejecting a false null is the correct decision, and failing to reject it is a Type II error. Which of the two mistakes you could even make depends on a truth you never observe.
Lowering cuts this error and, with and the true effect held fixed, raises the other: at the test above has against a true mean of 105, where gave 0.4913. A larger sample cuts both at once. Which error costs more is a judgment about consequences, and AP Statistics topic 3.8, Potential Errors When Performing Tests, asks for that judgment in context.
P-value
Hypothesis testing
A p-value is the probability, computed assuming the null hypothesis is true, of getting a result at least as extreme as the one you observed.
A p-value is a conditional probability computed while the null hypothesis is taken as true. Written out, it is , where extreme means in whichever direction the alternative hypothesis points.
Suppose you flip a coin 100 times, get 60 heads, and test against . Under the null, (p hat) is centered at 0.5 with standard deviation 0.05, so the observed sits standard deviations out. Under the normal model the z-test uses, the two-sided p-value is 0.0455. Said aloud: if the coin really were fair, that model puts about 4.6 percent of samples of 100 flips at least 0.10 away from 0.5 in one direction or the other. Against the one-sided the same model gives 0.0228, half as much, because only the upper tail counts.
Two readings of that 0.0455 are wrong and both are everywhere. It is not the probability that the coin is fair, and it is not the probability that the result happened by chance. Both of those are claims about the hypothesis, while the p-value is a claim about the data that takes the hypothesis as given. The conditioning runs one way only, and reversing it is the single most repeated error in applied statistics.
A large p-value is not evidence for either. It means the data would not be surprising if were true, which is a much weaker statement than being true. Small samples have little power to detect anything, so a large p-value from one may mean only that the test could not have found an effect of ordinary size, which is why a p-value of 0.4 from 12 observations tells you very little.
The decision comes from comparing the p-value against a significance level (alpha) fixed before the data are seen: reject when the p-value is at or below , and fail to reject it otherwise. The p-value itself is a measure of evidence on a continuous scale, so 0.049 and 0.051 carry nearly identical information despite falling on opposite sides of the usual cutoff.