Code Samples.

This page contains a sample of some coding that I did for various research projects, advanced statistics and econometrics courses, and courses that I have taught personally.

Python.

{Description: I wrote this library of Python Functions (e.g., using numpy and scipy) as part of a practicum for ECON 647: Optimal Portfolio Choice.}

  • Efficient Computation of Risk Parity (or Risk-Budgeted) Portfolios. [Python Code]

{Description: I composed this scientific Python program as part of a computational project on Risk Parity and Risk Budgeting for ECON 647: Optimal Portfolio Choice.}

  • Practical Calculation of Cover's (1991) Universal Portfolio. [Python Program]

{Description: I produced this elegant Python program for the sake of a quantitative research project on Cover's (1991) Universal Portfolio selection algorithm for my coursework in ECON 647: Optimal Portfolio Choice.}

R.

  • Bayesian Model Averaging (BMA). [R Script] [LaTeX Output] [Permission Required]

{Description: I wrote this R script for Chapter 2 of my Ph.D. Thesis.}

  • Hurst Exponent and Half-Life Mean Reversion. [R Script] [LaTeX Output] [Permission Required]

{Description: This R script was done for part of my research project in ECON 793: Financial & Time-Series Econometrics.}

{Description: I wrote this R code as part of a research project for STAT 644: Generalized Linear Models.}

{Description: I wrote this R code as part of the class material for FINA 6339: Quantitative Portfolio Management at Northeastern University.}

  • Complex Portfolio Optimization (Simulated Portfolios). [R Script] [LaTeX Output]

{Description: I wrote this R code as part of the class material for FINA 6339: Quantitative Portfolio Management at Northeastern University.}

MATLAB® (MATrix LABoratory).

  • Stock and Crypto Market Risk Assessment: Bootstrap and Filtered Historical Simulation. [MATLAB® Script] [MATLAB® Output] [Permission Required]

{Description: This is an updated version of the MATLAB® code that I used for my research project in ECON 743: Financial Economics II.}

  • Distribution of Log Returns & Spectral Analysis of Cryptos. [MATLAB® Script] [MATLAB® Output] [Permission Required]

{Description: This MATLAB® script was written to solve some research problems that I encountered in Chapter 3 of my Ph.D. Thesis.}

{Description: This MATLAB® program was written for the sake of data visualization in relation to Chapter 3 of my Ph.D. Thesis.}

  • Statistical Distributions (PDFs, CDFs and Beyond). [MATLAB® Script] [MATLAB® Output]

{Description: This MATLAB® program was written as a part of the class material for FINA 6332: Fundamentals of Financial Math and Financial Markets at Northeastern University.}

{Description: This MATLAB® program was written as a part of the class material for FINA 6332: Fundamentals of Financial Math and Financial Markets at Northeastern University.}

{Description: This MATLAB® program was written as a part of the class material for FINA 6332: Fundamentals of Financial Math and Financial Markets at Northeastern University.}

{Description: This MATLAB® program was written as a part of the class material for FINA 6332: Fundamentals of Financial Math and Financial Markets at Northeastern University.}

{Description: This MATLAB® program was written as a part of the class material for FINA 6332: Fundamentals of Financial Math and Financial Markets at Northeastern University.}

  • Simulated Returns, Conditional Variance, and Innovations. [MATLAB® Script] [MATLAB® Output]

{Description: This MATLAB® program was written as a part of the class material for FINA 6332: Fundamentals of Financial Math and Financial Markets at Northeastern University.}

Julia.


  • [Under Construction.]

Maplesoft Maple® .

{Description: I designed this Maple® worksheet as part of a quantitative project for ECON 647: Optimal Portfolio Choice. The worksheet explores both symbolic and numerical computations of Mean-Variance (Markowitz) efficient portfolios.}

{Description: I wrote this Maple® worksheet as part of a computational research project for ECON 647: Optimal Portfolio Choice. The worksheet focuses on symbolic and numerical computation of Risk Parity (and more generally, Risk-Budgeted) portfolios.}

SAS® (Statistical Analysis System).

{Description: This SAS® program was a vital part of my research project for STAT 644: Generalized Linear Models.}

{Description: This block of SAS® code was vital for my empirical research project in STAT 640: Longitudinal Data Analysis.}

{Description: This SAS® code was written for the sake of my applied research project in STAT 640: Longitudinal Data Analysis.}