AB Testing 101 | Fmr. Google Data Scientist Explains How to Calculate the Sample Size

  Рет қаралды 20,998

DataInterview

DataInterview

Күн бұрын

🚀 Looking for a comprehensive AB testing course? Visit datainterview.com/
👉 Join the Data Scientist Interview Bootcamp: www.datainterview.com/bootcam...
====== ✅ Details ======
🤔 Ever wondered how to calculate the sample size in an AB test?
A former data scientist at Google how to calculate the sample size step-by-step. The lesson covers the formulas, parameters and exercises that should give you the intuition on how the sample size is calculated.
Dan, the host, was a data scientist formerly at Google and PayPal. He launched datainterview.com/ to help candidates like you eliminate frustrations about the data science interview process and increase your success.
As an interview coach, Dan helped several clients land their dream jobs as IC and managerial DS roles at top companies such as Google, Meta, Amazon and such. Message him at Dan@DataInterview.com for help!
👍 Make sure to hit the like, and check out datainterview.com/
====== ⏱️ Timestamps ======
0:00 Sample Size Formula
2:16 Significance Level (Alpha)
7:15 Statistical Power (1 - Beta)
12:43 Variance
17:41 Demonstration
====== 📚 Other Useful Contents ======
1. Principles and Frameworks of Product Metrics | KZbin Case Study
Link: / principles-and-framewo...
2. How to Crack the Data Scientist Case Interview
Link: / crack-the-data-scienti...
3. How to Crack the Amazon Data Scientist Interview
Link: / crack-the-amazon-data-...
====== Connect ======
📗 LinkedIn - / datainterview
📘 Medium - / datainterview

