Methodology
The prices of stocks keep on changing everyday depending on the market forces due to demand and supply. In this report, we present an analytic view of four different stock closing prices. The stocks prices are related to S & P 500 index, IBM stock price, US TN (10 year) and Boeing stock price. The aim is to choose the best stock out of the given four using certain criteria. The data used was obtained from the Yahoo Finance for the period spanning from 01/12/2010 to 31/05/2016 (a total of 65 months were included for analysis). Table 1 below presents the first 10 observations of the data.
Table 1: Sample portion of the data
Closing stock |
Stock Returns |
|||||||
Date |
S&P 500 index |
IBM Stock Price |
US TN (10 year) |
Boeing Stock Price |
S&P 500 index |
IBM Stock Price |
US TN (10 year) |
Boeing Stock Price |
12/1/2010 |
1257.64002 |
146.76000 |
3.30500 |
65.26000 |
||||
1/1/2011 |
1286.12000 |
162.00000 |
3.37800 |
69.48000 |
2.23930 |
9.87978 |
2.18473 |
6.26597 |
2/1/2011 |
1327.21997 |
161.88001 |
3.41400 |
72.01000 |
3.14566 |
-0.07410 |
1.06008 |
3.57660 |
3/1/2011 |
1325.82996 |
163.07001 |
3.45400 |
73.93000 |
-0.10479 |
0.73242 |
1.16484 |
2.63137 |
4/1/2011 |
1363.60999 |
170.58000 |
3.29600 |
79.78000 |
2.80969 |
4.50248 |
-4.68234 |
7.61541 |
5/1/2011 |
1345.19995 |
168.92999 |
3.05000 |
78.03000 |
-1.35929 |
-0.97200 |
-7.75680 |
-2.21795 |
6/1/2011 |
1320.64002 |
171.55000 |
3.15800 |
73.93000 |
-1.84262 |
1.53904 |
3.47973 |
-5.39747 |
7/1/2011 |
1292.28003 |
181.85001 |
2.80500 |
70.47000 |
-2.17084 |
5.83074 |
-11.85354 |
-4.79316 |
8/1/2011 |
1218.89002 |
171.91000 |
2.21800 |
66.86000 |
-5.84675 |
-5.62111 |
-23.47977 |
-5.25862 |
9/1/2011 |
1131.42004 |
174.87000 |
1.92400 |
60.51000 |
-7.44671 |
1.70717 |
-14.21995 |
-9.97923 |
Data was collected from the Yahoo Finance where a criteria was used for the range of data to be downloaded. The interest was on the closing prices where for each and every stock we had to download the data and then select the closing prices. Stock returns for each of the stocks was then computed using the following formula;
After computing the return rates for the four stocks, we then computed the excel returns on the stock that had the highest average rate of returns as follows;
The first analysis done was the descriptive statistics where we looked at the measures of central tendency (mean and median) as well as the measures of dispersion (standard deviation and range). The maximum and minimum returns are also presented.
Table 2: Descriptive statistics
|
S&P 500 index |
IBM Stock Price |
US TN (10 year) |
Boeing Stock Price |
Mean |
0.787 |
0.071 |
-0.906 |
1.014 |
Median |
1.044 |
-0.074 |
0.821 |
1.200 |
Standard Deviation |
3.386 |
5.052 |
9.503 |
5.988 |
Range |
17.677 |
28.866 |
51.506 |
30.820 |
Minimum |
-7.447 |
-14.383 |
-25.891 |
-18.533 |
Maximum |
10.231 |
14.483 |
25.615 |
12.287 |
Sum |
51.125 |
4.646 |
-58.894 |
65.909 |
Count |
65 |
65 |
65 |
65 |
From table 2 (descriptive statistics table) above, we clearly see that Boeing stock returns was the highest (M = 1.014) and it was followed by that of S & P 500 index (M = 0.787). IBM had an average stock return of 0.071 while US TN had the lowest average stock returns (M = -0.906). In terms riskiness of the stocks, US TN is the riskiest stock while S & P 500 index is the least risky stock.
1. Line charts
The following plots shows the time series plots for the four different stocks. The first one is that of S&P 500 index, as can be seen, the plot shows a continuous increase in the closing prices.
For the case of IBM closing prices, there was a continuous increase in the closing prices till around the end of 2011 before which the prices began to fall again
- a) Returns computations
The returns for the different stocks were computed using the following formula;
Descriptive Statistics
We show the first returns for each of the stock, the rest of the values are shown in excel;
S & P 500 index;
IBM Stock;
US TN (10 year) stock;
Boeing stock;
- c) Jarque-Berra test of normality
We used Jarque-Bera test to test for the normality of the rate of returns for the IBM and for the Boeing stocks. Jarque–Bera test is simply a test for goodness-of-fit where it checks whether sample data have the kurtosis and skewness matching a normal distribution. The null hypothesis of the test is that the data is normally distributed. The results of the tests are given below;
As can be seen, the p-value is 0.2104 (a value greater than α = 0.05), we fail to reject the null hypothesis and conclude that the Boeing stock returns are normally distributed at 5% level of significance.
We also tested the normality for the returns on IBM stock. Again, the returns were found to follow a normal distribution (p-value > 0.05).
In this section, we sought to test whether the average return on Boeing stock is greater than or equal to 3%. The tested hypothesis s;
Results are presented in table 3 below;
Table 3: T-test of Boeing Stock price
t-Test: Two-Sample Assuming Equal Variances |
||
Boeing Stock Price |
Test_claim |
|
Mean |
1.013988 |
0.03 |
Variance |
35.85196 |
5.99E-34 |
Observations |
65 |
65 |
Pooled Variance |
17.92598 |
|
Hypothesized Mean Difference |
0 |
|
df |
128 |
|
t Stat |
1.324922 |
|
P(T<=t) one-tail |
0.093779 |
|
t Critical one-tail |
1.656845 |
|
P(T<=t) two-tail |
0.187558 |
|
t Critical two-tail |
1.978671 |
In table 3, we present the one-sample t-test where the aim was to test the claim that the average return on Boeing stock is greater than or equal to 3% , the p-value for the one-tailed is 0.094; this value is greater than α = 0.05. The null hypothesis cannot be rejected in this case hence we conclude that the mean average returns for Boeing stock is not at least 3% as is claimed.
In this section, the aim was to compare the risk associated with the returns on Boeing and the returns on IBM stocks. We used F-test to make a comparison of the two. The following was tested;
The P value associated with the test statistics (F-test) is 0.0885. This value is greater than 5% level of significance. This means that we cannot reject the null hypothesis and by not rejecting the null hypothesis we conclude that the risk associated with the two stocks is not significantly different at 5% level of significance.
Next, we sought to compare the average returns for the Boeing stock and that of the IBM stocks. Are the average stock returns for the two stocks the different? The following hypothesis was used to answer the research question presented;
Time Series Plots
Where, is the average returns for Boeing stock while is the average returns for the IBM stock.
Results from the two-sample t-test assuming equal variances revealed that the average returns for the two stocks are not significantly different (p-value > 0.05, two-tailed). Though the average returns for the Boeing stock were slightly larger (M = 1.01, SD = 5.99) than the average returns for the IBM (M = 0.07, SD = 5.05), the differences were found to be insignificant at 5% level of significance.
Using a simple linear regression, we estimated the Capital Asset Pricing Model (CAPM) in which case the dependent variable was the excess return on Boeing stock and explanatory variable was the excess market return (computed as return on S&P 500 minus the risk fee rate). The results of the regression analysis are presented in the table below;
Table 5: SUMMARY OUTPUT
Table 7: Regression coefficients
|
We first check for the goodness-of-fit of the model. We observe that the p-value of the F-statistics is 0.000 (a value less than 5% level of significance). We reject the null hypothesis and conclude that the model is significantly different from zero hence it is fit and appropriate.
- b) Interpretation of Coefficients
In terms of the coefficients, we see that the coefficient for the independent variable is 1.0969. This value is positive implying a positive relationship between the dependent variable and the independent variable. The value further shows that a unit increase in the independent variable would result to an increase in the dependent by 1.0969. Likewise, a unit increase in the independent variable would result to a decrease in the dependent variable by 1.0969.
- c) Interpretation of R2
The value of R-squared is 0.8026; this means that 80.26% of the variation in the dependent variable is explained by the independent variable in the model. A large percentage of the variation is explained within the model, this further points to the appropriateness of the model.
- d) Interpretation of confidence interval for beta
Results also presented the 95% confidence interval. The results shows that we are 95% confident that the true population mean returns is between 1.00 and 1.26. This shows that the slope is statistically significant at 5% level of significance.
We tested the neutrality of the stock returns (Boeing stock returns) using 95% confidence interval. In doing this, we aimed at testing the following hypothesis;
The 95% confidence interval results shows that we are 95% confident that the true mean is between -.3879 and 3.7731. This range incorporates 1 and as such we can say that the hypothesis is insignificant (i.e. different from 1). By failing to reject the null hypothesis we conclude that the beta is not different from 1 hence the returns on the stock is equal to 1 hence the stock is neural.
The last test is regarding the normality of the error term. The hypothesis tested is;
H0: The error term follows a normal distribution
HA: The error term does not follow a normal distribution
The error term was stored as e after the regression and then the normality was tested using Shapiro-Wilk test. The p-value is 0.5963 (a value greater than α = 0.05), we fail to reject the null hypothesis and conclude that the error term is normally distributed at 5% level of significance.
As can be seen, the above chart further shows that the data is normally distributed.
De Brouwer, Ph. “Maslowian Portfolio Theory: An alternative formulation of the Behavioural Portfolio Theory.” Journal of Asset Management 9, no. 6 (2009): 359–365.
de Silva, Harindra . “Exploiting the Volatility Anomaly in Financial Markets.” 2012.
Doornik, J. A., and D. F. Hendry. “Empirical Econometric Modelling.” (Timberlake Consultants, Ltd) 2009.
Elton, E. J., M. J. Gruber, S. J. Brown, and W. N. Goetzma. “Modern portfolio theory and investment analysis.” (John Wiley & Sons) 2009: 347.
French, Craig W. “Jack Treynor’s ‘Toward a Theory of Market Value of Risky Assets’ (December).” 2003.
French, Craig W. “The Treynor Capital Asset Pricing Model.” Journal of Investment Management 1, no. 2 (2003): 60–72.
Guerard, J. B., and E. Schwartz. “Quantitative Corporate Finance.” (Springer) 2007.
Rubinstein, Mark. “A History of the Theory of Investments.” (John Wiley & Sons, Inc.) 2006.
Sharpe, W. F. “Investors and Markets.” (Princeton University Press) 2007.
Tofallis, C. “Least Squares Percentage Regression.” Journal of Modern Applied Statistical Methods 7 (2009): 526–534.