Hypothesis Testing
Given a baseline population mean a sample mean a sample count and either a sample standard deviation or a population standard deviation we might want to know if the sample data provides sufficient evidence to conclude that the true population mean differs significantly from
We could say that our null hypothesis is that the population mean is what we expect:
and that the alternative hypothesis is that it is different from what we expect:
We'd then compute a test statistic. Here, we will assume we know the population's standard deviation
The p-value is the probability of getting a test statistic () this extreme or more extreme if the actual mean is
Referenced by (1 direct)
Direct references:
Then, since we want to know the p-value, we have a two-tailed test because the sample mean could either be lower than or higher than our actual mean. So, we do
or in Mathematica notation:
Low -values (typically, or so) lead us to reject the null-hypothesis and adopt the alternative hypothesis. A very low -value means that the probability of getting the sample we got if is very low.
Instead of hypothesizing that we could hypothesize that or that These would be single-tailed tests and we'd use, for example:
instead.
Additionally, if we don't know but only know the standard deviation of the sample, we would use a Student T Distribution. We'd calculate a value instead of a value:
Note that if we wanted to test the alternative hypothesis we'd use
and similarly for when is known, except we'd use the standard normal distribution and a value.