Sunday, January 18, 2009

Plan for 2009

After these years, I found my knee and feet may need some more rest. Thus I won't run too much (never had I) this year, and here's my plan:
Mar: Den Haag 10K
Apr: Rotterdam 10K
Aug: Hamburg 55K (Cycling)
Sep: Dam tot Dam 16K
Oct: Amsterdam 21K
---
My humble goal is to finish a half marathon in 2 hours. ^^"

Thursday, January 01, 2009

Diary-Jan 2009

Jan 1.
Year in, year out, I've been wishing to enjoy my life. 2008 marked a new start for me, and I pretty much enjoyed every bit of it.
Jan: prepare application material for phd program
Feb: finished Tokyo marathon
Mar~Jun: worked part-time at CIER, trip to Bali
Jul~Aug: trip to Japan again. Say goodbye to friends in Taiwan
Sep~Dec: busy studying at TI, finished Berlin marathon
2009 will be as challenging, and...yes, let's just have fun.
---
Jan 3.
2 weeks of vacation is ending, and it's time to come back to the real world. Courses to be taken in block III will be Finance I (asset pricing), Micro III (information economics) , and Econometrics I.
---

Jan 5.
買了個3人份電鍋,終於可以煮飯了
---
Jan 12.
(Weekend in Hamburg)
Saunas in Germany are mixed between sexes. But don't expect to see gorgeous cheerleaders in these places. It's quite comfortable anyway. 另外,在Maritime Museum裡面看到有介紹一個來自中國的海盜-Koxinga?? 原來是鄭成功(國姓爺), 有趣
---
Jan 17.
Usually we can still enjoy some free time in the first two weeks of a block, so I headed to the cinema and watched "Righteous Kill". I was hesitating whether to watch it or "Seven Pounds" or "Twilight". Still I chose it because of Deniro and Pacino. Pity the duo turned out not so impressive.
---

(Michael Kooren/Reuters)
Jan 18.
據說古早時幾乎每年運河都會結冰,但隨著氣候暖化,河上溜冰已經慢慢變成老年人的童年回憶...今年是12年來第一次運河結冰厚到可以溜冰,新聞的標題是:"Canal ice helps Dutch rediscover national identity",因為"With an influx of immigrants, the country has been struggling to maintain what it considers its Dutch soul"
---
Jan 21.
上學期的成績公布了,此時自然是幾家歡樂幾家愁,也有人已經瀕臨提早打包的危機(or轉機),不過在成績公布前,認真的已婚巴西男就已在週末搭上飛機,提前結束學生生活了,話說及早停損也是件好事,不過在我沒有更好的選擇之前,還是得撐下去啦
---

Jan 23.
作業不會寫,還是先來實驗電鍋食譜吧
買紅豆~~買米買醬油~~還算成功的紅豆湯~~鮭魚餐
---
Jan 26.
牛年的慶祝活動
%Test CAPM
%In cross-section, Fama and Macbeth (1973)
%Fin I Assignment 3, 1(b), Jan 2009
%Charles Chen

clear;
clc;
%---------Parameters to be changed----------

t=433; %sample period 1:t=1, period 2=193, period 3=433

%---------Load dataset-----------
T=528-t+1;
m_data=xlsread('F:/TI/Finance I/Assignment 3/data.xls');
m_A=m_data(t:528,14:25);
v_Zm=m_A(:,11); %Rm-Rf
v_Rm=m_A(:,12); %Rm
m_Z=m_data(t:528,2:11); %Ri-Rf for each portfolio

%---------Estimate beta---------
A=cov(m_A); %gives the covariance matrix
beta=A(1:10,12)./var(v_Rm); %contains the beta for each portfolio

%---------Step 1, cross sectional regression-------
m_Z=m_Z';
m_beta=ones(10,2);
m_beta(:,2)=beta;

for i=1:T;
gamma(:,i)=inv((m_beta'*m_beta))*m_beta'*m_Z(:,i); %OLS estimates for gamma
end;
gamma_0=(gamma(1,:))'; %all estimates of gamma_0(t), t=1~T
gamma_1=(gamma(2,:))'; %all estimated of gamma_1(t), t=1~T
%----Step 2---------
mean_gamma_1=mean(gamma_1);
mean_gamma_0=mean(gamma_0);
%t-test
var_gamma_0=((gamma_0-ones(T,1)*mean_gamma_0)'*(gamma_0-ones(T,1)*mean_gamma_0))/(T*(T-1));
var_gamma_1=((gamma_1-ones(T,1)*mean_gamma_1)'*(gamma_1-ones(T,1)*mean_gamma_1))/(T*(T-1));
t_gamma_0=mean_gamma_0/sqrt(var_gamma_0); %gives the t-value
t_gamma_1=mean_gamma_1/sqrt(var_gamma_1); %gives the t-value
---