This section contains resources and links to outside miscellaneous materials that I found useful when doing research or programming.

Links in the External Programming Resources section go to sites and blog posts that do not belong to me. Links in Workflow section go to the official sites for the corresponding apps.

You can find my teaching materials in the Teaching page. For a list of teaching and research assistantship experiences, please see the CV section.

Please let me know if any links are dead/outdated. You can email me at


  1. Chicago Booth PhD Student Website Template: This links to my BitBucket repository that contains instructions and sample files to set up a website, following the template and color scheme of Chicago Booth. The site scales with screens of different sizes.

  2. Optimal Trading Execution Code for Minimizing Execution Cost: This script contains the functions for the base (parametric with closed form solutions) version of the optimal trading execution according to Bertsimas and Lo (1998). It shows how optimal trading should depend on how aggressive other market participants are, how noisy the fundamental information is, and other fundamental parameters. All parameters are defined according to the original paper.

  3. I also have some intro to R slides, intro to R memory management, and some sample code:

    1. Overview

    2. Misc

    3. Basics

    4. Data

    5. Graphics/Stats

    6. Loops

    7. Advanced (functions)

    8. dplyr

    9. ggplot

    10. Sample interactive plots

  4. Script downloading Useful Packages in R.

  5. Probably Overly-Simple Data Science Tips.


External Programming Resources

These range from basic to intermediate R, and do not belong to me.

  1. R Tidyverse Style Guide provides great guidelines, but I also adopt the deviations from Google's style guide (fork of the Tidyverse Guide).

  2. Tidyverse Data Science Course Textbook from John Hopkins University.

  3. Why R?: Great slide deck on the power of R with great graphics and visualizations written in R.

  4. New to R? Try Swirl! : This website contains lots of useful tutorials.

  5. Tidy Finance with R: Free e-book with sample code on using tidyverse to do quantitative finance.p

  6. R: Intro to data.table Package: Once you get past the learning curve, you will not go back to base R.

  7. R: The apply function family: R users should know about this. However, to apply functions by groups (rather than by rows), use data.table or dplyr.

  8. R: Example plots using ggplot2 with code: Shows some of the capabilities of ggplot.

  9. R: ggplot2: slides by Hadley Wickham.

  10. R: ggplot2 Visualization Gallery: Useful examples for inspiration.

  11. R: ggplot2 Extension Visualization Gallery: Useful examples for inspiration using extensions to ggplot2.

  12. R: Benchmarking data.table vs. pandas vs. dplyr: I have gotten into lots of discussion about whether python or R is faster. The answer: It doesn't matter much for small data, but data.table seems to win for larger data sets.

  13. R: 11 Tips to Handle Big Data: A short, incomplete list but useful nonetheless. Turns out R isn't great at handling big data (where big data:= data > 1 TB).

  14. R for Big Data: A cool mindmap of useful R packages for managing and analyzing big data. I would personally add ggplot2 into the Visualization category.

  15. R: Compressing Data Files to Save Space: This saved me an unbelievable amount of space when working with TAQ data.

  16. R: Stargazer Cheat-sheet: In case you need to customize output.

  17. R: Tips with data.table: Fairly advanced looping and editing data in memory.

  18. R: Preparing your Own Package and Shiny Apps: Some tips and instructions on unit testing for packages prior to pushing to GitHub and submitting to CRAN.

  19. R: Different file formats: A blog covering rds, feather, fst file formats for fast read/write and interoperability between R and Python.

  20. R: Visualization from VIS 2017 Conference: Good examples of data visualization with R for inspiration.

  21. Data Handling: LocustDB > Clickhouse. Also an overview of Online Analytical Processing (OLAP).

  22. Primer on Advanced Text Analysis: Guide on considering different text similarity measures that can take into account the semantics and grammar in addition to simple word similarity.

  23. Visualizing Transition Matrices: Snippet showing how to visualize transitions with different features. Does not use graph theory.

  24. Introduction to Git for Beginners, Grant McDermott's Version Control Slides with GitHub, and Jenny Bryan's Introduction

  25. R: What They Forgot (wtf): For intermediate R users who are mostly self-taught. More advanced topics like code maintenance, library maintenance, version maintenance.

  26. Misleading Visualization from the Economist: 40 Examples from one of the Economist's data journalists, showing both the original (misleading) and better plots.

  27. Data Visualization Lesson Materials from Dr. Andrew Heiss at Georgia State University: Great e-book, lesson plan, assignments, sample code.

  28. Data Science Bootcamp for High Schoolers: by David Kane.


  1. Mendeley: Having used it since I started grad school, I can't imagine what a pain it must be to maintain a huge library of PDF's without this organizer.

  2. LyX: For doing all things LaTeX (although more recently I tend to use PowerPoint more for slides).

  3. Slack: For an organised chat group where we can share files.

  4. Asana Project Management: I learned about this from Matt Gentzkow and Jesse Shapiro's Research guide. This has been immensely useful for collaboration. The integration with Google Calendar is particularly useful for me. However, like Slack, I feel this works better for more stable research/co-author teams.

  5. BitBucket: For writing and code documentation, particularly for team collaboration. Also useful for storing different iterations of output.


