Alexander Hübbert
  • Home
  • Research
  • Articles
  • Practical Coding
  • Quant Quiz
  • DerivaSteps
  • Valuation Calculator
  • CV

Quant Quiz

Quant Quiz

Classic puzzles in counting, probability, expected value, statistics and Python coding, from easy to hard. Try each question first, then open its solution, which shows every step.

Nov 16, 2026

What is the largest profit from daily prices with at most two trades?

A Python puzzle about the best two trades in a list of daily prices.

Hard Coding
Try the quiz
A line through six daily closing prices of a stock.
Nov 16, 2026

What is the largest profit from at most one trade in a list of daily prices?

A Python puzzle about the best single trade in a list of daily prices.

Easy Coding
Try the quiz
A line through six daily closing prices of a stock.
Nov 16, 2026

How many different cubes can you paint with six colors?

A permutations and combinations puzzle about painting a cube and turning it.

Medium Counting
Try the quiz
The 30 different cubes that six colors give, each drawn as an unfolded cube with red on top.
Nov 16, 2026

How do you build a dictionary from a list of tickers and a list of prices in one line?

A Python puzzle about turning two lists into a dictionary.

Easy Coding
Try the quiz
A list of three tickers and a list of three prices above an empty dictionary.
Nov 16, 2026

You copy every row of your data and rerun the regression. What happens to the t-statistic?

A regression puzzle about standard errors and independent observations.

Medium Statistics
Try the quiz
Thirty data points with a fitted regression line.
Nov 16, 2026

Should you switch doors in the Monty Hall problem?

A conditional probability puzzle where the host's rule determines the answer.

Medium Probability
Try the quiz
A tree of 300 games split by where the car is and which door the host opens.
Nov 16, 2026

What do two calls of a function with a list as its default argument print?

A Python puzzle about when Python creates a function's default values.

Medium Coding
Try the quiz
A Python function with a list as its default argument, called twice with unknown output.
Nov 16, 2026

You test positive for a rare disease. How likely is it that you have it?

A conditional probability puzzle that Bayes' theorem solves.

Easy Probability
Try the quiz
A probability tree that splits 1,000 people into sick and healthy, then by the test result.
Nov 16, 2026

A stock's beta is 1.2. What slope do you get if you regress the market on the stock?

A regression puzzle about the slope of Y on X and the slope of X on Y.

Easy Statistics
Try the quiz
A cloud of 300 daily returns of a stock against the market.
Nov 16, 2026

How do you turn a list of daily prices into daily returns in one line of Python?

A Python puzzle about computing returns from a list of prices in one line.

Easy Coding
Try the quiz
Four daily prices in boxes above three empty boxes for the daily returns.
Nov 16, 2026

How many rolls of a die until every face has appeared?

An expected value puzzle about collecting all six faces of a die.

Medium Expected value
Try the quiz
The six faces of a die.
Nov 16, 2026

In a room of 23 people, how likely is it that two share a birthday?

A probability puzzle that the complement rule solves.

Easy Probability
Try the quiz
A grid of 365 days with the birthdays of 23 people marked.
Nov 16, 2026

What is the largest profit from daily prices if you may trade as often as you like?

A Python puzzle about the largest trading profit from a list of daily prices.

Medium Coding
Try the quiz
A line through six daily closing prices of a stock.
Nov 16, 2026

How do you build a variable with a chosen correlation to X?

A statistics puzzle about covariance, variance and correlation.

Medium Statistics
Try the quiz
Two perpendicular unit arrows for X and the error term, and the arrow for Y ending on the unit circle.

Levels

No matching items
Alexander Hübbert

Postdoctoral Researcher in Finance.

Home Research Articles Practical Coding Quant Quiz DerivaSteps CV
LinkedIn Email
© 2026 Alexander Hübbert · This site counts visits with Cloudflare Web Analytics, which sets no cookies.