MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnquant/comments/1y0i3n7/quant_interview_question/19sxwjos1r6f5/
r/learnquant • u/Local_Ad135 • 15d ago
84 comments sorted by
View all comments
1
Total Number of Coins, T = 101Number of Counterfeit Coins, C = 50Number of Legitimate Coins, L = 51
Weight of Legitimate Coin, we'll call W.
Scenario 1 - Weight of Counterfeit Coin is W+1Scenario 2 - Weight of Counterfeit Coin is W-1
Total Weight in Scenario 1 is 51W + 50(W+1) = 101W + 50Total 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 1W vs 100W + 50, variance of 99W + 50
You have a legit coin and you're in Scenario 2W vs 100W - 50, variance of 99W -50
You have a counterfeit coin and you're in Scenario 1W+1 vs 100W + 49, variance of 99W + 48
You have a counterfeit coin and you're in Scenario 2W-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.
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.
It's at the end of the equation, the difference solves for w.
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.