Really random stuff that are nice short breaks from work.

  1. Course and Textbook on writing research by Econscribe. Disclaimer: I went through this program as well.

  2. Online Textbook on Data Visualization: by Claus Wilke, with everything built in R and source code available through GitHub.

  3. Tips for Economists: A collection of tips from various great sources all collected in one place.

  4. Language-Agnostic Coding Advice for Economists by Ljubica Ristovska, from a presentation at the Harvard Economics Professional Development workshop. Spring 2019.

  5. A very useful, free Econometrics Textbook by Scott Cunningham at Baylor University. Comes with a Spotify playlist of accompanying rap!

  6. Open Source Etiquette: Best be nice; especially when help is needed.

  7. Best Figures in Economics: Curated best pictures in economics research (credit to Paul Goldsmith-Pinkham at Yale and others.)

  8. R for Data Journalism: Useful packages, examples, and tips to integrate data into articles.

  9. A Bunch of Spurious Correlations: Do you find yourself coming up with stories for them?

  10. Typing Test - Check Your Speed!: Comes in handy for checking how quick students can type, which affects the speed to go over code in class.

  11. Library of Statistical Techniques (LOST): Open-sourced e-book on statistical techniques, created by Nick Huntington-Klein at Seattle University.

  12. Econometrics Resources for R (and Stata) from Nick Huntington-Klein at Seattle University. The Causal Inference Animated Plots are particularly cool.

  13. Lecture Notes for PhD Economics. An amalgamation of different course syllabus and lecture notes.

  14. AFA Presidential Addresses from 1972 through 2026, compiled by Malcolm Wardlaw.

  15. Financial History Resources: by Investor Amnesia.

  16. A tool to split rent, a bill, or even workload.

  17. Your life in weeks from waitbutwhy.

  18. Guideline and introspection framework on picking a career, from waitbutwhy.

  19. How to pick a career, and why it is so important, from 80,000 Hours.

  20. Academic Economics Journal Turnsaround Times.

  21. Emoticons for Google Sites.

Conference Discussion Slides

I post my conference discussion slides here. Please contact the related authors directly for the paper or the presentation slides. Shown in reverse chronological order. In general, I try to send the slides to the presenters at least one day before the discussion.

  1. December 2022. FIRN. Understanding the role of dealer-client relationships in bond trading by Simon Jurkatis, Andreas Schrimpf, Karamfil Todorov, Nicholas Vause.

  2. December 2022. ANU RFAS: More Debt More Leverage? by Antje Berndt, Bruce Grundy and Yue Wang.

  3. November 2022. PRN Tokyo. CompNet Discussion.

  4. October 2022. CAFM. Does Divergence of Opinion make better minds? Evidence from Social Media.

  5. May 2022. CityUHK Conference for Fintech, AI, and Big Data in Business: Technology and Cryptocurrency Valuation by Yukun Liu, Jinfei Sheng, Wanyi Wang.

  6. January 2022. AFA: Investor Protections and Stock Market Participation: An Evaluation of Financial Advisor Oversight by Juhani Linnainmaa, Brian Melzer, Alessandro Previtero, Stephen Foerster.

  7. July 2021. CICF: Common Ownership, Competition, and Top Management Incentives by Miguel Anton, Florian Ederer, Mireia Gine, Martin Schmalz.

  8. November 2020. Asia-Pacific Corporate Finance Online Workshop. Fintech Adoption and Household Risk-Taking by Claire Yurong Hong, Xiaomeng Lu, Jun Pan.

  9. November 2020. Singapore Scholar Symposium: Is Carbon Risk Priced in the Cross-Section of Corporate Bond Returns? by Tinghua Duan, Frank Weikai Li, Quan Wen.

  10. May 2020. ABFER: FinTech Platforms and Mutual Fund Distribution by Claire Yurong Hong, Xiaomeng Lu, Jun Pan.

  11. June 2019. CUHK-Review of Corporate Finance Studies Conference: Court Congestion and Economic Fragility by Dimas Fazio, Thiago Silva, Janis Skrastins.

  12. May 2019. ABFER: Financial Technology Adoption by Sean Higgins.

  13. May 2019. ABFER: Do Tokens Behave Like Securities? An Anatomy of Initial Coin Offerings by Evgeny Lyandres, Berardino Palazzo, Daniel Rabett.

  14. 2019. 4th Productivity Research Network Conference: Which Firms Get Credit? Evidence from Firm-Level Data by Gabriela Araujo and Jonathan Hambur.

  15. 2019. 4th Productivity Research Network Conference: Industry- and State-Level Value Added and Productivity Decompositions by Shipei Zeng, Stephanie Parsons, Erwin Diewert, and Kevin Fox.

  16. 2018. SFS Cavalcade Asia Pacific: Credit Risk Propagation along Supply Chains: Evidence from the CDS Market by Senay Agca, Volodymyr Babich, John Birge, Jing Wu.

  17. 2018. 2nd Productivity Research Network Conference: The Redistributive Role of Automation by Giorgio Presidente.

  18. 2018. 2nd Productivity Research Network Conference: Is Informal Credit Supplement or Complementary for Financing SME's Investment During the Crisis? Evidence from Vietnam by Long Q Trinh & Peter J Morgan.

  19. 2018. SMU Finance Summer Camp: Sentiment, Limited Attention and Mispricing by Xinrui Duan, LiGuo, Frank Weikai Li, Jun Tu.

  20. 2018. NTU Finance Conference: Regulation of Charlatans in High-Skill Professions by Jonathan Berk & Jules van Binsbergen.

  21. 2018. 29th NBER-EASE: Corruption, Political Stability and Efficiency of Government Expenditure on Health Care – Evidence from Asian Countries by Nobuo Akai & Zhenyu Cui.

  22. 2017. RMI Conference: Industry Competition, Credit Spreads, and Levered Equity Returns by Alexandre Corhay.