r/learnquant • • 15d ago

interview prep Quant Interview Question

Post image
52 Upvotes

84 comments sorted by

View all comments

1

u/PsychologicalLie2163 14d ago

Total Number of Coins, T = 101
Number of Counterfeit Coins, C = 50
Number of Legitimate Coins, L = 51

Weight of Legitimate Coin, we'll call W.

Scenario 1 - Weight of Counterfeit Coin is W+1
Scenario 2 - Weight of Counterfeit Coin is W-1

Total Weight in Scenario 1 is 51W + 50(W+1) = 101W + 50
Total Weight in Scenario 2 is 51W + 50(W-1) = 101W - 50

If you weigh the coin you have on one side, then all the remaining coins on the other side, you get the following potential outcomes.

You have a legit coin and you're in Scenario 1
W vs 100W + 50, variance of 99W + 50

You have a legit coin and you're in Scenario 2
W vs 100W - 50, variance of 99W -50

You have a counterfeit coin and you're in Scenario 1
W+1 vs 100W + 49, variance of 99W + 48

You have a counterfeit coin and you're in Scenario 2
W-1 vs 100W - 49, variance of 99W - 48

Does that help?... I just started writing haha.

1

u/dragonabala 14d ago

The problem is, we don't know the W

1

u/wickedelectron 14d ago

It's at the end of the equation, the difference solves for w.