Showing posts with label t distribution. Show all posts
Showing posts with label t distribution. Show all posts

Sunday, 26 December 2010

Reading 11, Putting the puzzle of Reading 11 together


Level 2, Volume 1, Quantitative methods, Reading 11, Correlation & Regression
Most questions related to Reading 11 incorporate tables as indicated below.
I struggled initially to understand the relevance and links between the data. After I studied it in some detail I came to the conclusion that if you understand the table, you understand most of Reading 11.
These tables are a bit like a big puzzle, and once you start to piece it together Reading 11 falls into place. This is pretty cool.
Below I use the information from Reading 11, Table 12 and show all the links and relationships using underlying formulas.
Did I say it is pretty cool?

Information from Reading 11, Table 12
Regression Statistics
Multiple R
0.928
R-Squared
0.861
Observations
60
Standard error of estimate
0.0174

ANOVA
Degrees of Freedom
Sum of Squares
Mean Sum of
Squares
F
Regression
1
          0.1093
0.1093
359.64
Residual
58
0.0176
0.0003
Total
59
0.1269

Coefficients
Standard Error
t-Statistic
Alpha
0.0009
0.0023
0.4036
Beta
0.7902
0.0417
18.9655


  
1.Calculate Correlation Coefficient  (“CC”)using Coefficient of Determination (“CD”)
Remember R-Squared = Coefficient of Determination
1.1 Reference
Reading 11, 3.4

1.2.1 Formula: Method 1
CD = Square the CC between the dependent and independent variables.
Thus CC = √CD

1.3.1 Using information from the tables:
CC =  √0.861 = 0.928

We can therefore also conclude that Multiple R = Correlation Coefficient

1.2.2 Formula: Method 2
Sum of Squares are used to calculate variation. Residual variation is the same as unexplained variation.

= 1 - (Unexplained variation/Total Variation)

1.3.2 Using information from the tables:
= 1 – (0.0176/0.1269)
= 0.928


2.1 Reference
Reading 11, 3.3

2.2 Formula






2.3 Using information from the tables:
We know that Residual Sum of Squares is the same as Sum of Error Squares.
Therefore:
√(0.0176/(60-2))
= √0.0003
= 0.0174


3. Calculating Means (Residual)
(0.0176/(60-2))
=0.0003


4. Calculate ANOVA using the F test

4.1 Reference:
Reading 11, 3.6

4.2 The formula:


4.3 Using information from the tables:
(0.1093/1) / (0.0176/(60-2))
= 360.193
(Difference due to rounding. As indicated in text book)

5. Link between F test & t-statistic

5.1 Reference
Reading 11, 3.6

5.2 Formula
For one independent variable the F-statistic is the square of the t-statistic for the slope coefficient.

5.3 Using information from the tables:
t- statistic = √F statistic
                  = √359.64
                   = 18.9655

6. Calculating the t-statistic

6.1 Reference
Reading 11, 2.6

6.2 Formula

6.3 Using information from the tables:
0.928. √(60-2) / √(1-0.928²)
18.9655


7.1 Reference
Reading 11, 3.5

7.2 Formula





This formula equals 0

7.3 Using information from the tables:
0 = 0.7902 +/- (x)(0.0417)
+/- X = 18.94







Monday, 20 December 2010

Reading 11, 3.5 Hypothesis Testing (Part b)

Level 2, Volume 1, Quantitative methods, Reading 11, Correlation & Regression, 3.5

This is Part B of Reading 11, 3.5, Part A

The most common way to test a hypothesis using a regression model is with a t-test of significance.
The formula for testing the hypothesis is just a rearrangement of the formula used previously in Part A.
The initial formula is:
 b1 equals:





But we are trying to calculate t (test statistic) and not the critical value. So t replaces tc

Therefore the equation changes to:
b1- bˆ1 = t .sbˆ1
t = (b1- bˆ1) / sbˆ1

Example 1: Calculate t for b1 from Part A
For bˆ1
= (0.005 - 0.004473) / (0.00002)
= 26.35
Because t (26.35) >  tc (5.841) , we reject the null hypothesis that b1 = 0.005

