Skip to Content
Analysis of Financial Time Series, Third Edition
book

Analysis of Financial Time Series, Third Edition

by RUEY S. TSAY
August 2010
Intermediate to advanced
701 pages
18h 7m
English
Wiley
Content preview from Analysis of Financial Time Series, Third Edition

Appendix: Some SCA Commands

In this appendix, we give the SCA commands used in Section 2.9. The 1-year maturity interest rates are in the file w-gs1yr.txt and the 3-year rates are in the file w-gs3yr.txt.

-- load the data into SCA, denote the data by rate1 and rate3.

input year,mom,day,rate1. file ‘w-gs1yr.txt’

--

input year,mon,day,rate3. file ‘w-gs3yr.txt’

-- specify a simple linear regression model.

tsm m1. model rate3=b0+(b1)rate1+noise.

-- estimate the specified model and store residual in r1.

estim m1. hold resi(r1).

-- compute 10 lags of residual acf.

acf r1. maxl 10.

-- difference the two series, denote the new series by c1t

    and c3t

diff old rate1,rate3. new c1t, c3t. compress.

-- specify a linear regression model for the differenced data

tsm m2. model c3t=h0+(h1)c1t+noise.

-- estimation

estim m2. hold resi(r2).

-- compute residual acf.

acf r2. maxl 10.

-- specify a regression model with time series errors.

tsm m3. model c3t=g0+(g1)c1t+(1)noise.

-- estimate the model using the exact likelihood method.

estim m3. method exact. hold resi(r3).

-- compute residual acf.

acf r3. maxl 10.

-- refine the model to include more MA lags.

tsm m4. model c3t=g0+(g1)c1t+(1,4,6,7)noise.

-- estimation

estim m4. method exact. hold resi(r4).

-- compute residual acf.

acf r4. maxl 10.

-- exit SCA

stop

Exercises

If not specifically specified, use 5% significance level to draw conclusions in the exercises.

2.1 Suppose that the simple return of a monthly bond index follows the MA(1) model ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Time Series Analysis: Forecasting and Control, Fourth Edition

Time Series Analysis: Forecasting and Control, Fourth Edition

George E. P. Box, Gregory C. Reinsel, Gwilym M. Jenkins
Quantitative Finance

Quantitative Finance

Maria C. Mariani, Ionut Florescu

Publisher Resources

ISBN: 9781118017098Purchase book