how do you calculate the p value in a hypothesis test
Then you will calculate something called the one-sample z test statistic, like this: The z statistic is simply the number of standard deviations you are from your hypothesized mean. Plug this into a table or statistical software in order to get the P-value.Donât do this haphazardly, though.lternative hypothesis: The population mean IQ of those who take the drug is not 100. Now letâs say our z statistic was 2.17. To find the P-value, in this case, we would want to find the probability that we would get a z statistic of at least positive or negative 2.17 if the null hypothesis is true.