Hypothesis Testing Quick Reference - 1
Hypothesis Testing Quick Reference - 1
Hypothesis testing is formulated such that assumption or claim that has to be proved is mentioned in the Alternate Hypothes
always hold a condition which we want to reject.
In the world of analytics hypothesis testing is widely used to check if the sample being considered is a representation of the
performed on the mean and variance of the data. Additionally there are hypothesis testing functions available to perform n
check correlations etc.
One Tail Right Sided Hypothesis Test One Tail Left Sided Hypothesis Test
Alternate hypothesis will have a '>' sign Alternate hypothesis will have '<' sign
Example: Pizza official's competitor claim that the Example: Pizza officials claim that the mean
mean delivery time is more than 30 mins delivery time is less than 30 mins
Hence the null and alternate hypothesis is: Hence the null and alternate hypothesis is:
Ho: µ = 30 mins Ho: µ = 30 mins
Ha: µ > 30 mins Ha: µ < 30 mins
Representation: Representation:
While we do the hypothesis testing there is possibility that there will be some errors. The output of the test may not be true
Below table represents the possible type of errors.
α : level of significance
Confidence level = 1 - α
The Type I Error returned by hypothesis test is the p-value of the test.
If we want to be 95% confident on the result of the hypothesis test i.e. confidence level = 0.95, we keep threshold of 'α' a
compare the p-value with 0.05.
If p-value < 0.05, null hypothesis is rejected for a confidence level of 0.95.
used to test if an assumption or claim made is indeed true
he output of the test may not be true for few data points.
e of errors.