Skip to main content

How to conduct Hypothesis Testing step by step - simple and elegant (part 3)

Step by Step procedure in Conducting the Hypothesis Testing: prerequisites:   Part 1:  What is Hypothesis Testing and When it is Used? Part 2:  How to decide Null and Alternate Hypothesis?                    https://www.isixsigma.com/   Before diving into the steps, first let’s understand the Important Terminology we need to understand: Null Hypothesis: It is a well-established fact which is believed by all the people. It can also defined as an Assumption that treats everything equally and similarly. Alternate Hypothesis: It is a new claim made against the Null Hypothesis. If we have enough evidence against the Null Hypothesis we will reject Null Hypothesis. P-value: Probability of Null Hypothesis being true. Significance level: probability of rejecting the Null Hypothesis when it is true. It is a critical point where we decide whether the Null Hypothesis is rejected or not. Generally, the significant level will be 0.05 which means a 5 percent risk while concluding

How to conduct Hypothesis Testing step by step - simple and elegant (part 3)

Step by Step procedure in Conducting the Hypothesis Testing:


prerequisites: 

Part 1: What is Hypothesis Testing and When it is Used?

Part 2: How to decide Null and Alternate Hypothesis?   

              

 

Before diving into the steps, first let’s understand the Important Terminology we need to understand:

Null Hypothesis: It is a well-established fact which is believed by all the people. It can also defined as an Assumption that treats everything equally and similarly.

Alternate Hypothesis: It is a new claim made against the Null Hypothesis. If we have enough evidence against the Null Hypothesis we will reject Null Hypothesis.

P-value: Probability of Null Hypothesis being true.

Significance level: probability of rejecting the Null Hypothesis when it is true. It is a critical point where we decide whether the Null Hypothesis is rejected or not.

Generally, the significant level will be 0.05 which means a 5 percent risk while concluding some difference exists when there is no actual difference.

Note: Lower the significance level, you need stronger the evidence to reject null hypothesis.

The significant level helps to conclude which hypothesis the data is supporting. It is done by comparing p-value with significant level.

 

Conducting the Hypothesis Testing step by step:

1.     State null and alternate Hypothesis:

Define the Null and Alternate Hypothesis from the given problem.

 

2.     Collect the data and conduct the experiment:

Gather the sample data and experiment to get the observed value.

 

3.     Set the significance level:

Define a critical point at which you want to reject Null Hypothesis.

 

4.     Determine p-value

We need to find the Probability of finding the observed value (we got in step 2) when the null hypothesis is True.

Need to do certain statistical tests based on the type of data to get the p-value.

Examples of statistical Tests:

1.     T – Test

2.     Z – Test

3.     Chi – Square Test

4.     Anova Test

 

5.     Decide whether to reject the Null Hypothesis or not:

Take the decision by Comparing the significant value and p-value.

      if  p-value < significant level:

                                                    Reject Null Hypothesis

                                     else:

                                                   Accept Null Hypothesis

 

Let’s have better understanding about the significant level and p-value which can helpful in interviews:

1.     Significant level is decided based on Domain Knowledge.

2.     If p-value < 0.01 it tells that there is very strong evidence against Null Hypothesis.

3.     In layman way, it tells that only in 1% of cases the null hypothesis is True and remaining 99% of cases the Alternate Hypothesis is True.

 

p-value (p) and significant value (alpha) comparison

Evidence against Null Hypothesis

p-value < 0.01

very strong evidence

0.01 < p-value < 0.05

strong evidence

0.05 < p-value < 0.1

mild evidence

p-value > 0.1

No evidence

 

                                                   

 

 

 

Comments

Popular posts from this blog

Simple Understanding of INCEPTION_V3 and it's Architecture (part 3)

INCEPTION_V3 Prerequisites:  VGGNet OR VGG16:  VGG16 Architecture   By looking it's name, everybody think's that it is a complicated story just like the movie INCEPTION. But trust me, I will prove you that it is wrong by explaining in the most detailed way. Till now, If we take a layer in any neural network we only applied single operation like convolution or maxpooling and also with fixed kernel size for the whole layer.  But Now, The idea is, why can't we use all the operations in a single layer at a time. There comes INCEPTION_V3. Lets zoom a single layer in the inception_v3, source: It's a screenshot from AndrewNg class If you observe the above figure, convolution operation with kernel sizes 1x1,3x3,5x5 and the max-pool operation, all have applied at a time. Here comes a problem, COMPUTATION. only from single layer we are getting billions of computations. For example, lets do a simple mathematical calculation here, Note: To understand this you need to know how conv

How to decide Null Hypothesis & Alternate Hypothesis - Examples (part 2)

Lets Understand Null Hypothesis and Alternate Hypothesis. Prerequisites : part 1:  What is Hypothesis Testing and When it is Used?   Null Hypothesis (H 0 ) : It is a well Established Fact or An Assumption which treats everything is similar and equal. Alternate Hypothesis(H a ) : The claim you want to prove. Note: H 0 and H a are always opposite to each other.                                                                                                                               https://keydifferences.com/ Example 1: Statement: During 18 th century, People used to believe that Sun revolves around the earth. Later Copernicus came and told that it is not true. Since, At the time of 18 th century “Sun revolves around the earth” is a well established fact and is widely accepted belief, So It will become our null hypothesis. Copernicus claimed that “Earth revolves around the sun” which is opposite to null hypothesis. So it will become Alternate Hypothesis. H 0 :   Sun revolves aro