Hypothesis testing is a method that is used to test an assumption about a data set based on a sample data.
Steps to do the hypothesis testing -
Step 1:-
We make 2 statements - 1) Null Hypothesis (H\(_0\)): There is no effect or relationship.
2) Alternative Hypothesis (H\(_1\)): There is an effect or relationship.
Step 2:-
Assume a \(\alpha\) value to compare the p-value to
Step 3:-
We calculate the p-value to decide whether to reject the null hypothesis.
If pval <= \(\alpha\), Reject H\(_0\) -> statistic significance
If pval > \(\alpha\), Fail to reject H\(_0\) -> Not significant