Skip to content

PaulSoderlind/FinancialEconometrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This repository contains Julia code for a Financial Econometrics (MSc) course at UNISG.

Instructions

  1. Most files are jupyter notebooks. Click one of them to see it online. If GitHub fails to render the notebook or messes up the LaTeX in the Markdown cells, then use nbviewer. Instructions: try to open the notebook at GitHub, copy the link and paste it in the address field of nbviewer.

  2. To download this repository, use the Download (as zip) in the Github menu. Otherwise, clone it.

  3. To get started, please check the Ch00_HowToUse.ipynb notebook first.

On the Files

  1. ChapterNumber_Topic.ipynb are notebooks organised around different topics. The chapter numbers correspond to the lecture notes (pdf), where more details are given (and the notation is explained).

  2. Most statistical/econometric functions are organised in local modules, typically loaded at the top of the notebooks. The source code is in the src subfolder.

  3. The pdf file contains the lecture notes.

  4. The folder Data contains some data sets used in the notebooks.

  5. The plots are in png format. If you want sharper plots, change default(fmt = :png) to default(fmt = :svg) in one of the top cells.

  6. The current version is tested on Julia 1.11.

Relation to Other Julia Econometrics Codes

The notebooks are closely tied to my lecture notes. The focus is on learning, so most methods are built from scratch. For instance, to estimate a GARCH model, the notebook builds the likelihood function, calls on a routine for optimisation (for the point estimates) and then differentiation (for the standard errors).

See Michael Creel's code for a similar approach (also focused on teaching)

The following packages provide more convenient (and often more powerful) routines:

GLM.jl for regressions

CovarianceMatrices.jl for robust (heteroskedasticity and/or autocorrelation) covariance estimates

HypothesisTests.jl for testing residuals and distributions

ARCHModels.jl for estimating ARCH and GARCH models

KernelDensity.jl for kernel density estimation

QuantileRegressions.jl for quantile regressions

About

Financial Econometrics (MSc, Julia code)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published