Пікірлер: 30
@Aidan_Au
@Aidan_Au Жыл бұрын
Dan is back with another jam-packed useful AB Testing course!
@chineduezeofor2481
@chineduezeofor2481 5 ай бұрын
This is so detailed. Thank you for this!
@jaylambert4700
@jaylambert4700 Жыл бұрын
I thought this was an outstanding tutorial, thank you so much
@Iol4up
@Iol4up 5 ай бұрын
This is GOLD!!
@SiddhantSethi02
@SiddhantSethi02 Жыл бұрын
loved the explanation man. This is the first video I have seen that is explaining where is sigma and delta coming from. I have had such a hard time in reasoning where are the parameters coming from when we have not even started the test. Thanks for the good work. :)
@kiwidamien
@kiwidamien 5 ай бұрын
The power is not the probability of detecting the effect if it exists. The way the power is calculated is the probability of detecting an effect if the effect size is exactly equal to stated Minimum Effect Size. To get “the probability of detecting an effect if one exists” you need to integrate over a prior of the different effect sizes.
@twtw5201
@twtw5201 Ай бұрын
This is the only video one would needs to demystify the power analysis. Thank you.
@stella123www
@stella123www 7 ай бұрын
This is a fantastic video, it helps me clear up the confusion I had with power analysis. Though I know the famous formula of 16 sigma square/delta , I had no idea the pooled variance = 2* control sample variance. Thanks for the detailed video!
@hayzelyeom7245
@hayzelyeom7245 Жыл бұрын
Thank you for the amazing AB test lecture! I have one question. How can I project the effect of this AB test from the entire product's view (e.g. calculating sitewide impact of the observed significant list)?
@csousa3608
@csousa3608 11 ай бұрын
Great video, thank you for sharing. In the case of A/B/n testing, the formula that you shared in the video could be adapted and used?
@elinatugaeva6884
@elinatugaeva6884 8 ай бұрын
Thank you for the explanation! I have a question on the chicken& egg problem: if we cannot calculate the variance of the difference of 2 means, how can we calculate the pooled var for proportions? We also do not know the success rate of the 2nd sample as we have not yet run an experiment
@askanimohankrishnaiitb
@askanimohankrishnaiitb 6 ай бұрын
Hey Hi, I think the definition you gave for the type II error (beta) at around 8:05min is for power. Could you clarify that ?
@mayankanand507
@mayankanand507 2 ай бұрын
What he mentioned is that probability of rejecting null hypothesis when alternative hypothesis is true, and that is the area under curve of alternate hypothesis for all Z
@PhiNguyen-iz9go
@PhiNguyen-iz9go Жыл бұрын
8:49 Does the distribution of test-statistic under alternative hypothesis have the same shape with the distribution of test-statistic under null hypothesis?
@hokage5619
@hokage5619 Жыл бұрын
in case of single tail test will Z(1- a/2) change to Z(1 - a) ?
@yeqinzhang
@yeqinzhang 7 ай бұрын
how to answer this interview question? what if we cannot collect that much sample, what should we do?
@ashisranjanlahiri
@ashisranjanlahiri Жыл бұрын
Video is good. It is better to explain what is beta before jumping into the power
@DataInterview
@DataInterview Жыл бұрын
Thanks!
@PureMoss
@PureMoss 29 күн бұрын
Am I mistaken, or is the description of the Type II error at 8:05 incorrect? He says Beta is the "the probability of rejecting a null hypothesis when the alternative hypothesis is true." But isn't Beta/Type II error the probability of *not* rejecting a null hypothesis when the alternative is true? Genuinely trying to clarify to make sure I have proper understanding.
@lfengstone
@lfengstone 2 ай бұрын
great lecture and thanks for sharing. But why is the two-sample pooled variance for proportion is the sum of the two samples's variance? should it be the 2*variance 1, because of the similar reason to it's mean counterpart?
@ChangKaiHua300
@ChangKaiHua300 10 ай бұрын
Hi sir, In the example i see you use MDE=20%, I am confused shouldn't it is normally be like 80% to 90%. is using 10%, 20% practical in real world?
@user-ew3oe6wl3v
@user-ew3oe6wl3v 5 ай бұрын
17:34 Why is (15.68 * sample variance) / delta squared ≈ (16 & population variance) / delta squared? Is it because sample variance is almost equal to population variance?
@farsikogama6114
@farsikogama6114 6 ай бұрын
14:37 and 17:25 are the answer we are looking for 😄
@e.i.l.9584
@e.i.l.9584 Жыл бұрын
Hey, been loving your channel! I also have a similar background in college as you! I was wondering; Would you recommend a master in AI or statistics & data sciencr in order to become a data scientist and/or machine learning engineer? Stats would give me an European Master of Statistics (EMOS) and R knowledge. AI is more focused on python. What would give better opertunities down the road? honestly the stats would be easier to get higher grades than AI since its a killer master where I study it. My background is; double bachelor neuroscience and psychology, with a specialization in stats after which i knew it was what I really liked. Did a minor in data science and AI and studied mathematics on an exchange and did comp science and (discrete) math courses extracurricular. My goal is to work at a big tech firm but im unsure what gives better opertunities
@DataInterview
@DataInterview Жыл бұрын
Hey, thanks for the post! Honestly, it really boils down to what you are interested in. Seems to me that you are mostly interested in developing and application of AI - in which case, computational neuroscience I think would be a perfect track. A combination of neuroscience, stats, and computer science may help you in the near term and long-term. Any internships you could snatch would be great in building a portfolio. Invest heavily on learning how to code, the math, and application of the latest algos like transformers, ChatGPT and so forth.
@e.i.l.9584
@e.i.l.9584 Жыл бұрын
@@DataInterview thank you!
@e.i.l.9584
@e.i.l.9584 Жыл бұрын
@@DataInterview I actually really want to go more towards machine learning engineering or data science. Would computational still be best then?
@harsharangapatil2423
@harsharangapatil2423 Ай бұрын
Why does every one just start writing the equation? Where is the deeper intuition?
@zhaoyanzhi741
@zhaoyanzhi741 4 ай бұрын
Very good and helpful explanation, but why pooled variance is to multiply by 2 instead of directly use the variance itself according to the link en.wikipedia.org/wiki/Pooled_variance
What Do You Measure In AB Testing? HEART and AARRRg Frameworks
16:49
How I became a data scientist at Google (with a low GPA)
14:32
DataInterview
Рет қаралды 6 М.
ШЕЛБИЛАР | bayGUYS
24:45
bayGUYS
Рет қаралды 461 М.
NO NO NO YES! (40 MLN SUBSCRIBERS CHALLENGE!) #shorts
00:27
PANDA BOI
Рет қаралды 124 МЛН
顔面水槽がブサイク過ぎるwwwww
00:58
はじめしゃちょー(hajime)
Рет қаралды 36 МЛН
GADGETS VS HACKS || Random Useful Tools For your child #hacks #gadgets
00:35
5 Concepts in Statistics You Should Know | Data Science Interview
20:48
A/B Testing Statistics Made Easy
14:41
Testing Theory
Рет қаралды 30 М.
Amazon Data Scientist Mock Interview - AB Testing
16:15
DataInterview
Рет қаралды 23 М.
A/B Testing Interview with a Google Data Scientist
13:06
Jay Feng
Рет қаралды 31 М.
How to run A/B Tests as a Data Scientist!
28:18
CodeEmporium
Рет қаралды 21 М.
Вот это поворот 🤣❤️
0:19
Dragon Нургелды 🐉
Рет қаралды 1,3 МЛН
ОТ КОПЕЙКИ ДО МИЛЛИОНА
1:00
ANTON RIMSKIY
Рет қаралды 2,8 МЛН
Разбил яйцо об Костю (случайно)
0:34
Miracle
Рет қаралды 2,6 МЛН