Hypotheses Testing

3 min read Updated Tue Apr 28 2026 07:56:31 GMT+0000 (Coordinated Universal Time)

A hypotheses is an intelligent educated guess or assumption about a population parameter, which may or may not be true. Not yet proven.

Hypotheses testing, evaluates if a hypothese can be rejected.

Hypotheses

Null Hypothesis

A statement that says the sample observations result purely from chance. Denoted by H0H_0.

Believed to be true unless rejected with enough evidence.

Alternative Hypothesis

A statement that says the sample observations occur because of some non-random cause. Denoted by H1H_1 or HaH_a.

True when null hypotheses is rejected.

Relation between Null and Alternative Hypothesis

The null and alternative hypothesis are complementary, and mutually exclusive.

Terminology

Rejected Region

Aka. critical region. Consist of all values of the test statistic values for which H0H_0 is rejected.

Accepted Region

Consist of all values of the test statistic values for which H0H_0 is not rejected.

Critical Value

A value that separates the rejected region from the accepted region.

Test Statistic

A numerical value used to determine whether to reject H0H_0. Calculated from the sample data.

If the test statistic falls within the critical region, H0H_0 is rejected. if the test statistic falls within the accepted region, H0H_0 is not rejected.

If population standard deviation σ\sigma is known:

Z=xˉμ0σ/nN(0,1)Z = \frac{\bar{x} - \mu_0}{\sigma/\sqrt{n}} \equiv N(0,1)

If population standard deviation σ\sigma is unknown:

t=xˉμ0s/ntn1t = \frac{\bar{x} - \mu_0}{s/\sqrt{n}} \equiv t_{n-1}

Decision Errors

Type I Error

When H1H_1 is true, but rejected. Probability of Type I error is called the significance level and is denoted by α\alpha.

P(Type I Error)=α=P(Reject H0H0 is true)P(\text{Type I Error}) = \alpha = P(\text{Reject } H_0 | H_0 \text{ is true})

If not defined, α=0.05\alpha=0.05 is used.

Type II Error

When H0H_0 is false, but not rejected. Denoted by β\beta.

P(Type II Error)=β=P(Not Reject H0H0 is false)P(\text{Type II Error}) = \beta = P(\text{Not Reject } H_0 | H_0 \text{ is false})

Power of the Test

The probability of correctly rejecting H0H_0 when it is false. Equal to 1β1-\beta.

Types of Significance Tests

Defines where the rejection region lies in a probability distribution. Depends on H1H_1.

Two-Tailed Test

Used when testing for any difference, without direction. The critical region is split into 2 tails on either ends. are identical and

Right-Tailed Test

Used when testing if the parameter is greater than the claimed value. Rejection region lies entirely in the right tail of the distribution.

Left-Tailed Test

Used when testing if the parameter is less than the claimed value. Rejection region lies entirely in the left tail of the distribution.

Choosing the Correct Test

Alt. Hypothesis (H1H_1)Tail TypeRejection Condition
μμ0\mu \neq \mu_0Two-tailedz>zα/2\lvert z \rvert \gt z_{\alpha/2}
μ>μ0\mu \gt \mu_0Right-tailedz>zαz \gt z_{\alpha}
μ<μ0\mu \lt \mu_0Left-tailedz<zαz \lt -z_{\alpha}

Decision Methods

For a single sample, either critical value method or p-value method can be used. Both produce the same results.