A p-value is the probability of observing a test statistic as extreme as, or more extreme than, the value observed, assuming the null hypothesis is true.
\[ p = P(\text{observed or more extreme statistic} \mid H_0 \text{ true}) \]
The t-statistic formula is:
\[ t = \frac{\bar{x} - \mu_0}{s / \sqrt{n}} \]