Example 2: Calculate t for bo from Part A
For bˆ0
= (-19 +20.9637) / (1)
= 1.9637
Because t (1) <  tc (3.182) , we accept the null hypothesis that b0 = 19

Sunday, 5 December 2010

Reading 11, 2.6 Five steps to test significance of Correlation Coefficient


Level 2, Volume 1, Quantitative Methods, Reading 11, Correlation & Regression
Five steps to test the significance of Correlation Coefficient (CC)


(The references refer to the CFA text book.  The steps are based on my own understanding of the subject)

2.6 Testing the Significance of the Correlation Coefficient 

In the previous sections I calculated the correlation between BHP Revenue and Dividends per share/Earnings per share. It was noted that the correlation is apparently not that strong (in the range of 0.5) but increases significantly when the outlier from year 2009 is removed. (to 0.96)  Part of considering correlations relate to whether the correlation is spurious(e.g. a correlation between two variables that reflects chance relationships in a particular data set). 


A test of significance is used to determine whether there is a statistically significant relationship or whether the relationship is spurious. The following steps are suggested:

Step 1: Obtain correlation coefficient (“CC”), sample/population size and level of confidence 
You could either be requested to calculate the CC or you could be given the CC, sample size/population size and level of confidence.

Step 2: State the hypothesis 
Ho: p = 0
Ha: p <>0
(Because p = 0, we are testing for a two tailed test!)

Step 3: Calculate t test 
Use the following formula:







Step 4: Obtain the level of significance based on the information using Student’s t-distribution 

Calculate degrees of freedom = n(sample size) – 2
Determine the level of significance. This is typically set at the 5% and/or 1% level.
Find the corresponding answer on the table.

Step 5: Conclude 

If answer of t-test <> than answer from step 4, Reject Ho AND accept Ha.

Practical examples

Example 1: Correlation between BHP Revenue & Earnings per ordinary share

In previous examples the CC was calculated as 0.513509. The sample size is 5.
Based on the relative low correlation and small sample size one should expect that the correlation is not statistically significant.

Following the steps

Step 1: Obtain correlation coefficient (“CC”), sample/population size and level of confidence 
r = 0.513509
n = 5
Level of significance to be tested for 5% & 1%

Step 2: State the hypothesis 
Ho: p = 0
Ha: p <>0

(Because p = 0, we are testing for a two tailed test!)

Step 3: Calculate t test 
Use the formula to get the answer.

Step 4: Obtain the level of significance based on the information using Student’s t-distribution
Calculate degrees of freedom = n(sample size) – 2
= 3

Determine the level of significance.
5% & 1%

For 5%, being a two tailed test, level of significance = 3.182
For 1%, being a two tailed test, level of significance = 5.841

Step 5: Conclude 
For both 5% & 1% of significance, the answer from the t test is less than the level of significance.
We therefore conclude that there is no statistically significant correlation.

This example also shows the impact of a small size and the impact of outliers. I suspect that the correlation would be significant if the sample size is bigger and outliers are removed.

The impact of the removal of outliers are tested in the next example.


Example 2: Correlation between BHP Revenue & Earnings per ordinary share with the outlier removed 
In previous examples the CC was calculated as 0.964825. The sample size is 4.
Based on the relative low correlation and small sample size one should expect that the correlation is not statistically significant.

Following the steps

Step 1: Obtain correlation coefficient (“CC”), sample/population size and level of confidence
r = 0.964825
n = 4
level of significance to be tested for 5% & 1%

Step 2: State the hypothesis 
Ho: p = 0
Ha: p <>0
(Because p = 0, we are testing for a two tailed test!)

Step 3: Calculate t test 
Use the formula to get the answer.


= 5.188261

Step 4: Obtain the level of significance based on the information using Student’s t-distribution 
Calculate degrees of freedom = n(sample size) – 2
= 2
Determine the level of significance.
5% & 1%

For 5%, being a two tailed test, level of significance = 4.303
For 1%, being a two tailed test, level of significance = 9.925

Step 5: Conclude 
We can therefore conclude that for 5% confidence level there is a statistically significant correlation. We cannot conclude it for the 1% level of confidence.