Liars, legs and bloom windows: what fills this bank
Knights and knaves turn up in both the online assessment and the live technical screen that SIG data scientist candidates report, and nearly everything around them is a short probability or algebra puzzle with one exact answer. If your data science preparation so far has been SQL and A/B tests, rebalance before a SIG assessment: the reported questions contain neither, and apart from two coding tasks every item in the SIG data scientist question bank is math, probability or logic.
The puzzles fall into recognizable families. Some ask who is lying, on the classic island of knights and knaves or under a rule where a speaker's honesty depends on whether the listener owns more cats. Some are word problems that collapse into small systems of equations, about barn animals counted by their legs, a canoe on a river current or a hanging mobile. Others are Bayes updates, such as guessing which factory made two black widgets. The rest are expectation and stopping problems, like a bold-betting game played to a target or to ruin, and counting or continuous probability, like two flowers whose bloom periods may overlap or grid paths with no three equal moves.
Most of these are tagged to the online assessment. One candidate counted seventeen questions on it, opening with a legs-in-the-barn problem and an island of knights and knaves. A smaller group comes from a live technical screen: more islanders, a hard bundle of probability and counting puzzles, a matrix rank proof, a rock-paper-scissors game with a forbidden gesture, a question about whether a voting agenda is fair, and an explanation of how to keep a running median. Even the one question tagged to the HR screen is a probability item, about a bus arriving on time and sums of dice.
The farm animals and flowers are thin wrappers for an equation, a conditional probability or an expectation, so the work in each puzzle is building a small model quickly and getting the arithmetic right. Several scenarios also appear in a second version: the bloom overlap, the muffins, the canoe, the bold-betting game and the factory widgets, and the losing contest pick shows up once with cats and once with a rabbit. Learn each method well enough that new numbers cost you nothing.
If you are weighing engineering roles too, the SIG software engineer guide covers that bank, and the SIG company page gathers the firm's other roles. Candidate write-ups for this role are collected under SIG data scientist interview experiences.
Knights, knaves and a truth rule keyed to cat counts
Islander puzzles come in several forms here: one islander accusing another, two statements from the same speaker, and a select-all-that-apply version where you mark every consistent assignment of roles. Treat each one as a small satisfiability problem and the method becomes mechanical.
List every assignment first. Two islanders give four cases and three give eight. In each case, a knight's statements must all be true and a knave's must all be false; strike the cases that fail and report what survives. The table prevents the usual failure: reasoning through the first case that comes to mind and missing a second consistent one. When the format asks for every consistent assignment, the answer can be one case, several or none, and a complete answer says which and why.
The step people get wrong is negation. A knave's statement is false as a whole, so you need its exact opposite, and words like "both", "exactly one" and "all" are where loose negations creep in. Write the negation out in words before you test a case against it.
The cat-count puzzle changes the rule. Honesty is no longer a fixed trait: a speaker is truthful toward anyone who owns fewer cats and lies to anyone who owns more, and everyone holds a different positive number of them. Enumerate the orderings of the three owners before touching any numbers. There are six, and each one fixes whether every statement in the puzzle must be true or false. For the orderings that survive, the numbers in the statements plus the distinct-positive-integer condition pin down the counts. Read each line for who is speaking to whom, since applying the rule from the listener's side flips every truth value.
If a live round extends a puzzle with a third islander or a third type of person who may say anything, it is the same table with more rows, so say so and build it.
Barn legs, a canoe on a current and a balanced mobile
Each of these is a linear system once the story is stripped away. The barn problems give each species a fixed number of legs, a total and ratios between the head counts. The canoe problems give travel times on a river with a current and ask when the trip started. The mobile gives a total weight and a set of bars that balance, with shapes of unknown weight hanging from them.
Name each unknown with a letter that reminds you what it is, write one equation per sentence of the prompt and solve, then substitute your numbers back into every original sentence, a step that deserves as much care as the solve. Head counts must come out as positive whole numbers, so a fractional cow tells you an equation is wrong before you report it.
Ratios are the classic trap. "There are twice as many X as Y" means X equals 2Y, and writing it backward is the most frequent error in this family. Test each ratio with a small number: if Y is 3, does your equation make X equal 6?
For the canoe, separate speed through the water from speed over the ground: the current adds going downstream and subtracts going up. Put every time in one unit, convert clock times to minutes after a reference point, and work backward from a known arrival when the question asks for a departure.
For the mobile, use the balance convention the prompt states and work from the lowest bars upward. Express every weight as a multiple of one unknown shape, write the balance condition at each bar, and use the total at the end to fix the scale. A labeled sketch stops you from counting a shape on the wrong side of a bar.
Aim to finish each of these in a couple of minutes so the harder items get your time.
Updating on evidence: widgets, a losing pick and cyclists by age
The Bayes items share one structure: a hidden state (which factory, which animal you backed), an observation (two black widgets, a lost contest) and a request for the probability of the hidden state given what you saw.
Fill in a Bayes table: one row per hypothesis, with columns for the prior, the likelihood of the observation under that hypothesis and their product, then divide each product by the column sum. The normalizing step, which people drop when they work from memory, is built in, and the table keeps you honest about which direction you are conditioning in: the chance of the evidence given the hypothesis is an input, the chance of the hypothesis given the evidence is the output. If the numbers are awkward, imagine a convenient population, say 600 repetitions, and fill in counts.
The factory problems turn on an assumption you should state. Two widgets are independent given the factory when each is black independently at that factory's rate, which also covers drawing with replacement or from a large batch. If you draw without replacement from a small known batch, use hypergeometric likelihoods instead. Say which model you assume, and if the wording leaves room for both, mention how the other would change the likelihoods.
One contest-pick problem gives win probabilities as symbols and asks what a loss tells you. Keep the answer symbolic, then test it on an extreme case you can reason about directly, such as an animal that never loses. If your formula misbehaves there, the setup is wrong.
The cyclist question asks for a conditional probability about age within a group of cyclists. Build a two-way table with counts first; the conditioning group is the denominator, so divide by the size of that group, never by everyone counted.
After the set, practice the natural extensions: what a third black widget does to the posterior, and how far the answer moves when the prior changes.
Bold betting, waiting for two regions and two-dice payoffs
First-step analysis handles the bold-betting game, where a player stakes whatever it takes to reach the target, or everything they hold if that is less, until they reach it or go broke. Define the success probability from each fortune, fix the boundary values (zero when broke, one at the target), and write each state's probability in terms of the states one bet away. Bold play can loop back to a state you have already visited, so write the state equations and solve them together as a small linear system. Then check the result on a limiting case: if every bet were certain to win, what should come out?
Stage decomposition handles waiting times, such as spinning a wheel until two regions have appeared. Split the wait at the moment the first of them shows up. Each stage is a geometric wait whose mean is one over its success probability, and when the second stage depends on which region came first, condition on that before adding the stage means.
Linearity of expectation with indicators handles counting in expectation, such as the expected number of adjacent pairs that are both chosen. Give each adjacent pair an indicator, find the probability that a single pair is fully chosen and multiply by the number of pairs. No independence is needed, and chasing the full distribution instead is the usual way to run out of time.
For dice payoffs, a 6-by-6 grid is fast and close to error-proof. When the payoff depends on a maximum or a minimum, cumulative probabilities save work.
The HR-screen item, filed under coding, pairs a bus's on-time probability with dice sums. Practice an exact calculation and a short simulation that confirms it, such as a million trials built on random.randint(1, 6).
Overlapping blooms, cookie flavors and constrained grid paths
For the bloom questions, two independent uniform start times are a point in a square. Translate "the bloom periods overlap" into inequalities on the difference between the start times, shade that region and find its area, often through the complement. When the two bloom lengths differ, the shaded band is lopsided, so write both inequalities before you draw. Decide explicitly whether a bloom that runs past the end of the horizon still counts, and say so in one line.
For the muffin questions, a random demand meets a fixed supply. List the joint outcomes or combine the demand distributions, then add the probabilities where demand stays within supply. Counting the complement, the ways demand exceeds supply, is often shorter.
For combination counts such as cookie flavors, name the model before computing: does order matter, and can a flavor repeat? Unordered selections with repetition are a stars-and-bars count, and ordered selections without repetition are permutations. Using plain combinations when repeats are allowed is the standard miss.
For grid paths with no three equal moves, the unconstrained count (a binomial coefficient) is only an upper bound to sanity-check against. If the limit is on consecutive moves, count arrangements of runs of length one or two, or use a small dynamic program whose state is position, last move and run length, something like f(x, y, last, run). If the rule turns out to mean something else, say how you read it and put what it needs into the state. Fill it in by hand for a small grid and compare with a direct listing before trusting it at full size.
The hard bundle of probability and counting puzzles from the technical screen draws on several of these topics, so rehearse by alternating topics from one problem to the next.
The live screen: a rank proof, a constrained game, a voting agenda and a running median
The technical screen is where the bank moves from arithmetic to proof and argument. One candidate describes a second technical round, after a recruiter conversation, focused on linear algebra, calculus and logic, and recalls the restricted rock-paper-scissors game, the agenda fairness question, the matrix rank proof and a request to talk through keeping a running median as numbers arrive, which led to follow-up questions. In that account, word on the round was due within roughly a week of the recruiter interview, and nothing came after the round itself, so a polite check-in is reasonable if a wait runs long.
For the proof, state the definitions you will use and pick a route before writing, for example null spaces with rank-nullity, or column spaces. Check that every hypothesis in the statement gets used somewhere. If one never appears, either it is unnecessary or your argument has a gap. Review rank-nullity, how rank behaves under transposes and products, and symmetric and positive semidefinite matrices. Since that candidate also named calculus, refresh integration over regions (the same skill as the bloom overlap) and single-variable optimization.
For the game, build the payoff matrix with the forbidden gesture removed, then strike any of your gestures that is strictly or weakly dominated. With three gestures against two, an optimal mix needs at most two of yours, and asking all three to be indifferent has no solution. Find each side's mix from indifference over the strategies that remain, and confirm that neither player gains by deviating. Then compute the value of the game, which answers the advantage question directly. A frequent slip is solving for one player's mix and forgetting the other's.
For the voting question, notice the word "necessarily". You either prove the property for every preference profile that meets the stated constraint or produce one profile that breaks it, and an example that happens to agree proves nothing. Build small profiles that satisfy the equal first-place and second-place counts, run the proposed agenda on each and compare outcomes. Review the basics of pairwise majority voting before the round.
For the median, the title already names the two-heap approach, so the explanation carries the answer. State the invariant that ties the two heaps together, walk through an insertion and the rebalancing step, give the cost of each operation and handle an even count. In Python, heapq is a min-heap, so the lower half is usually stored as negated values. Prepare the natural extensions before you go in: removing values, a sliding window, a memory limit, and approximate quantiles for a stream too large to keep.
Worked from scratch: pricing a contract on the first ace
The problem below is original, in the betting style of the expectation items, and worked the way you would talk it through.
A dealer shuffles a standard 52-card deck and turns cards face up one at a time. A contract pays 1 dollar for every card turned before the first ace appears. What is the contract worth? If the dealer first shows you that the top card is not an ace, what is it worth then? How would you quote it?
-
Define the payoff. Let
Xbe the number of non-aces before the first ace. The contract paysXdollars, so its fair value isE[X]. -
Get the mean from symmetry. Write
Xas a sum of 48 indicators, one per non-ace, each equal to 1 if that card comes before all four aces. For a single non-ace, look only at it and the four aces: in a shuffled deck those five cards sit in a uniformly random relative order, so the non-ace comes first with probability 1/5. By linearity,E[X] = 48/5 = 9.6, and the contract is worth 9.60 dollars. -
Check a tiny deck. With one ace and two other cards, the same argument gives each other card a 1/2 chance of preceding the ace, so
E[X] = 1. Listing the ace's three possible positions gives 0, 1 and 2 cards before it, with mean 1. The method holds. -
Condition on the new information. If the top card is not an ace, it already pays 1 dollar, and the remaining 51 cards hold four aces and 47 non-aces. The same argument gives 47/5 = 9.4 more, so the contract is now worth 10.40 dollars.
-
Check the two answers against each other. The top card is an ace with probability 4/52 = 1/13, and then the contract pays nothing. The law of total expectation says
(1/13)(0) + (12/13)(10.4)should equal 9.6, and it does. Say this check aloud: it catches a wrong conditional value at once. -
Size the risk before quoting. Two different non-aces both precede every ace when they take the first two places among six cards, which happens with probability
2! * 4! / 6! = 1/15. SoE[X^2] = 48/5 + (48 * 47)/15 = 160, the variance is160 - 9.6^2 = 67.84, and the standard deviation is about 8.2. The distribution is skewed as well. Zero is the single most likely outcome, at 1/13, the median is 8, and the payout lands at 9 or below about 59 percent of the time, so a buyer at fair value loses on most single plays and is repaid by the long tail. -
Quote with information in mind. Against a counterparty who knows no more than you, a tight market around 9.6, say 9.3 bid and 9.9 offered, is reasonable. Someone who saw a non-ace on top values the contract at 10.4 and will gladly buy at 9.9, so if the person asking may have peeked, widen or shift the market and read eagerness to buy as evidence that the top card is not an ace.
-
Have the follow-ups ready. By the same gap argument, the expected number of non-aces before the second ace is
2 * 48/5 = 19.2, and withnordinary cards andmspecial ones the count before the first special card averagesn/(m + 1).
The same habits carry over to the expectation and Bayes items: a precisely defined variable, symmetry in place of long sums, a tiny-case check, and conditional answers that average back to the unconditional one.
A three-week schedule that starts with the assessment puzzles
Week one: logic and algebra. Work the knights, knaves and truth-rule puzzles set and the word problems set, a few items a day with a timer running. For every islander puzzle, write the full case table even when you can see the answer; for every word problem, write the equations before any arithmetic and substitute back at the end. Where a scenario has two versions, do one now and save its twin for week three.
Week two: probability. Work the conditional probability and Bayes set, the expected value and ruin set, and the counting and geometric probability set. Before each problem, write the method in one line (a Bayes table, first-step analysis, indicators, stages, an area, stars and bars), then solve. Redo any problem where that line was wrong, because choosing the wrong method costs more time than a slip in arithmetic. Add a short daily Python simulation that confirms one exact answer.
Week three: the live round and full mixes. Work the technical screen set aloud, as if someone were listening: the proof route and where each hypothesis is used, the game's indifference conditions, your plan for proving or refuting the agenda's fairness, and the two-heap explanation with costs and extensions. Review linear algebra and calculus, the areas one candidate's second round focused on. In the last few days, take mixed sets of fifteen to twenty short puzzles in one sitting, including the twins you saved, to rehearse an assessment of the length one candidate reported.
Where answers to these puzzles slip
- Writing a ratio backward in a legs problem, then skipping the substitution that would have caught it.
- Stopping at the first consistent assignment in an islander puzzle, or negating a compound statement loosely, such as reading "not both" as "neither".
- Applying the cat-count rule from the listener's side.
- Assuming two widget draws are independent without saying so, or dividing by the whole population when the condition defines a smaller group.
- Unrolling a bold-betting chain that loops when the state equations need to be solved together.
- Drawing a symmetric band in an overlap problem when the two lengths differ.
- Rounding early. Keep fractions until the last line, because a rounded intermediate step can push a final probability off by more than you expect.
- Sinking ten minutes into one item of a long set of short puzzles. Mark it, move on and come back.
- Reporting a number with no check, when a tiny case, an extreme case or a quick simulation would have caught most of the errors above.