What is the Z-test for Proportions in Statistics? Easy Explanation for Data Science Interviews

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ก.ค. 2024
  • The z-test is a great asset to use when exploring proportions. In this video, I go over conducting both one-proportion and two-proportion tests, using loads of step-by-step examples. I’ll also share some of my top tips on when to use “pooled” vs. “unpooled” variance.
    🟢Get all my free data science interview resources
    www.emmading.com/resources
    🟡 Product Case Interview Cheatsheet www.emmading.com/product-case...
    🟠 Statistics Interview Cheatsheet www.emmading.com/statistics-i...
    🟣 Behavioral Interview Cheatsheet www.emmading.com/behavioral-i...
    🔵 Data Science Resume Checklist www.emmading.com/data-science...
    ✅ We work with Experienced Data Scientists to help them land their next dream jobs. Apply now: www.emmading.com/coaching
    // Comment
    Got any questions? Something to add?
    Write a comment below to chat.
    // Let's connect on LinkedIn:
    / emmading001
    ====================
    Contents of this video:
    ====================
    00:00 Introduction
    00:53 Why Use Z-Test for Proportions?
    02:24 One-Proportion Z-Test
    07:37 Two-Proportion Z-Test
    13:00 Confidence interval example
    13:35 Conclusion

ความคิดเห็น • 16

  • @emma_ding
    @emma_ding  ปีที่แล้ว +3

    Thanks to Yue Cao for pointing out my mistakes at 10:50! It should be 0.5 instead of 0.05. Sorry guys, I will triple check my code before publishing it next time.

  • @baizunshan5534
    @baizunshan5534 ปีที่แล้ว +1

    Thanks Emma. I was thinking about testing the CTR last night and today all of my questions are answers in this video! A great demonstration of presenting using Notion as well.

    • @emma_ding
      @emma_ding  ปีที่แล้ว

      Thanks for your comment, Baizun! Glad you found my video helpful. 😊

  • @gaiusmarius6291
    @gaiusmarius6291 ปีที่แล้ว

    Thank you! this is awesome!

  • @calmpuffin
    @calmpuffin ปีที่แล้ว

    Great vid!

  • @user-ur1mm6tw6u
    @user-ur1mm6tw6u ปีที่แล้ว +1

    Hi Emma, Thanks for your sharing, and I have a question, how do you make sure ad impressions are independent Bernoulli trials, since it can be one user behind tons of ad impressions and clicks, how do you measure this impact is acceptable or not, and still keep the assumption of the data points are independent ? many thanks.

  • @vegetableball
    @vegetableball ปีที่แล้ว +1

    I think the most mathematical part of the procedure is the Central Limit Theorem which asserts that the sample proportion has a distribution approximately Gaussian given some statistical assumptions. The note mentions Slutsky's theorem but not Central Limit Theorem...

  • @zioncheng7798
    @zioncheng7798 ปีที่แล้ว +1

    Great video as always!
    A question: Why do we use Z-test instead of T-test? My understanding is that T-test should be used when the standard deviation of the underlying population is unknown, which is true here since we can't run the experiment for the whole population. Could you please tell me what I am missing here? Thanks!

  • @cococnk388
    @cococnk388 ปีที่แล้ว

    Emma thanks for the awesome video ..
    For the pooled variance or un Pooled variance
    I think it comes from the fact that .. if the two samples have equal or un equal variance .. so we will kind of do the F ratio first ..
    Then for equal variance we use a pooled variance
    For an un equal variance between the two samples we use unpooled variance for the standard error in the test statistic formula.
    😅 hope i am not mixing things !
    Thanks.

    • @cherylf4788
      @cherylf4788 ปีที่แล้ว

      Yes I think so too! Just a follow-up question, under what scenario can we not perform an F-test? (i.e. is there a minimum size or other requirement for the F-test result to be valid?)

  • @junqichen6241
    @junqichen6241 ปีที่แล้ว

    I liked the presentation material you put together. May I ask what tool you used to create it? Thanks!

    • @emma_ding
      @emma_ding  ปีที่แล้ว

      Thanks for your comment, Junqi! I used Notion. 😊 Hope this helps!

  • @emma_ding
    @emma_ding  ปีที่แล้ว

    Many of you have asked me to share my presentation notes, and now… I have them for you! Download all the PDFs of my Notion pages at www.emmading.com/get-all-my-free-resources. Enjoy!

  • @yuecao1740
    @yuecao1740 ปีที่แล้ว +3

    10:50 the square root calculation seems wrong - should be 0.5 instead of 0.05

    • @emma_ding
      @emma_ding  ปีที่แล้ว

      Thanks Yue! My mistake adding an extra 0.

  • @TohaBgood2
    @TohaBgood2 ปีที่แล้ว

    Great video! But some of the Python math is wrong. You applied the square root only to the last terms in two places for pooled and unpooled std. You’re just missing a set of parentheses in those two places.
    Otherwise, great video! Keep it up!