The p-value is calculated using the sampling distribution of the test statistic under the null hypothesis, the sample data, and the type of test being done (lower-tailed test, upper-tailed test, or two-sided test).
Minitab automatically displays p-values for most hypothesis tests. But you can also use Minitab to “manually” calculate p-values. To manually calculate a p-value in Minitab:
Suppose you do a one-sample lower-tailed z test and the resulting value of the statistic calculated from the data is −1.785 (ts= −1.785). You want to calculate a p-value for the z-test.
This value is the probability that the test statistic assumes a value equal to or less than that value actually observed based on your sample (under H0). P(TS < −1.785) = 0.0371. Therefore, the p-value = 0.0371.
Now suppose you do a one-sample upper-tailed z test and the resulting value of the statistic calculated from the data is 1.785 (ts= 1.785). You want to calculate a p-value for the z test.
This value is the probability that the test statistic assumes a value equal to or greater than that value actually observed based on your sample (under H0). P(TS > 1.785) = 0.0371. Therefore, the p-value = 0.0371.
Because the normal distribution is a symmetric distribution, you could enter −1.785 as the input constant (in step 4) and then you do not have to subtract the value from 1.
Suppose you perform a one-sample two-tailed z test and the resulting test statistic is 1.785 (ts= 1.785). You want to calculate a p-value for the z test.
This value is 2 times the probability of that the test statistic assumes a value equal to or greater than the absolute value of that value actually observed based on your sample (under H0). 2* P(TS > |1.785|) = 2 * 0.0371 = 0.0742. Therefore, the p-value = 0.0742.
Depending on the test or type of data, the calculations do change, but the p-value is usually interpreted the same way.