Principles of Financial Computing Course
Principles of Financial Computing
Time: 9:10 ~ 12:10 Wednesday (Spring Semester)
Location: Room 107 of the CSIE Building
On Wall Street, being right on the fundamentals and
wrong on the timing is the same as just being wrong.
Jonathan Cohen
Where is the risk management at J.P. Morgan Chase?
 Bloomberg News, January 16, 2002
10. Of course, I make a lot investing.
I only teach
so I can help young people.
 Top Ten Lies Finance Professors Tell Their Students
 References
 F. J. Fabozzi,
Fixed Income Mathematics: Analytical & Statistical Techniques. 4th ed. McGrawHill, 2006.
 F. J. Fabozzi and Steven V. Mann (Ed.),
The Handbook of Fixed Income Securities. 8th ed.
Irwin, 2012.

J. C. Hull,
Options, Futures, and Other Derivatives. 9th ed. PrenticeHall, 2014.
 R. Jarrow
and S. Turnbull,
Derivative Securities.
2nd ed.
SouthWestern, 1999.
 S. N. Neftci, Principles of Financial Engineering. 2nd ed.
Academic Press, 2008.
 P.
Ritchken,
Derivative Markets: Theory, Strategy, and Applications.
HarperCollins, 1996.
 S. M. Sundaresan,
Fixed Income Markets and Their Derivatives. 3rd ed.
Academic Press, 2009.
 Articles

The Financial Modelers' Manifesto

Goldman Sachs Is a Tech Company (April 12, 2015)

The Medallion Fund, an EmployeesOnly Offering for the Quants at Renaissance Technologies, Is the Blackest Box in all of Finance (November 21, 2016)

The Most Indemand Programming Languages on Wall Street (January 28, 2015)

The Top Ten Technology Skills at BAML, Barclays, Credit Suisse, Citi, Goldman Sachs, JPMorgan, Morgan Stanley and UBS (April 16, 2015)
 Internet Resources
 Teaching Assistant(s)
 Software
To Students,
You will learn a perhaps different perspective on finance,
especially as it pertains to pricing and software engineering.
Our emphasis on computation should add a new dimension and
toolbox to your existing knowledge and financial sense.
(But see Enrollments below.)
It is your
responsibility to learn to write in highlevel programming
languages. We cannot impart that skill in the class.
If the mathematics proves hard going, you are expected to
fill in the gap by selfreading. The technicalities are not
beyond a motivated graduate student's reach.
The major topics covered in the course, time permitting, are listed
below for your reference.
 Time value of money
 Bonds, mortgages, and annuities
 Duration, convexity, and
immunization
 Yield curve,
forward rate, and spot rate
 Option pricing theory
and its wideranging applications
 BlackScholes analysis
 binomial option pricing model (BOPM)
 Futures,
forwards, and other derivatives
 The combinatorics of random walks

Martingale,
Brownian motion,
stochastic calculus, and
Ito integral
 Riskneutral valuation
 Risk management
 Fixedincome securities with embedded options
and interest rate derivatives
 Mortgagebacked securities (MBS)
 Numerical methods
 Monte Carlo methods
 Variance reduction (efficiencyimproving) techniques
 Leastsquares technique
 QuasiMonte Carlo method
 Solving partial differential equations
 Yield curve fitting
 GARCH models
 Interest rate models and
calibration

2018.02.28

2018.03.07

2018.03.14

2018.03.21

2018.03.28

2018.04.04
& 1st assignment due

2018.04.11

2018.04.18

2018.04.25

2018.05.02
& 2nd assignment due

2018.05.09

2018.05.16

2018.05.23

2018.05.30
& 3rd assignment due

2018.06.06

2018.06.13

2018.06.20
& 4th assignment due
Programming Exercises
Homework should be turned in on time. No late
homework will be accepted without legitimate reasons.
There will be four to six programming
assignments.
Treat each homework as an examination.

You are expected to write your own
codes and turn in your source code.

Do not copy or collaborate with fellow students.

Never ask your friends to write programs for you.

Never give your code to other students or publish your code because it may be copied
and you in turn may be suspected of copying other's code!
The graders will not attempt to sort out who the original coders are because we are not running a court here.

Do program carefully.
It is much more important to get the numbers right than to get a
pretty user interface running.

Write a program to price the American put and its delta based on the CRR binomial tree.
Inputs: (1) S (spot price), (2) X (strike price), (3) r (riskfree interest rate), (4) s (volatility), (5) T (years), (6) n (number of periods). Output: put price and delta.
For example, assume S = 100, X = 105, r = 0.03, s = 0.25, T = 1, and n = 300. Then the put price is 11.4336 and the delta is −0.5066.
Please send your source code, executable code, and a brief explanation file if necessary (e.g., how to run it?) using the CEIBA system (CSIE 7134) before 08:00 AM of April 4, 2018.
No late submissions will be accepted. Compress your files into a single file and name it StudentID_HW_1 for easy reference. Example: R91922054_HW_1.
Even if you need to make an appointment with 盧政良 for demonstration because of the unusual software you use, you still have to submit the files before the deadline.

Write a program to price the European arithmetic averagerate knockin call on a nondividendpaying stock; calculate its delta too. Note that the payoff is the same as the Asian call, and the knockin barrier is triggered by the average price too.
Inputs: (1) S (spot price), (2) X (strike price), (3) H (barrier price), (4) T (years), (5) r (riskfree interest rate), (6) s (volatility), (7) n (number of periods), (8) k (number of buckets). Output: call price and its delta.
For example, assume S = 100, X = 100, H = 110, T = 1, r = 0.05, s = 0.30, and n = 200, and k = 100. Then the call price is 8.3514 and its delta is 0.5726.
Please send your source code, executable code, and a brief explanation file if necessary (e.g., how to run it?) using the CEIBA system (CSIE 7134) before 08:00 AM of May 9, 2018.
No late submissions will be accepted. Compress your files into a single file and name it StudentID_HW_1 for easy reference. Example: R91922054_HW_1.
Even if you need to make an appointment with 盧政良 for demonstration because of the unusual software you use, you still have to submit the files before the deadline.
Enrollments

Nonprogrammers will be strongly discouraged
as the probability of passing this course is slim,
if possible at all.

It is not impossible to pick up programming skills before
the first assignment.

Financial knowledge is a plus, but again it can be picked up if you are motivated.