In Preparation For Quantitative Trading Interviews
June 21, 2020 | Updated June 28, 2020
This series is mostly for my own self-documentation purposes as I prepare for recruiting at the end of summer. I’ll be updating this page with 5 new problems/brain teasers and solutions every day to keep myself accountable. These problems will come from a variety of sources, including A Practical Guide to Quantitative Finance Interviews, Math Stack Exchange, and UC Berkeley’s EECS 126 course notes. You can skip to my week one review here or navigate to a specific day using the legend below. Thanks for tuning in!
Day One: June 21
Today’s problems are relatively simple as I spent a while figuring out the LaTeX formatting on websites.
Problem 1. What is the expected number of tosses to get three consecutive heads when flipping a fair coin? Solution. Let denote the expected number of rolls for consecutive heads. If we start rolling and roll a tail first, which has probability , then the expected number of tosses will be . If we roll a head then a tail, which has probability , then the expected number will be . If we roll 2 heads then a tail with probability then expected value is . Finally if we roll heads consecutively, which has probability , then . Combining these together, we have
Solving this equation gives . We can extend this to find the expected number of rolls for consecutive heads to get :
Solving for this in general gives us the formula . A number of other solutions of this type of problem can be found here.
Problem 2. Suppose there are five pirates with pieces of gold who are voting on splitting up the gold. The most senior pirate will propose a way to distribute the gold and requires of the votes in order to pass his proposal. If he receives less than of the votes then he will be killed and the process will begin with the next most senior pirate. How will the gold coins be divided? Solution. Let’s label each pirate in ascending order based on seniority, so pirate will be most senior and will be least senior. Building this up from the two pirate case: Pirate 2 can safely propose he take all gold pieces as he constitutes of the votes. Then Pirate 1 receives nothing.
Moving on to the three pirate case—Pirate 3 knows that if his plan is voted down, then Pirate 2 can take all coins and Pirate 1 will receive nothing. All he needs to do is give Pirate 1 one coin to secure his vote. Adding a fourth pirate, Pirate 4 knows that if his plan is voted down, then Pirate 2 will get nothing. Then all he needs to do is propose to offer Pirate 2 one coin and keep the remaining 99. Now considering all five pirates, Pirate 5 knows that if his plan is voted down, Pirate 1 and Pirate 3 will receive nothing. Then all he needs to do is offer 1 gold coin each to Pirate 1 and Pirate 3, keeping the 98 coins.
We can extend this to any number pirates (so long as ). If is odd, the most senior pirate will offer Pirates each one coin and keep the remainder for himself. If is even, then he will offer Pirates one coin each and keep the remainder.
Problem 3. For a best of 3 set tennis match, would you bet on it finishing in two sets or three sets given that probabilty of winning a set is constant? Solution. Let and . To win in two sets, we can have player 1 or player 2 win two consecutive sets, giving a total probability of . In order for the match to end in three sets, one player must win 2 sets (assume thats its player 1) and the other one set. This corresponds with a probability of . Note that , implying that , so I would bet on the match finishing in two sets.
Problem 4. You break a stick of length 1 at two points uniformly. What is the probability that the three resulting pieces can form a triangle? Solution. A triangle is possible to form so long as one piece is not longer than the sum of the other two (one side ) and the difference between two pieces is not longer than the third. Consider the midpoint of the original stick: if both cuts are made on the same side of (probability , then one side will have length greater than and a triangle is not possible. Let’s say we break the stick at two points and with and and are on different side of . There is probability that is farther left on it half of the stick than is right on its half or the vice versa. In this case, we can’t form a triangle either because the difference between two sides will be longer than the third. Then only of breaks can form a triangle (my justification of this seems a bit shady and I’ll work on a more analytical solution another time).
Problem 5. Consider a game where there are two blue balls and two red balls in a bag. Each ball is removed from the bag without replacement and if you guess the color of the ball correctly you earn a dollar. How much would you pay to play this game? Solution. On your first draw you have a chance of guessing correctly. On the second draw, you have a chance of guessing correctly so long as you guess the color opposite of the first ball. By the third ball, either you have selected two balls of the same color with probability or you selected two balls of different color with probability . In the first case you are guaranteed to know the colors of the next ball and in the second you have a chance of guessing the next ball correctly. Finally, the probability of guessing correctly on the last ball is . Then calculating the expected value of the game from our individual draws:
So I would pay $ to play this game.
Day Two: June 22
Today’s problems focus on stochastic processes and Markov chains. A couple of these problems come from David Aldous’s STAT 150 page. I also came across a pretty sick compilation of different resources this morning.
Problem 1. A calculating machine uses the digits and and transmits one of these digits through several stages. At every stage, there is a probability that the digit will be changed when it leaves and probability that it will not. Suppose the machine starts at state 0. What is the probability that the machine will display the correct digit after 2 stages? Solution. We can identify the Markov chain for this problem as below:
which produces the transition matrix
We are interested in finding the probability that the state remains in state 0 after two time periods, which is indexed by the -entry of . Then,
and our desired probability is .
Problem 2. A transmitter is sending binary code (+ and - signals) that must pass through three relay signals before being sent on to the receiver. At each relay station, there is a chance that the signal will be reversed. Suppose signals make up of the messages sent. If a signal is received, what is the probability that a was sent? Solution. This was a problem in the notes of my statistics class last semester and was solved using a tree diagram. I decided to take a stochastic approach:
Let be the event that a was transmitted and be the event that is received after it passes through the third relay. We’re interested in finding , which by Bayes’ Theorem can be written as
Note that is the event that a was transmitted. Let’s consider the Markov chain for this problem:
giving us the transition matrix
We can see that and . Then, we have
Problem 3. Consider a Markov chain with two states: 1 and 2. If and . For which values of and do we have an absorbing Markov chain? Solution. An absorbing Markov chain is one in which every state can reach a state where, once entered, cannot be left. Our transition matrix looks something like this:
and are the probabilities of state changing to and vice versa. In order for a state to remain constant between time periods, we must have at least one of or be 0 so that upon reaching one of the states, we will leave it.
Problem 4. A Markov chain with the state space has the transition matrix
Starting from each state, find the expected time until absorption occurs. Solution. Clearly, absorption happens at state 3. Let denote the expected time to reach state from . Then, we have
Walking through the case of , we get the recursion in the following manner: if we go forward one time period, then there is a chance that we are still at state and our expected time is now . Similarly, we have a chance of being at state or respectively, which brings us to .
Solving these equations gives us
Problem 5. A group of quants wants to determine their average salary but want to do so such that no person has access to anyone else’s salary. Can they accomplish this, and, if so, how? Solution. The quants can do this by having the first quant taking a random number and adding his salary to it and passing that number onto the second quant. Then each subsequent quant will add their salary to the sum and tell the number to the next quant. Finally, the first quant removes the random number they chose and divides by the number of total quants for the average salary.
Day Three: June 23
I threw in some statistics questions for today’s problems in addition to the usual bunch.
Problem 1. There are N lions and 1 sheep in a field. All the lions really want to eat the sheep, but the problem is that if a lion eats a sheep, it becomes a sheep. A lion would rather stay a lion than be eaten by another lion. There is no other way for a lion to die than to become a sheep and then be eaten. When is it safe for any lion to eat? Solution. Let’s consider this similarly to Problem 2 of Day 1. If there is one lion, then it can happily eat the sheep. If there are two lions, no lion would eat the sheep for fear of getting eaten by the other lion. If there are three lions, then a lion eating the sheep would reduce us to the two lion scenario, in which no lion would eat the sheep. We can continue on this train of thought for any number and conclude that the sheep will be eaten when is odd. I actually think this problem is actually quite similar to the game of Nim or other impartial combinatorial games in the sense that we’re thinking in terms of a recursion.
Problem 2. You draw cards from a deck without replacement. What is the expected number of cards you draw before you get an ace? Solution. I had to refer to Stack Exchange for this question. You can find the solution here. I was initiallly tempted to use for a negative binomial distribution but I later realized that cards are drawn without replacement. Let be the r.v. that represents the number of draws before we draw an ace and assign each of the non-ace cards in the deck a number between and . Then we can define the random indicator variable if the card with label was drawn before any ace and otherwise. Then, we have that
From linearity of expectation, we have
Let’s consider . If we look card along with the aces, it’s pretty simple to see that . It follows that . Symmetry guarantees that all the have the same distribution so for all . Then each and .
Problem 3. You roll a die up to three times. You can decide to stop and choose the number on the die (where the number is your payoff) during each roll. What’s your strategy? Solution. Trading firms often ask these types of questions, where you have to devise an optimal strategy to a given game with uncertainty. Work backwards from the end of the game, we know that the expected value of the last roll is . Then, for our second to last roll, it makes sense to reroll if we rolled a , and just keep the money and quit if we rolled a . Then, the expected value of our last two rolls is (it should make sense why we multiply each EV by . Using similar logic to before, it makes sense to reroll if we rolled a and keep the money if we rolled a or . Then, our strategy is to roll once if we roll a or a , reroll otherwise. When rerolling, we’ll keep anything and beyond and reroll our final time otherwise.
Problem 4. A hat contains coins, of them are guaranteed to be fair and that has a chance to be double-headed. A coin is randomly chosen at random and flipped times. If it landed heads each time what is the probability that one of the coins is double-headed? Solution. Let’s use Bayes’ Theorem for this question. Let be the event that one of the coins is double-headed and be the event that a randomly chose coin lands heads on all flips. We’re interested in finding . Then,
The third bullet point can be solved for by breaking down the components of the probability of rolling all heads in the case of having a guaranteed rigged coin, which is . Then we have
So if we roll 7 heads in a row, there is a chance that there is an unfair coin in the bunch.
Problem 5. Let be i.i.d. random variables. What is the probability that ? Solution. This is a pretty simple problem that I’m using as statistics review. Lets define . Then we simply need to find . We know that is normally distributed as it’s a linear combination of standard normal variables so we only need to find the mean and standard deviation in order to find . Note that
Also,
Note that since is normally distributed about , we technically don’t even need since for . Then, .
Day Four: June 24
I didn’t get to this until pretty late this evening so I did some relatively simple questions for today.
Problem 1. In unprofitable times corporations sometimes suspend dividend payments. Suppose that after a dividend has been paid the next one will be paid with probability , while after a dividend is suspended the next one will be suspended with probability 0.6. In the long run what is the fraction of dividends that will be paid? Solution. This is another Markov chain problem so we’ll tackle it like we have before. We can call the two states of this chain State 1: “dividend paid” and State 2: “dividend suspended”. We’re provided that and , which implies that and . This gives us the transition matrix
Let be the stationary distribution for our Markov chain. In the steady state,
Then, and . Note also the be definition. Then, solving this system of linear equations gives us that and and
so of dividends will be paid.
Problem 2. If you repeatedly flip a fair coin. What is the expected number of flips you need to do in order to get a head immediately followed by a tail? Solution. We know that we’ll end with so let’s think about the tosses we make before this happens. If we roll a heads on our first try, then we have to roll only heads until we roll our final . For this reason, if there are tosses before , then it has to be of the form where . Then let be a random variable that describes the number of tosses until we get . We can flip on our first try (), or we could flip heads first and we’d effectively start the process over again (). Then,
Solving this gives us . Now define is the random variable that describes the number of tosses until we get our first . We can either roll a tails on our first try () and making it so that we have to start over again, or we can roll heads on our first try (), and all we need to do now is roll at , whose EV we just modeled with . Then,
We can plug in and find that ! Other solutions to this can be found here.
Problem 3. Let be an r.v. such that . What constant minimizes ? Solution. I thought that this would be a difficult problem but then I realized that it was extremely simple. Taking the derivative with respect to gives us
Setting this equal to makes it pretty clear that minimizes the expression. You could also solve for this by finding the that minimizes the the expression by differenting with respect to and get the same conclusion but the question specified finding a value. Also, it never hurts to plug this back in and make sure that it is actually a minimum.
Problem 4. What is the expected number of rolls of a fair die needed to get all six numbers? Solution. This was a nice brush-up on geometric distributions. It takes one roll in order to roll out first number. After our first roll, the number of rolls until a second number is rolled is geometrically distributed with success probability . Since for a geometric distribution, the expected number of rolls until a second number is rolled is . Continuing in this fashion, the number if rolls before each additional unique number geometrically distributed with probability where is the number of remaining numbers to be rolled. Then,
We can extend this further and say that for an -sided die,
Problem 5. You are on a game show, and there are 3 doors. Two of the doors conceal something worthless, and one door conceals a valuable prize. The game show host, Monty Hall, knows where the prize is. He lets you pick a door, then he opens one of the remaining two doors to reveal something worthless. He then offers you the chance to switch doors. Should you? Solution. This is the Monty Hall Problem. Lets call the doors . If you chose , you have of guessing the prize, and of guessing incorrectly. This probability of being correct does not change after the host offers to let you switch after he uncovers one of the other doors (lets say ). In allowing you to switch doors, the host is offering you the option to bet on or against whether your first guess was right with or that it was wrong . In essence, when you choose door there a chance that the prize door is either between doors or . This doesn’t change when you open up door to see nothing in it—instead it now means that there is a chance that door holds the prize so its better for you to switch.
Day Five: June 25
Today’s problems focus on betting games and review of probability distributions.
Problem 1. You play a game where you toss two fair coins in the air and win $1 each time you toss. However, if you have tossed 2 heads at least once, and 2 tails at least once, you lose all your winnings and the game ends. You can also choose to stop playing at anytime. What’s your strategy? Solution. I pulled this problem from stack exchange so you can find some solutions here. Solution 1 on this page derives the solution in a cleaner manner than the solution my friend and I came up with for this.
It takes at least 2 tosses in order to get and . Then, after we roll our first bad event we have probability to lose everything and probability to win an additional dollar. Coin tosses are independent so each toss we make after our first bad toss, we have probability of gaining an additional dollars and of losing the whole thing. So if we get our first bad toss on toss (by which we have acquired dollars), our expected value for is . To find the optimal time to stop tossing, we need to find the boundary of . That is,
Note that it’s not always optimal to stop at a total number of rolls . The whole premise of this question revolves around the first bad toss. So if (our first bad toss is on toss 1 or 2), we should keep tossing until we’ve tossed 3 times. Otherwise, we should just take our earnings and end the game.
Problem 2. A room of 100 people put their business cards in a hat, then each person randomly draws a business card. What’s the expected number of people who draw their own business card? Solution. Each person has a chance of drawing their particular name, assuming that everyone draws at the same time. Let be a Bernoulli r.v. with success being person drawing their own card. Then, from our first observation. It follows that
Then,
so we expect person to draw their own name. Note that is not a special number or anything—if we replace every instance of with in our argument, we observe that our EV is still person.
Problem 3. There are noodles in a soup bowl you are eating. You are blindfolded and told to take the ends of some noodles and connect them (each end is chose with equal probability). You do this until there are no more free ends. What is the expected number of circles created in this fashion? Solution. This is actually be solved in a stochastic manner. Let be a random variable that describes the number of circles that are made from connecting noodles. Starting from noodle, you must connect the two ends together, forming circle. For noodles, there are 4 ends and you must make 2 connections, forming possible connections. Of these, connections will connect the same ends of the same noodle together, giving us noodle and circle. The other four combinations give us a single noodle. Notice that we’re only doing so much as to connect two of the ends, which brings us to a case. Then the expected number of circles for is
Solving this gives us that . Moving on to , we have choices for connections. Of these, choices will yield circle and noodles and the other will simply yield noodles. Then, we have
Solving this yields . There’s a pretty clear pattern that’s starting to appear. If we extend it to noodles in general, we have that
Plugging gives us (I cheated a bit and used a calculator to find this sum).
Problem 4. Two archers shoot at a target. The distance of each shot from the center of the target is uniformly distributed from 0 to 1, independently of the other shot. What is the PDF (probability density function) of the distance from the center for the losing shot? Solution. Let be the distance from the center of the shot by Archer 1 and be that of Archer 2. Let be the distance from the center of the losing shot. As and are uniformly distributed over , we have that for all ,
Then, as and are independent,
When we differentiate we then get the pdf of
This is an interesting problem that I haven’t seen before. I’ve seen another form of the question that asks for the pdf of the winning shot, which is a bit more tricky as would be defined as and it wouldn’t be clear that we could use the since the minimum requires only one of them to satisfy the condition.
Problem 5. Let be independent random variables uniformly distributed on . Find ? Solution. Like Problem , I’m going to try to start from the case and try to build up a solution. Clearly, by definition. is the probability that and , distributed over the unit square, lie on or below the line that separates the lower left and upper right triangles so . Moving on to , describes the probability that the set of points in the unit cube all lie in the bottom-left-front triangular pyramid (probability . Again, a bit of a pattern is showing up: it seems like . We can confirm this with induction of a more general case, that for
For simplicity sake, I’ll call . We’ve already proved the base case earlier in our solution. Then suppose our assumption holds for , then for :
and thus our claim is proved by induction. This last part does require a bit of massaging but should be clear after applying a bit of calculus/analysis. Then, it follows that
Day Six: June 26
Most of the questions today come from A Practical Guide to Quantitative Finance Interviews and past interview questions.
Problem 1. Bond will default next year with and bond will default next year with . What is the range of probability that at least one bond defaults and what is the range of their correlation? Solution. The upper bound on the the probability of at least one bond defaulting takes place when defaulting and defaulting are mutually exclusive, in which case,
For the lower bound, we consider the case when and are completely dependent events. Then,
Then . To calculate the correlation between and , let and be indicator variables for the events that and default and let be their correlation. We have that and . Since and are Bernouli random variables, we have that . Similarly, . We have that
Plugging in the bounds of , we have .
Problem 2. What is the expected number of dice rolls until we get two ’s in a row? Solution. This is similar to our expected value of problem. Let be a random variable that describes the number of throws to get two sixes in a row. There are three scenarios that we should consider:
Case 1: throwing two consecutive sixes ()
Case 2: throwing a six on the first toss and a different number on the second ()
Case 3: nothing throwing a six on the first toss ()
In Case 1, were are done and our ev is . In Case 2, rolling a different number means we’re exactly back where we started and our ev is since we “wasted” our first two throws. In Case 3, we’re back where we started and we’ve only used up the first throw, giving expecation of . Then,
Solving this gives us so we expect to roll times total in order to get our first string of consecutive ‘s.
Problem 3. You flip a weighted coin with four times. Every time that a heads is rolled wins and every time a tails is flipped, wins . What is the expected value of a bet where if A wins overall, you get his winnings, if B wins overall you get 0. Solution. This questions is from DRW’s Glassdoor page. It’s a bit unclear what the question means by expected value of a bet so I’ll be solving for the expected value of the game. Additionally, since it doesn’t state what happens if and tie, I’ll be increasing the number of rolls to five. Note that wins if we roll heads and wins if we roll heads. Let be a Bernoulli random variable with success being flipping heads (). Then, follows a binomial distribution and we can caculate the expected value of the game as follows:
Then, the expected value of the game is , so it would make sense of us to play is so long as our cost of playing is less than .
Problem 4. You’re presented with two empty jars and marbles on a table, of which are white and the other are black. You are to put all of the marbles into the two jars in any way you choose. I then blindfold you and shakethe jars up to ensure good mixing and rearrange the placing of the jars randomly. You can then request the left-hand jar or the right-hand jar. You get to choose exactly one jar and and can withdraw at most one marble from the jar and you do not get a second chance if you are unhappy with your choice. How many of each color marble should you put in each jar to maximize the probability your blindfolded random draw obtains a white marble? Solution. At first I thought that both jars needed to contain marbles, in which case it didn’t matter how we distributed the black and white marbles. Due to the mixing and the randomization of which of the two jars you’re picking, you have of picking either jar. Say you have white marbles in one jar and in another jar. Then, your probability of picking a white marble is which gives a chance of picking a white marble no matter how you distribute them.
I then realized that we could distribute the marbles however we’d like, meaning that we could keep at little as marbles in one jar and all in the other jar. Instead of divising a function to describe how to optimize for this problem I decided to approach it with several cases. We know we have of choosing either jar. We want to maximize the chance of picking a white marble regardless of which jar you choose. This can be done by placing white marble in the first jar, and the other marbles in the second jar. This ensures that we have of picking a white marble. Just testing out some other placements of marbles it’s clear that this is the optimal configuration. Approaching the problem analytically, we simply need to find the maximum of the function
where is the number of white marbles we place in the first jar and is the total number of marbles we place in the first jar.
Problem 5. I will spin a fair roulette wheel with five sections. Four of the five sections pay and the other pays . If the cost is per spin should you play the game? What if you can only spin once and the payoffs to enter and cost per spint were multiplied by ? Solution. This is a really simple EV problem. Let be the payoff of playing the game. Then,
When you have the option of playing as much as you like, it makes sense to play the game as the actual payoff converges to the expected payoff in the long run so we expect to make profit every times we play.
If we can only spin once, our EV for the game doesn’t change. However, this scenario guages how risk-averse we might be: of the time we expect to lose cents, and of the time we expect to win beyond what we spent to play the game. Since the cost of the game is relatively low, I would probably still take the bet. However, when the numbers are scaled up by , we either have a net loss of or net gain of . While the problems hasn’t changed in nature, the risk of playing the game has increased dramatically, and depending on my initial amount of money, I would be much more cautious when playing.
Day Seven: June 27
Todays problems focus on betting games and expected value.
Problem 1. Suppose there are pirates who are placing their treasure in a safe. As a democratic group of pirates, they have decided that any majority of the pirates should be able to open the safe. They decide to implement this by placing several locks on the the safe, which all need to be openned to open the safe. Each lock can have multiple keys but each key can only open one lock. What is the smallest number of locks needed to secure the safe in this manner? In addition, how many keys should each pirate carry if each pirate can carry multiple keys? Solution. Note that any combination of pirates should not be able to open the safe. That is, there must be a unique lock for every combination of pirates such that none of these pirates have the key to this lock. Then, there should be a total of locks. Each of these locks should have copies in order maintain the majority criterion and these keys should be evenly distributed between all pirates, giving us keys per pirate.
Problem 2. There is a population of ants that for each time period has of dying out (E), of staying the same (S), and of doubling in size. Is the ant population likely to die long term? Solution. This is a spinoff of a question regarding amoeba populations from A Practical Guide. Lets call the probability that the ant population goes extinct. We can break this down into the different conditional probabilities: , , and . since the state is the same as the beginning state, (assuming each additional population of ants is independent to one another) as there are now two populations of ants, and . Then,
Solving for this gives us that so it is quite likely the ant population dies out. The question doesn’t clarify what it means to double in size long term and , , and are not collectively exhaustive events so it’s quite tricky to calculate the other two outcomes. One could potentially use a Markov chain to simulate what happens in the future
Problem 3. A gambler starts with an initial fortune of dollars. On each successive game, the gambler wins white probability , , or loses with probability . He will stop if he ever accumulates dollars or loses all his money. What is the probability that he will end up with dollars? Solution. This is the gambler’s ruin problem. Let denote the probability that the gambler’s fortune will reach instead of for each initial state . Note that and . The next after is going to be with probability or with probability . Then, . As , we have that
We can then build an expression for from the ground up starting from :
Note that the terms in the brackets is just a finite geometric sum. Applying this to ,
We can manipulate this to solve for through :
Given even odds of winning and losing each round, our probability of coming out with dollars is proportional to our beginning state. What’s interesting is that even if we decrease the odds of success slightly, say changing it from to , there is a drastic decrease in the ability to come out with dollars versus losing everything. I hope to include a Markov chain version of this problem with specific constraints and work through that sometime soon.
Problem 4. Suppose you roll a dice and are paid the value that you roll. If you roll a you can roll again and if you roll the game ends. How much would you pay to play this game? Solution. Let be the payoff of playing this game. There is that you roll a losing number and your payoff is what you rolled the first round. In this case, our expected value is the average of . Also, there is a chance where we roll a or a and have the chance to roll again, bringing us back to our initial state. Then, we have
Solving this gives us . Then I would pay up to to play this game.
Problem 5. Your recruiter loads two bullets separated by one chamber into a 6-chamber revolver. He then spins it,points it at his head and shoots but survives since he fired an empty chamber. You’re given the gun and must fire at your head but you may choose to spin the barrel first or take the shot directly. Unfortunately, another bullet will be loaded into the gun if you decide to spin. Do you spin the barrel? Solution. If we spin, we have a chance of dying as we have randomized the location of the next shot relative to the chambers. If we don’t there are five chambers left, two of which have bullets. However, these bullets are staggered by one chamber so the number of configurations of the two bullets is limited. Let’s number the chambers in order from through . Let’s say that the bullets are in chambers and . Given that your recruiter survived, he must have fired from chambers or , which occur equally likely. If he fired chamber or , then the next shot will have a bullet and if he fired or , then the next shot will be safe. Then you have chance of dying if we shoot immediately, which is equal to the chance of dying if we decided to spin. Then it does not matter whether we spin or not since we have an equal chance of surviving the next round regardles of how we act.
Bonus. You have red cards and blue cards. I flip them over one at a time. The probability of flipping a particular color is proportional to the amount of those colored cards left. You start with and every flip you can bet some proportion of your money on red or blue. If you win the bet, you gain twice your bet, but if you lose the bet, you gain nothing. What is the strategy that maximizes expectancy and minimizes variance? Solution. I’ll be typing up the solution later!
Week One Review
This week, I covered mostly probability games, Markov chains, and some combinatorial brain teasers. I realized that I still have a lot intution to build on how analytically to approach each problem, which I’ll keep in mind in future weeks. I hope to be posting some more challenging problems as well, since the ones I’m currently working on are not overly difficult. Next week I hope to include some topics on options and market making and reviewing some statistics and algorithms to add some variety to the problems I’ve been doing. I’m also doing readings on game theory so hopefully I’ll be able to include some more nuanced questions on winning strategies and other related topics.
Thanks for tuning in and below are a couple of resources that I used this week that might be helpful:
- A Practical Guide to Quantitative Finance Interviews
- Quant/FM/Data Science Compilation
- Linear Algebra, Probability, and Financial Math
- General Problems & Brain Teasers
- Heard on the Street: Quantitative Questions from Wall Street Job Interviews