Uploaded April 2023 | Updated September 2026, 1 hour ago
This video will walk you through Goldman Sachs's probability interview question "21 Unbiased Coins". We'll go step-by-step through the process of the binomial probability calculation in Python, and also discuss why the final probability calculation may result in slightly different values due to floating point precision errors.
Go to the question through the link below and follow along with meπ
platform.stratascratch.com/technical/2407-21-unbiased-coins?utm_source=youtube&utm_medium=click&utm_campaign=YT+python+probability+question
______________________________________________________________________
π Subscribe to my channel: bit.ly/2GsFxmA
π Playlist for more data science interview questions and answers: bit.ly/3jifw81
π Playlist for data science interview tips: bit.ly/2G5hNoJ
π Playlist for data science projects: bit.ly/StrataScratchProjectsYouTube
π Practice more real data science interview questions: platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+python+probability+question
______________________________________________________________________
Timeline:
Intro: (0:00βββ)
Interview Question: (0:26ββ)
Formulas to use: (1:26)
Probability Calculation Using the Math Library: (3:44)
Probability Calculation Using Math Module: (5:47)
Take Away: (7:31ββ)
______________________________________________________________________
About The Platform:
I'm using StrataScratch (platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+python+probability+question), a platform that allows you to practice real data science interview questions. There are over 1000+ interview questions that cover coding (SQL and python), statistics, probability, product sense, and business cases.
So, if you want more interview practice with real data science interview questions, visit platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+python+probability+question. All questions are free and you can even execute SQL and python code in the IDE, but if you want to check out the solutions from me or from other users, you can use ss15 for a 15% discount on the premium plans.
______________________________________________________________________
Contact:
If you have any questions, comments, or feedback, please leave them here!
Feel free to also email me at nathan@stratascratch.com
______________________________________________________________________
#probability #probabilityandstatistics #python
This video will walk you through Goldman Sachs's probability interview question "21 Unbiased Coins". We'll go step-by-step through the process of the binomial probability calculation in Python, and also discuss why the final probability calculation may result in slightly different values due to floating point precision errors.
Go to the question through the link below and follow along with meπ
platform.stratascratch.com/technical/2407-21-unbiased-coins?utm_source=youtube&utm_medium=click&utm_campaign=YT+python+probability+question
______________________________________________________________________
π Subscribe to my channel: bit.ly/2GsFxmA
π Playlist for more data science interview questions and answers: bit.ly/3jifw81
π Playlist for data science interview tips: bit.ly/2G5hNoJ
π Playlist for data science projects: bit.ly/StrataScratchProjectsYouTube
π Practice more real data science interview questions: platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+python+probability+question
______________________________________________________________________
Timeline:
Intro: (0:00βββ)
Interview Question: (0:26ββ)
Formulas to use: (1:26)
Probability Calculation Using the Math Library: (3:44)
Probability Calculation Using Math Module: (5:47)
Take Away: (7:31ββ)
______________________________________________________________________
About The Platform:
I'm using StrataScratch (platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+python+probability+question), a platform that allows you to practice real data science interview questions. There are over 1000+ interview questions that cover coding (SQL and python), statistics, probability, product sense, and business cases.
So, if you want more interview practice with real data science interview questions, visit platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+python+probability+question. All questions are free and you can even execute SQL and python code in the IDE, but if you want to check out the solutions from me or from other users, you can use ss15 for a 15% discount on the premium plans.
______________________________________________________________________
Contact:
If you have any questions, comments, or feedback, please leave them here!
Feel free to also email me at nathan@stratascratch.com
______________________________________________________________________
#probability #probabilityandstatistics #python









![Advanced Facebook Data Science SQL interview question [RANK()]
This advanced SQL question is from the Facebook data science interview that tests your ability to write window functions and rank data and use some advanced functions like coalesce. Itβs a complicated question that involves subqueries and joins and also tests your knowledge in rankings.
Link to the question to follow along with me: https://platform.stratascratch.com/coding/2007-rank-variance-per-country?python=&utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link
π Subscribe to my channel: https://bit.ly/2GsFxmA
π Playlist for more data science interview questions and answers: https://bit.ly/3jifw81
π Playlist for data science interview tips: https://bit.ly/2G5hNoJ
π Practice more real data science interview questions: https://platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link
Timeline:
Intro: (0:00βββ)
Interview Question: (0:33ββ)
Framework to solve the problem: (0:58βββ)
Understand your data: (2:18βββ)
Formulate your approach: (5:38βββ)
Code Execution: (8:42βββ)
Conclusion: (23:05βββ)
About The Platform:
Im using StrataScratch (https://platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link), a platform that allows you to practice real data science interview questions. There are over 1000+ interview questions that cover coding (SQL and python), statistics, probability, product sense, and business cases.
So, if you want more interview practice with real data science interview questions, visit https://platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link. All questions are free and you can even execute SQL and python code in the IDE, but if you want to check out the solutions from me or from other users, you can use ss15 for a 15% discount on the premium plans.
Contact:
If you have any questions, comments, or feedback, please leave them here!
Feel free to also email me at nathan@stratascratch.com
#FacebookDataScienceInterview Advanced Facebook Data Science SQL interview question [RANK()]](https://i.ytimg.com/vi/PlpUo6bHsBQ/mqdefault.jpg)
