Workshop Week02
Workshop Week02
Workshop - Week 02
You are required to study Lecture notes – Week 02 prior to attending this workshop.
In this section, main points from Lecture notes - Week 02 will be revised.
Data visualisation is a powerful method to understand the properties of data and an effective
tool to communicate them with your audience. It can often be more informative and appealing
than presenting only regression statistics. In this section, we will learn how Eviews can be used
to visualise the data.
The file contains 180 monthly time series data for stock returns from 1998 to 2012. The stock
returns include Disney (dis), Exxon-Mobil (xom), General Electric (ge), IBM (ibm), Microsoft
(msft), and market index return (mkt, S&P500). Note that the return at time t is calculated as
(Pt − Pt-1)/Pt, where Pt is the price at time t.
1
a. A group of return series
b. Time plots, Box plots, Distribution plots, Scatter plots of return series
Eviews Instruction:
Highlight these time series as above by pressing the Control key in your keyboard. When
highlighting, make sure you click the mkt first followed by the others. In this way, you can
position the series mkt in the first column as you can see above. Right-click the highlighted
area and click Open As Group to see the spreadsheet view as above.
1. Time plots
From the Spreadsheet menu, click View, Graph, Line & Symbol,
Click OK, then you will see the time plots as below:
2
You can see that all stock returns exhibit high degree of volatility around 0, indicative of high
risk involved with the mean return close to 0. Most of them show different degrees of volatility
over time; see, for example, GE stock return show high degree of volatility first, followed by
low and high periods. Most of them show a number of spikes over time, which again represents
highly risky nature of investment.
2. Boxplots
Generate the boxplots in a single graph as below, by clicking View, Graph, Boxplot and
choosing single graph.
3
The boxplots contain the following information:
All stock returns show the median values close to 0, indicating that their expected returns are
nearly 0. The market return shows the lowest degree of variability with the smallest IQR value,
while IBM and Microsoft showing a high degree of variability indicated by large IQR values
and a large number of outliers.
If you are an investor who wants to minimize the risk, it is best to invest in a well-diversified
portfolio such as market index.
To visualize distributional features, you may want to present histograms or kernel density
functions. The latter is a smoothed version of the former. To generate these plots,
4
In this way, you can compare the returns based on the shape of their distributional features such
as asymmetry (skewness) and occurrence of extreme values. The returns are overall skewed to
the left, which means a higher occurrence of negative extreme values than the positive ones.
4. Scatter plots
The above presents the scatter plots for all stock returns against the market return. The red
lines are the fitted regression lines. All stock returns are positively related with the market
return, in different degrees.
In the following weeks, you will estimate and test these regression lines in the context of an
economic model called the CAPM (capital asset pricing model).
5
Section 3: Calculation and Interpretation (textbook questions)
During the 2-hour workshop, you are not required to answer all the questions in this section.
Instead, your facilitator will choose random questions to demonstrate and help you
understand/apply related econometric theories mentioned in Section 1.
6
Section 4: Further self-practice
Choose a stock return from capm5.wf1 according to the last digit of your student ID as below:
7
Hints:
For information about the Q-Q plot, see here or refer to your statistics textbook.
Comment: It appears that the market index return has an asymmetric distribution with longer tail
on the left. The distribution is showing a clear departure from a normal distribution, especially
in the left tail area, with high frequency of large negative returns.