4408086: Programming in Finance

back to overview
Semester:WS 17/18
Scheduled in semester:1
Semester Hours per Week / Contact Hours:28.0 L / 21.0 h
Self-directed study time:39.0 h

Module coordination/Lecturers


Master's degree programme in Finance (01.09.2015)


This course is an introduction to programming with a focus on finance. Overall, programming is a language, which allows human beings to communicate with computers. All languages are set up by grammar and vocabulary. The grammar of programming is the design of the algorithm. The vocabulary is the syntax of the source code and the usage of implemented functions.

The first milestone of this course is the development of an algorithm. An algorithm is the roadmap between the input and output, which solves a certain problem. For example, an algorithm is able to find the shortest way between your staring point and your target. The second milestone is an introduction to R, such that the basic vocabulary is known. Then, the course will discuss some sorting algorithms. At the first stage, sorting algorithms seem not to be important for financial aspects. But the opposite is true. For example, the risk factors of Fama / French (High-Minus-Low, Small-Minus-Big, etc) are one of the central risk factors in finance. A computation of these factors without any sorting is simple not possible.

The last part of the course discusses linear regressions and portfolio management within R.

Learning Outcomes

  • Studentsunderstand the basic concepts and tools of the statistical software Rare able to do their own programming.


Lectures Method

Interactive lecture with exercises


  • Venables, W. N., & Smith, D. M. (2009). An introduction to R (2nd ed.). Surrey: Network Theory Limited.


  • Helpful sources for input:CRAN, CRAN Packages, http://cran.r-project.orgRmetrics, Rmetrics, http://www.rmetrics.org

Exam Modalities

30% Mid-term test
70% final test


14.09.201713:15 - 17:15H4
15.09.201709:00 - 13:00H4
19.09.201713:15 - 17:15H4
03.10.201709:00 - 12:15H4
06.10.201709:00 - 12:15H4
13.10.201709:00 - 12:15H2
21.11.201713:15 - 15:15H4


  • PWW-MA_Programming in Finance (WS 17/18, bewertet)