# Hypothesis Test

Last updated

Last updated

It is a **claim** or **statement** about **a population parameter **such as mean, variance, proportion, etc.

If population mean, $\sigma$ is known then we perform **z-test**, otherwise we perform **t-test**. However, based on the central limit theorem, if the sample is large enough, we can still perform **z-test**.

Alternative Discussion

A Statistical Hypothesis is a probabilistic explanation about the presence of a relationship between observations.

For example, we may be interested in evaluating the relationship between the means of two samples, e.g. whether the samples were drawn from the same distribution or not, whether there is a difference between them.

One hypothesis is that there is no difference between the population means, based on the data samples. This is a hypothesis of no effect and is called the null hypothesis and we can use the statistical hypothesis test to either reject this hypothesis, or fail to reject (retain) it.

We don’t say “accept” because the outcome is probabilistic and could still be wrong, just with a very low probability.

If the null hypothesis is rejected, then we assume the alternative hypothesis that there exists some difference between the means.

**Null Hypothesis (H0):** Suggests no effect.
**Alternate Hypothesis (H1):** Suggests some effect.

Machine Learning Hypothesis

It is a candidate model that approximates a target function for mapping inputs to outputs.

Learning is a search through the space of possible hypotheses for one that will perform well, even on new examples beyond the training set. The choice of algorithm and algorithm configuration involves choosing a hypothesis space that is believed to contain a hypothesis that is a good or best approximation for the target function.

Reasons for Hypothesis Tests

**Normality Tests**Tests that you can use to check if your data has a Gaussian distribution.Shapiro-Wilk Test

D’Agostino’s K^2 Test

Anderson-Darling Test

**Correlation Tests**Tests that you can use to check if two samples are related.**H0:**the two samples are independent.**H1:**there is a dependency between the samples.Pearson’s Correlation Coefficient

Spearman’s Rank Correlation

Kendall’s Rank Correlation

Chi-Squared Test

**Stationary Tests**Tests that you can use to check if a time series is stationary or not.Augmented Dickey-Fuller

Kwiatkowski-Phillips-Schmidt-Shin

**Parametric Statistical Hypothesis Tests**Tests that you can use to compare data samples.**H0:**the means of the samples are equal.**H1:**the means of the samples are unequal.Student’s t-test

Paired Student’s t-test

Analysis of Variance Test (ANOVA)

Repeated Measures ANOVA Test

**Nonparametric Statistical Hypothesis Tests**Tests whether the distributions of two independent samples are equal or not.**H0:**the distributions of both samples are equal.**H1:**the distributions of both samples are not equal.Mann-Whitney U Test

Wilcoxon Signed-Rank Test

Kruskal-Wallis H Test

Friedman Test

References