Questions On Quant
Questions On Quant
Questions On Quant
@quantclub.iitbhu
20
23
About The Club
The Quant Club, IIT BHU
I
Preface
The Quant Club, IIT BHU
In the dynamic world of quantitative finance, the roles of traders, developers, and
researchers have become increasingly vital. These professionals harness mathematics
and advanced algorithms to navigate complex financial markets.
Success in quantitative roles demands a deep understanding of mathematics, statistics,
programming, and the ability to think under high-pressure circumstances. Interviews
for quant positions are rigorous assessments where candidates must demonstrate
proficiency in these areas.
Whether you are an experienced quant or an aspiring candidate, this compilation
of problems is a valuable resource for honing your skills across various quantitative
profiles.
This carefully curated collection of problems from quant interviews and tests, as
conducted by esteemed firms like Optiver, NK Securities, Graviton, Quadeye, and
others, aims to provide insights into the skills and knowledge required in this domain.
It encompasses a broad spectrum of topics, ranging from brain teasers and puzzles
to probability, statistics, and other mathematical tools. By studying these questions,
you can gain a deeper appreciation of the expectations of top firms and enhance your
problem-solving abilities.
Consider this booklet your launchpad to refine your quantitative skills and expand
your knowledge. As you tackle these questions and grasp the underlying principles,
you will find the field of Quant to be exhilarating, honing your intellectual prowess.
II
1. Take a shuffled deck of 52 playing cards. You draw 3 cards.
What is the probability that you have at least one red and at
least one black card?
a tail is observed (HT), and the person tossing the tail wins.
What is the probability A wins, given he starts?
7. You roll four dice and multiply their values together. What is
the probability that this product is an even number?
8. You roll four dice and take the sum of the three lowest values.
What is the probability that this sum is equal to 3?
9. You(A) are the leader of a group of robbers (A, B, C, D, E) who
have stolen 100 gold bricks from the gold storage facility of a
bank. The robbers have a hierarchical order among themselves.
You are at the top tier of the hierarchy, followed by B, C, D and
E in that order. You propose a division plan, and the robbers
The Quant Club, IIT BHU
10. Cards are dealt one by one from a pack of 52 well-shuffled cards.
What is the probability that exactly ’k’ cards are dealt before
the 1st ace appears?
11. Suppose that you roll a dice. For each roll, you are paid the
face value. If a roll gives 4, 5 or 6, you can roll the dice again.
Once you get 1,2 or 3, the game stops. What is the expected
payoff of this game?
12. On average, how many rolls would it take to get two of the
same face when rolling a fair die? For example, if the run of
rolls is 12545 or 636, how many rolls would it take?
15. You roll three dice. What is the probability that two of these
The Quant Club, IIT BHU
16. A couple decide to start having children and keep having chil-
dren until they have the same number of boys and girls. How
many children do they expect to have?
19. You have a sticker album, and there are 5 different types of
stickers you want to collect to complete the album. Each time
you get a sticker, it could be any one of the 5 types. What is
the expected number of stickers you need to collect until you
have at least one of each type?
21. There are 200 kids at a Christmas party. The Santa at the party
has 100 identical chocolates with him. Since there are more
kids than chocolates, to avoid unfairness to any kid, he decided
to distribute all of the 100 chocolates so that the probability
of any kid receiving a chocolate is the same. He then picked
two groups of kids where the first group consisted of the first 8
kids and second group consisted of the last 4 kids.
a) What is the expected number of kids who get at least one
The Quant Club, IIT BHU
chocolate?
b) What is the expected value of the difference in the total
number of chocolates between the kids in the first group and
the kids in the second group?
23. John is playing a game with his friend Luke in which they
have a basketball of radius ’r’. Now John marks a small point
on this basketball and asks Luke what the expected shortest
distance of the marked point from all other points on the given
basketball (the shortest distance goes through the ball instead
of lying on its outer surface) is. Help Luke find the answer to
this question.
28. You are attending a fair. In one of the games at the fair, the
host has arranged 6 boxes on a table. The host claims that
one of the boxes has a PS5 in it, while the others are empty.
You are allowed to choose any box. Once you choose a box,
the host opens up 1 of the remaining 5 boxes to reveal that it’s
empty. Now the host gives you a chance to switch your initial
box choice or stick to it. What should you do?
Bonus: How would the probabilities change if the host opens
up 3 boxes instead of 1 to reveal that they’re empty before
giving you a chance to switch?
29. Let’s consider the case of some famous card games. In poker,
each player is dealt a hand of 5 cards, and the strongest hand
still in play wins. In poker’s ranking system, the strongest
possible hand is a straight flush, with 5 cards of the same suit,
with their ranks in sequence. If two players hold a straight flush,
the one with the higher top card wins. The hand A-K-Q-J-10
(of the same suit) is the highest possible straight flush, also
called the royal flush. The next in hierarchy is four of a kind,
which means 4 cards of the same rank and one of a different
rank. In India, there’s a game similar to poker in some ways,
yet different, called Teen Patti. Teen Patti involves three cards
per hand, compared to poker’s five. Also, while Teen Patti
doesn’t allow players to change any cards they’ve been dealt,
poker allows them to discard cards and draw new ones. In
Teen Patti, the strongest combination is taken as the ’trio’ or
’trail’. It means the player has three cards of the same rank,
such as A-A-A or 7-7-7. The second best combination is the
straight flush (three cards in sequence, same suit). In poker,
the straight flush’s top rank implies it has a lower probability
of appearing than four of a kind, which is ranked lower. On
The Quant Club, IIT BHU
the other hand, in Teen Patti, the trio ranks higher than the
straight flush. Is the ranking system flawed in one of the games
or both?
30. It is known that each of the four people A, B, C and D tells the
truth with 1/3 probability, and their decisions are independent
of others. Suppose that
• A makes a statement to B;
• and then B tells C whether A was telling the truth or not;
• after that C tells D whether B says A was telling the truth
or not;
• Finally D says that C says that B says that A was telling
the truth.
What is the probability that A was actually telling the truth?
31. A particular 12-hour digital clock displays the hour and minute
of a day. Unfortunately, whenever it is supposed to display the
number 1, it mistakenly displays the number 9. For example,
when it is 1:16 PM, the clock incorrectly shows 9:96 PM. If
we randomly watch this clock for the whole day, what’s the
probability that the clock shows the correct time?
32. On an 8x8 chessboard, we introduce a new piece called ”jockey”,
which moves farther than a knight. A jockey can move 2 steps
vertically and 3 steps horizontally, or 3 steps vertically and 2
steps horizontally, e.g. a1 → c4 → f2 → h5 →...
The Quant Club, IIT BHU
35. Find all positive integers n with the following property: The
k positive divisors of n have a permutation (d1 , d2 , ..., dk ) such
that for every i = 1, 2, ... , k, the number d1 + d2 + ... + di is a
perfect square.
(Perfect Squares are the squares of whole numbers such as 1, 4,
9, 16, 25 and so on.)
36. There are three bells - ringing at 30, 60 and 90 min intervals.
All three of them are started (not necessarily at the same time).
Given an instance of time, what is the probability that the
60-minute bell is the first one to ring after that instance of
time?
37. The Dean of Prodigy Institute offers 80 students, numbered
from 1 to 80, a chance to secure a $50K Scholarship if they
solve the challenge he posed. The dean sets up a room with
80 lockers and puts one student’s number in each closed locker.
Students can enter the room one after another. Each student
The Quant Club, IIT BHU
38. The cliché Alice - Bob pair is back. This time they’re playing a
dice game. Alice has a normal die with numbers marked from
1 to 6. However, Bob has devised a strange 6-faced die where
the numbers on the faces can be any non-negative integer, with
the only constraint that the sum of numbers on the 6 faces is
the same as the sum of numbers on the 6 faces of a normal die.
Now Alice and Bob roll their dice. If the result of the roll is
a tie, they roll again. Otherwise, the person with the larger
number on the roll is the winner.
a) Out of all possible strange dice that Bob could have come
up with, find all such strange dice that would give Bob the
maximum probability of winning the game.
b) What is the maximum probability of Bob winning?
39. There’s an event to be organized in a circular park. The middle
of the park has a fountain. Three points have to be identified
on the park’s circumference for a fence to be installed along
the lines connecting these points. What is the probability that
the fencing encloses the fountain?
The Quant Club, IIT BHU
42. Mac and Charlie got really drunk and decided to play a game.
They will take turns and throw a bottle at each other until it
hits one of them. Charlie is able to hit Mac only 40% of the
time and is the weaker player. He is allowed to start the game
by throwing first. After some calculations, they found out that
the game favours neither of them. What is Mac’s probability
of hitting Charlie?
(Try learning about Markov Chains and see if it can be used
here.)
43. Alex found 100 pieces of rope in his backyard. He started
playing a game by picking 2 random ends and tying them
together (the ends need not be of the same piece). He continues
doing so until there are no more free ends left. Find the expected
number of loops at the end of the game.
The Quant Club, IIT BHU
44. We play a game. The pot starts at $0. On every turn, you flip
a fair coin. If you flip heads, I add $100 to the pot. If you
flip tails, I take all of the money out of the pot, and you are
assessed a ”strike.” You can stop the game before any flip and
collect the contents of the pot, but if you get 3 strikes, the game
is over, and you win nothing. Find, with proof, the expected
value of your winnings if you follow an optimal strategy.
45. There are n biased coins c1, c2, c3, ... ith coin has a prob of
getting head of 1/(2i+ 1), What is the probability of getting an
odd number of heads when all n coins are flipped as a function
of n.
46. A tunnel has 6 red balls, 3 green balls and 10 blue balls lined
up randomly. Each second, the first ball falls off the tunnel
from one end. What is the expected number of seconds before
you see the first blue ball falling?
by 2 steps to get K Q J 1 0 9 8 7 6 2 1 5 4 3.
What is the minimum number of such moves?
52. Anna writes a sequence of integers starting with the number 12.
Each subsequent integer she writes is chosen randomly with
The Quant Club, IIT BHU
53. Prove that in any set of 181 square integers, there exists a
subset of 19 numbers whose sum is divisible by 19.
57. There is a bacteria (at t=0) which dies, survives and divides
into 2, all three outcomes with equal probability at each instant.
a) What is the probability that the bacteria population survives
till t=2?
b) Let P(t) denote the probability of survival of the bacteria
population till time t. Derive a recurrence relation between
P(t) and P(t-1).
58. Find the probability that x/y rounded off to nearest integer,
would be even if x and y ∈ (0, 1)
62. 2 dice having values between 0-5, what is the probability that
the square of the sum of the numbers on them is even? What
if there are n dice?
64. You stand at some point on Earth. You move one km south,
one km east, and one km north and end up at the same spot.
Name one such point. How many such points are there?
65. Find the number of ways to reach (16,16) from (0,0) if right
and up are the only moves allowed and we need an even number
of turns.
70. Given a stick where you have to put two cuts, what is the
probability that the pieces form a triangle?
71. There are three mothers, Mrs. A, Mrs. B and Mrs. C . Each
has two children.
a) Mrs. A tells you her oldest child is a girl. What’s the
probability she has two girls?
b) Mrs. B tells you one of her children is a girl. What’s the
probability she has two girls?
c) Mrs. C tells you one of her children is a girl born on Tuesday.
What’s the probability she has two girls?
72. Buses arrive at regular intervals of 10 minutes. What is the
expected waiting time? What will be the answer if the buses
come late with a probability of 0.5 by 5 minutes? Finally, what
will be the answer if the bus comes late by 1 minute? Isn’t it
weird, and why?
The Quant Club, IIT BHU
74. In a game with a deck of 52 cards, you and your friend each
have one card. You must correctly guess your card, and your
friend must do the same. They both know each other’s cards.
They can discuss their strategy before playing the game. What
is the maximum chance of them winning the game by guessing
correctly when they are sequentially revealing their guesses?
76. You have 5 distinct sets of 3 blocks. Six blocks are removed
at random. Compute the expected number of complete sets
remaining.
77. Piglet and Roo are working part-time at a coffee shop. Piglet’s
shift is 30 minutes long and Roo’s shift is 45 minutes long. They
each independently pick a uniformly random time between 8:00
and 9:00 to start working. What is the probability Piglet and
Roo will encounter each other while on shift?
78. Three investors are independently deciding whether to invest
in a new company. Two of them have a 1/2 chance of investing,
but one has a 4/5 chance of investing. What is the probability
that exactly two people will invest in the company?
The Quant Club, IIT BHU
79. You have nine blocks, where seven of them are labeled from
1 through 7 and the remaining two are indistinguishable and
labeled with 8. Compute the number of ways I can pick a set
of three blocks such that at least one block is even.
80. You roll 2 dice. To maximize your expected sum of their values,
you can roll any of them again. What is your expected sum of
values?
83. Three real numbers are chosen from the interval U[0, 6] inde-
pendently and uniformly at random. What is the probability
that the smallest number is between 2 and 3?
86. Find the smallest number which is a perfect square ending with
The Quant Club, IIT BHU
88. Imagine that n people throw their hats into a box and then
randomly pick one hat each. Find the variance of X, which
represents the number of people who end up picking their own
hats.
89. Let A,B be 3x3 matrices with integer entries such that A, A+B,
A+2B, A+3B, A+4B, A+5B, A+6B are all invertible matrices,
whose inverse have integer entries. Now, show that A+7B is
also invertible and its inverse has integer entries .
90. a) Alice and Bob are playing a game. Alice deals a shuffled
pack of cards and places them face up one at a time. Bob can
pause Alice at any time and place a SI bet that the next card
will be red. If Bob is correct he doubles up.
Note: He can only bet once. And if he does not bet. It will be
automatically considered that he bet before the last card. How
can Bob maximize his expectation value?
b) The game is now modified. Instead of only being allowed to
bet once. Bob can get any number of times, with any fraction
of his leftover amount. He can also choose the colour he wants
to get on. He always gets fair odds. A simple strategy could
be to only get on the last card. As its colour is always known
The Quant Club, IIT BHU
94. There are 4 people A, B, C and D who want to cross the bridge
in night. A takes w minute to cross the bridge. B takes x
minutes to cross the bridge. C takes y minutes to cross the
bridge. D takes z minutes to cross the bridge. There is only one
torch with them and the bridge cannot be crossed without the
torch. There cannot be more than two persons on the bridge
at any time, and when two people cross the bridge together,
they must move at the slower person’s pace.
Find the minimum time in which the group can cross the bridge
if:
a) w = 1, x = 3, y = 4 and z = 10
b) w = 1, x = 2, y = 5 and z = 10
Explain the strategy followed by the people for both the cases
separately.
96. 2023 prisoners are given a chance to be set free tomorrow. Each
prisoner is wearing a hat that will be either of the four colors
- red, blue, green and yellow. Each prisoner can see everyone
else’s hat but not his own. The hat colors are assigned randomly
and once the hats are placed on top of each prisoner’s head
they cannot communicate with one another in any form, or else
they are immediately executed. The prisoners will be called
out in random order and the prisoner called out will guess the
color of his hat. Each prisoner declares the color of his hat so
The Quant Club, IIT BHU
101. Anton rolls a fair die and records the value he rolls. Afterwards,
he continues rolling the die until he obtains a value at least as
large as the first roll. Let N be the number of rolls after the
first he performs. Find E[N].
103. A very sharp, consistently skillful blind archer aimed for the
center of a circular board and shot 2 arrows. He is expected
to hit the aim, but doesn’t hit it for sure. The archer is told
that his first shot is better than second. He tried one more
shot. What is the probability that this 3rd shot is the best
shot among 3? (i.e Probability that 3rd arrow lands closer to
center than his first two shots?).
104. There are N distinct types of coupons in cereal boxes and each
type, independent of prior selections, is equally likely to be in
a box. If a child wants to collect a complete set of coupons
with at least one of each type, how many coupons (boxes)
on average are needed to make such a complete set? If the
child has collected n coupons, what is the expected number of
distinct coupon types?
105. Find the expected number of rolls of a fair die to get two sixes
in a row.
106. Find the expected number of rolls of a fair die to get a six
followed by a five.
The Quant Club, IIT BHU
109. Alice attends a small college in which each class meets only
once a week. She is deciding between 30 non-overlapping
classes. There are 6 classes to choose from for each day of the
week, Monday through Friday. Trusting in the benevolence of
randomness, Alice decides to register for 7 randomly selected
classes out of the 30, with all choices equally likely. What is
the probability that she will have classes every day, Monday
through Friday?
111. For a group of 7 people, find the probability that all 4 seasons
(winter, spring, summer, fall) occur at least once each among
The Quant Club, IIT BHU
114. You take a standard shuffled deck of 52 cards and keep flipping
cards over until the first ace appears, which is card #14. What
is the probability that the next card is eight of hearts?
117. You have a rand(5) generator, How can you create a rand(6)generator
using it?
The Quant Club, IIT BHU
118. You have 100 electric cars. Each car can travel a maximum
distance of 1000km using 1 charge. All the cars are initially
uncharged. How would you distribute the one charge in the
beginning, and what’s the maximum distance that you can
travel with these 100 cars and 1 charge?
119. You are given a 100-sided die. After you roll once, you can
choose to either get paid the dollar amount of that roll OR pay
one dollar for one more roll. What is the expected value of the
game? (There is no limit on the number of rolls.)
120. Alice and Bob each have a coin and flip it until they get a
head. If Bob flipped his coin more times than Alice, what is
the expected number of times Alice flipped her coin?
Answers
13 2r
1. 23.
The Quant Club, IIT BHU
17 π
4 24. 10
2.
9 1
25.
1 2
3.
198 26. 7.45
4. 32 2
27.
9 5
5.
128 1 5
28. P(win, !switch)= < P(win, switch)=
6. 0.27 6 24
15 29. The ranking system in teen patti seems to be
7.
16 flawed, as an event with a greater probability of
7 occuring is ranked higher.
8.
432 13
30.
9. 98, 0, 1, 0, 1 41
(4)(48 Ck ) k! 31. f (x) = x + 1, f (x) = −1
10. 52 C
k+1 (k + 1)! 1
32.
11. 7 2
(2 + i) 5 Ci i! 33. a) We can prove, a particular 3 move combi-
12. nation of jockey = 1 move of knight and
6i+1
knight can visit each square.
335
13. 7 or b) follows from part a
36
1 35. 10
14.
2 2
15. 1 36.
9
16. infinite 38. a) (0, 0, 3, 6, 6, 6), (0, 0, 4, 5, 6, 6), (0, 0, 5, 5, 5, 6)
17. 10.6 17
b)
11
32
18. C5 (0.4)5 (0.6)6 + 11
C6 (0.4)6 (0.6)5
1
137 39.
19. 4
12 41. a) 2.5
√ !50
5−1 50
Ck 950 C50−k
20. b)
2 1000 C
50
199 100
c) HGeom(50, 950, 50)
21. a) 100 1 − 200
2
b) 2 42.
3
1 1 1
22. 43. + + ... + 1
2 199 197
i
44. $115.625 80. 8.125
n
45. 81. 21
2n + 1
46. 1.81 82. 4
37
1 83.
47. 216
3
The Quant Club, IIT BHU
8
48. 12 84.
21
4
49. 1
5 85.
4
53. Check possible remainders of squares when di-
87. 5.5
vided by 19 (there are 10 possible remainders),
1
so, we need 18*10+1 = 181 square integers for 88.
the property to hold by PHP. n
92. Yes
1
54.
4 94. a) 19 minutes
55. 50% − 80% b) 17 minutes
56. a) 20 96. We can save at least 2022 prisoners.
b) 19 1
98. a)
3
c) 20
13
14 b)
57. a) 27
27 1
c)
1 1 2
2
P (t−1)+
b) P (t) = 1 − (1 − P (t − 1))
3 3 d) As more and more details about the boy
child are given, the chance that the other
1 1 1 1 1
58. + − + − + ... child is a girl approaches one-half. Hence,
4 3 5 7 9
the relation will be P1 < P2 < P4 < P3.
64. North Pole, Infinite points
105. 42
12
76. 106. 36
13
27 108. No
77.
32
116. 12
9
78. 5
119. 87 14
20
4
79. 59 120. 3
Credits: Yashwini Bansal, Ansh Chaudhary, Aman Agrawal, Ojasva Gupta, Gaurav Gupta,
Shrey Gupta, Kartik Malik, Nikhil Garg
ii