*27*

AÂ statistical hypothesisÂ is an assumption about aÂ population parameter. For example, we may assume that the mean height of a male in the U.S. is 70 inches. The assumption about the height is the*Â statistical hypothesis*Â and the true mean height of a male in the U.S. is the*Â population parameter*.

AÂ hypothesis test is a formal statistical test we use to reject or fail to reject some statistical hypothesis.

The basic process for performing a hypothesis test is as follows:

**1.** Collect sample data.

**2.** Calculate the standardized test statistic for the sample data.

**3.** Compare the standardized test statistic to some critical value. If itâ€™s more extreme than the critical value, reject the null hypothesis. Otherwise, fail to reject the null hypothesis test.

The formula that we use to calculate theÂ **standardized test statisticÂ **varies depending on the type of hypothesis test we perform.

The following table shows the formula to use to calculate the standardized test statistic for each of the four major types of hypothesis tests:

**Hypothesis Test for One Mean**

AÂ **one sample t-test**Â is used to test whether or not the mean of a population is equal to some value.

The standardized test statistic for this type of test is calculated as follows:

**t = (****xÂ â€“ Î¼) / (s/âˆšn)**

where:

**x:Â**sample mean**Î¼**Â hypothesized population mean_{0}:**s:Â**sample standard deviation**n:Â**sample size

Refer to this tutorial for an example of how to calculate this standardized test statistic.

**Hypothesis Test for a Difference in Means**

AÂ **two sample t-test**Â is used to test whether or not the means of two populations are equal.

The standardized test statistic for this type of test is calculated as follows:

**t = (x _{1}Â â€“Â x_{2})Â /Â s_{p}(âˆš1/n_{1}Â + 1/n_{2})**

whereÂ x_{1}Â andÂ x_{2}Â are the sample means,Â n_{1Â }and n_{2Â }are the sample sizes, and whereÂ s_{p}Â is calculated as:

**s _{p}**Â =Â âˆšÂ (n

_{1}-1)s

_{1}

^{2}Â +Â Â (n

_{2}-1)s

_{2}

^{2}Â /Â (n

_{1}+n

_{2}-2)

where s_{1}^{2}Â and s_{2}^{2}Â are the sample variances.

Refer to this tutorial for an example of how to calculate this standardized test statistic.

**Hypothesis Test for One Proportion**

AÂ **one proportion z-test**Â is used to compare an observed proportion to a theoretical one.

The standardized test statistic for this type of test is calculated as follows:

**z = (p-p _{0}) / âˆšp_{0}(1-p_{0})/n**

where:

**p:Â**observedÂ sample proportion**p**Â hypothesized population proportion_{0}:**n:Â**sample size

Refer to this tutorial for an example of how to calculate this standardized test statistic.

**Hypothesis Test for a Difference in Proportions**

AÂ **two proportion z-test**Â is used to test for a difference between two population proportions.

The standardized test statistic for this type of test is calculated as follows:

**z **=Â (p_{1}-p_{2}) / âˆšp(1-p)(1/n_{1}+1/n_{2})

where p_{1}Â and p_{2} are the sample proportions,Â n_{1 }and n_{2Â }are the sample sizes, and where p is the total pooled proportionÂ calculated as:

p = (p_{1}n_{1} + p_{2}n_{2})/(n_{1}+n_{2})

Refer to this tutorial for an example of how to calculate this standardized test statistic.