Share with your network!

hypothesis testing

It was overwhelming to see your response on the blog on Linear Regression. After seeing such a great response, I decided to write on Hypothesis testing, another very important topic for CFA/FRM quant exams. I am following the same style of presenting the topic in a simplified yet in a brief manner focusing on what is important for CFA/FRM exams.

Hypothesis Testing might sound complicated the first time we read it but actually it’s a simple tool designed to statistically validate our hypothesis. Hypothesis Testing makes our job easier by giving us the power to conclude by having information about only a sample of the total population rather than going through the entire population.

Five Simple Steps of Hypothesis Testing

5 Simple Steps of Hypothesis Testing

Difference between NULL and Alternate Hypothesis

difference between NULL and Alternate Hypothesis

The other important thing to note while Hypothesis formulation is whether our hypothesis test is one tailed or two tailed. If we are using < = or >= sign in our Hypothesis testing then we are using a one tailed test and if we are not using them then our test is a two tailed test. In a two tail test, we have to consider both side of our distribution.

one nail and two nail test

Choice of Test

After hypothesis formulation, we need to decide which test to use. The choice of test depends on:

· size of sample

· the variance is known to us or not

· Nature of Distribution

In case of unknown variance, t-test should be used .If the variance is known and the underlying distribution is normal distribution, z-test should be used. But if the underlying distribution is not normal and the variance is known then for large sample size, z test can be used.

Determining Test Statistics

The third step in the process is to determine the Test statistic based on the test we choose. The test statistics for T and Z test are given as follows.

T test

t n-1 =

x sample mean

Hypothesized Population mean

S standard deviation of the sample

n sample size

Z test

z statistic =

x sample mean

Hypothesized Population mean

Standard deviation of the population

n sample size

Determining Critical Value

Our critical value is called so because it is the value that will be compared with the test statistics and will be used to conclude whether our null Hypothesis can be rejected or not.

Critical Value will depend upon level of significance (α) and the choice of test. Critical value can be found by looking up in the table corresponding to the test chosen. For a two tail test the value to be looked up is α/2 whereas for a one tail test it is α.

Applying Decision Rule

Two Tail Test

Reject H0 if: test statistic > upper critical value or test statistic < lower critical value

One Tail Test

Reject H0 if: test statistic > upper critical value

If Null Hypothesis gets rejected that means we are able to support our Alternative Hypothesis.

Power of Test

Type 1 error: It is the error made when null hypothesis is rejected even though it is true

Type 2 error: It is the failure to reject the null hypothesis when it is actually false

Power of a test lies in the ability to correctly reject the null Hypothesis when it is false.

Hence,

“Power of Test = 1-Prob (Type 2 error)”

P-Value

P-value gives the probability of obtaining a test statistic that would lead to rejection of the null hypothesis, assuming the null hypothesis to be true.

obtaining P value

Suppose we have a two tailed test with the test statistic equal to 2.1.

Significance of P-value

P-value gives the smallest level of significance for which the null Hypothesis can be rejected. So, in the above example if we take the significance level lower than 3.58 %, then we can’t reject the null hypothesis.

Incase of any questions or queries, mention them in the comment box below.