Winter 2018

Meeting agenda

Apr 6, 2018

  1. Fermi Question

  2. SecurityManager, a simple Java8 app. Requires bonds.txt

Mar 23, 2018

  1. Fermi Question: What number of US dollar coins would you have to lay on the surface area of Manhattan in order to fully cover it?

  2. A simple game of cards: problem 8.21 from Quant Technical Interview Questions.

  3. More Java collections: Maps, and HashSets.

  4. Coming up next: Java interfaces, generics

  5. Market Review: Trump announced “first of many” tariffs, China responded. How will this effect the markets?

Mar 9, 2018

  1. Fermi Question: what is 4 to the 435th (as a power of ten)?

  2. Friends flipping coins, problem 3.21 from Quant Technical Interview Questions. If you need to install Java and Eclipse, see last meeting’s instructions.

  3. Some important Java collections: Lists. See HRList for source. Maps, and HashSets. Along the way, learn a little bit about Java interfaces.

  4. Market Review

Feb 16, 2018

  1. Fermi Question: what is the weight of a bowling ball, measured in drops of water?

  2. Introduction to Java and Eclipse.
    • You may need to install the JDK (Java Development Kit).
    • Install the latest version Eclipse.
    • Workflow for beginning of any project: Create Java Project, create package, create first class (e.g. HelloWorld).
  3. HackerRank Java Intro reading via Scanner.

  4. We implement the Alex and Beth Coin flipping problem from last week in both Python and Java, and compare the implementations.

  5. Market Review

Feb 9, 2018

  1. A question from Fermi Questions.

  2. Alex and Beth are flipping coins. See problem 3.20 from Quant interview book.

  3. Counting rectangles: Project Euler problem 85.

  4. Market Review

Feb 2, 2018

  1. A question from Fermi Questions.
  2. Imagine it’s snowing…see problem 13 from the Quant interview book.
  3. Coding warmup: Sometimes, you just need more precision. Try Project Euler problem 80. But before you code it, put on your Fermi hat, and estimate the answer.
  4. A wrap-up on what we wrote last week for tranched credit indices.
  5. Market Report. How did Tesla raise money this past week?

Jan 26, 2018

  1. Brainteasers: How many footballs are needed to fill Michigan Stadium? How many cows are in Mexico? How much of the water from Archimedes’ famous bath is in my coffee? Practice using Fermi Questions.

  2. Coding warmup: Project Euler problem 81. Does this look familiar?

  3. We’ve spent a couple of weeks talking about modeling a set of variables that are jointly normal with identical pairwise correlation, and we built a simulation of it. Let’s use it to build a simple tranched credit index. For more depth on tranched credit indices, see this BIS article or this more entertaining FT report (requires free signup with Alphaville). And here is the code we wrote for tranched credit indices

  4. Market Report. What did Mnuchin and Trump say about the dollar? And is it time to sell stock?

Jan 19, 2018

  1. Warmup: Project Euler problem 50. Solution is here.

  2. Recall the problem from last time: We built a simulation of $n$ correlated assets, and via Monte Carlo simulation in Python, we found an empirical distribution of the number of assets that had negative return. Why is the number of assets that have positive return uniformly distributed? Try to figure it out on your own. But if you must, solution is here, starting on page 3.

  3. Market Report.

Jan 5, 2018

  1. Wrap up Python implementation of the bag with 3 red, and 3 black marbles (see previous week). How big can you scale up your solver?

  2. Student presentation: Solution to the minmax correlation problem from Jane Street? Solutions presented by Patrick Lu and Jiahua Gu.

  3. Consider problem 5.2 from the Quant Technical Interview Questions. We built a simulation of n correlated assets, and via Monte Carlo simulation in Python, we found an empirical distribution of the number of assets that had negative return. Challenge for next time: explain the distribution for the case where pairwise asset correlation is 0.5.

  4. Market Report: Bitcoin continues to be in the news.