Hypothesis Testing(z test,t test with examples)

Hypothesis Testing(z test,t test with examples)

Hypothesis Testing :
Null Hypothesis (H⁰) : It states that there is no difference of certain characteristics between the sample and population data due to random chances. Eg: Assuming the researcher’s predictions are true.

Alternate Hypothesis (H1): Alternate of Null Hypothesis, It states that there is difference of certain characteristics between the sample and population data due to random chances. Eg: Assuming the researcher’s predictions are not true.

P — Value: It is the probability of outcomes more extremes than the observed outcome assuming the null hypothesis to be true. Here extreme means significance level.

Significance level: It is a criterion used for rejecting null hypothesis. Usually the alpha is set to be 5% or 1%, that is probability factor to be 0.05 or 0.01. The significance level varies depending on the business problem statement.

Confidence level: It is 1-significance level, used to show how confident you are about your conclusion.

p-value < significance value, we reject the null hypothesis
p-value > significance value, we fail to reject the null hypothesis

Refer to below jupyter notebook for code example for easy understanding.
    • Related Articles

    • Cross Validation and different types of splitting techniques

      In machine learning, we couldn’t fit the model on the training data and can’t say that the model will work accurately for the real data. For this, we must assure that our model got the correct patterns from the data, and it is not getting up too much ...
    • newtours.demoaut.com unavailable

      Dear Learner, Greetings from edureka! This is a known issue. The portal  http://newtours.demoaut.com/  is down right now and because this portal is not maintained by us, we are unable to provide any information as to when it will be live again. ...