Solved Lab for Elementary Applied Statistics | STAT 280, Lab Reports of Statistics

Material Type: Lab; Class: ELEMENTARY APPLIED STATISTICS; Subject: Statistics; University: Rice University; Term: Fall 2004;

Typology: Lab Reports

Pre 2010

Uploaded on 08/19/2009

koofers-user-zwk
koofers-user-zwk 🇺🇸

4

(1)

10 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Stat 280 Lab 99
Friday, December 03, 2004
This lab is about performing some exploratory data analysis for common stocks and
stock indexes. First, a few things must be understood. Stocks and many other physical
or economic systems are too poorly-understood to be modeled deterministically. Instead
we model them in time or space by an appropriate stochastic process.
For stocks, the most common model is the log-normal diffusion model, known as
geometric Brownian motion (GBM). Not wishing to confuse, the equation for the
evolution in time of this model is () (0) .
ii
t
ii
Xt X e
µσν
t
+∆
= Although this model has
consistently been shown to not truly represent the markets, in many respects it is “close
enough.” The nice thing about GBM is that is parameterized just by two population
parameters, its growth and variance, or (,)
θµ
σ
=
, where 2
2
i
ii
σ
µµ
=−
In our analysis, we usually refer to the time ticks t
as 1-day increments. The process is
modeled in terms of price CHANGES (to get to normality!), i.e. 1t
t
t
X
R
X
+
=, from which
we take the natural log to get . This r is modeled as Gaussian (Normal). For
instance, is the price of the stock today is 100 and yesterday it was 95, then
R=100/95=1.053 (note that the percent increase is R-1, or 5.3%), and its “mathematical”
return r=ln(1.053)=.0516, which is CLOSE to the “percent” return but not exactly equal
to it. Some factoids are that , for small r, and
ln( )rR=
pct
rrpct
rr%11
r
rR e
−= .
However, we are mostly concerned with the basic definition ln( )rR
=
Normal.
Once one has estimates for the population parameters, it is easy to simulate stock path
progression and other things. The standard estimators for 2
and
µ
σ
are 2
2
ˆR
S
t
σ
= and
2
ˆ2
r
t
σ
µ
=+
, with =1/252 (1 day). The variance is especially easy to calculate, it’s
just the sample variance of the daily returns r . For daily data,
t
_
ˆ252
annual r daily
S
σ
=,
recalling 2
σ
σ
=. The growth rate
2
ˆ21
daily
daily
r
σ
µ
=
+.
For a typical stock or market index we might get ˆˆ
( , ) (.082,.165)
gbm gbm
GBM GBM
µ
σ
=
,
showing an annual growth rate of 8.2% and annual “volatility” of 16.5%. So for a stock
with annual volatility of 100%, we might expect that in 95% of the cases the price of the
stock could double within a year.
pf3

Partial preview of the text

Download Solved Lab for Elementary Applied Statistics | STAT 280 and more Lab Reports Statistics in PDF only on Docsity!

Stat 280 Lab 99 Friday, December 03, 2004

T his lab is about performing some exploratory data analysis for common stocks and

stock indexes. First, a few things must be understood. Stocks and many other physical or economic systems are too poorly-understood to be modeled deterministically. Instead we model them in time or space by an appropriate stochastic process.

For stocks, the most common model is the log-normal diffusion model, known as geometric Brownian motion (GBM). Not wishing to confuse, the equation for the

evolution in time of this model is X (^) i ( ) t = X (^) i (0) e^ μ i^ ′^ ∆^ t^ +^ σ ν it. Although this model has

consistently been shown to not truly represent the markets, in many respects it is “close enough.” The nice thing about GBM is that is parameterized just by two population

parameters, its growth and variance, or θ = ( μ ′, σ), where

2

2

i i i

In our analysis, we usually refer to the time ticks ∆ t as 1-day increments. The process is

modeled in terms of price CHANGES (to get to normality!), i.e. (^) t t^1 t

X

R

X

= + , from which

we take the natural log to get. This r is modeled as Gaussian (Normal). For

instance, is the price of the stock today is 100 and yesterday it was 95, then R=100/95=1.053 (note that the percent increase is R-1, or 5.3%), and its “mathematical” return r =ln(1.053)=.0516, which is CLOSE to the “percent” return but not exactly equal to it. Some factoids are that , for small r , and

r = ln( R )

rr pct rpct  r (^) % 1 1 r = R − = er −.

However, we are mostly concerned with the basic definition r = ln( R ) Normal.

Once one has estimates for the population parameters, it is easy to simulate stock path

progression and other things. The standard estimators for μ andσ 2 are

2 ˆ 2 SR t

σ = ∆

and 2 ˆ 2

r t

, with =1/252 (1 day). The variance is especially easy to calculate, it’s

just the sample variance of the daily returns r. For daily data,

t

σˆ (^) annual = Sr _ daily 252 ,

recalling σ = σ^2. The growth rate

2 ˆ 2 1

daily daily

σ r

For a typical stock or market index we might get GBM ( μˆ gbm , σˆ gbm ) = GBM (.082,.165),

showing an annual growth rate of 8.2% and annual “volatility” of 16.5%. So for a stock with annual volatility of 100%, we might expect that in 95% of the cases the price of the stock could double within a year.

It turns out that the big indexes, such as the Dow or the SP500, have annual volatilities around 15.8%. Why is coincidental number so nice? Because the daily volatility

σ (^) daily = σ annual / 252 = .01! That means on a given day a 1% change is just 1-sigma!

One can calculate a z-score for a daily return as

r z

= , which of course is N(0,1).

From this one can quantify the likelihood of a particular return. For example, if a stock is .10. ( , (^252 )

GBM ) and we obtain a return R=1.03 (a 3% increase), r = ln(1.03) =.

so

z

= =. This has a p-value of .064, which is NOT a significantly

high return. We would expect this return 16 times a year (p-value * 252 trading days/year).

M arket indexes are “averages” of individual stocks meant to define some reference

benchmark. The two types are weighted arithmetic and geometric indexes. By far the most common are the arithmetic indexes. Popular brands are the price-weighted Dow Jones indexes, and the market-value weighted indexes such as the Nasdaq Composite and the Standard & Poor’s indexes. Less well-known are geometric indexes such as the Value Line, but these are gaining in popularity, due to their better mathematical properties.

The arithmetic indexes are variations on X. In the case of the price-weighted Dow

indexes, I Dow = α∑ X i =α nX ,or I Dow = α′ X. As of April 2004, the published Dow

divisor of 0.144, gives

α′ = = (^). The geometric weighted index, is

( ) just the geometric mean of the components.

1 / i , w n

I G = α ∏ Xi

We will be constructing Dow-type and Geo-type indexes for a group of 4 stocks, which we will call the ISCO index. For each trading day we take the stocks prices and construct the index value, D-ISCO and G-ISCO. This is simple, as in

date A B C D "Dow" "Geom" 9/8/00 77.88 63.88 21 19.81 45.6425 37.

If we wanted to scale this to a common value A on a certain day, we multiply by our index value by A / I (^) 0. In the above example, if we wish to scale the indexes to 11,000 on

day 1, we multiply each calculation by A / I (^) 0 , or 11111/45.6425 for the Dow-type, and

11000/37.9292 for the geometric index.