Data Scientist Interview - Uber | AB Testing + SQL

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ม.ค. 2025

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

  • @brittosabu07
    @brittosabu07 ปีที่แล้ว +29

    Q1:
    SELECT
    MONTH(order_time),
    SUM(CASE WHEN DATETIME_DIFF(actural_delivery_time,predicted_delivery_time,MINUTE)

    • @alexandretostes9002
      @alexandretostes9002 ปีที่แล้ว +4

      FORMAT_DATE('%Y%m', order_time) is an interesting alternative to avoid grouping months from different years

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

      @@alexandretostes9002 Right, missed that detail.
      I think DATE_TRUNC() also works

    • @khadijasultana8964
      @khadijasultana8964 7 หลายเดือนก่อน

      where year(actual_delivery_time)=2021 is required. if multiple years of data present, then all years...month wise grouping will be done

    • @AsefWafa
      @AsefWafa 4 หลายเดือนก่อน

      Only mistake is both the case and the count(*) are integer values. So you want to convert it to a float to have decimal points. Easy fix to your code would be *100.0.

  • @balanaveenvishal
    @balanaveenvishal ปีที่แล้ว +28

    When MDE increases, the sample size decreases !

  • @orruijinal4568
    @orruijinal4568 3 หลายเดือนก่อน +1

    The definition of Power is in fact the probability of 'not' making the type II error, not the other way around mentioned by the interviewee. It is the probability of rejecting the null hypothesis when, in fact, it is false.

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

    0.07 is still not stat sig - going ahead and rejecting the null in that scenario would be wrong

  • @Robertking1996
    @Robertking1996 2 หลายเดือนก่อน

    This was great

  • @gowthamchandanraju
    @gowthamchandanraju 3 หลายเดือนก่อน +3

    Why can't we use MIN function to determine the first order the driver delivered:
    WITH zero_rating_first_order AS(
    SELECT driver_id, MIN(order_place_time)
    FROM delivery_orders
    WHERE delivery_rating = 0
    GROUP BY driver_id)
    SELECT COUNT(zrfo.driver_id)*100/COUNT(DISTINCT(driver_id))
    FROM delivery_orders JOIN zero_rating_first_order as zrfo
    ON driver_id;
    Or is there anything that I missed?

  • @learningrealenglish4964
    @learningrealenglish4964 6 หลายเดือนก่อน +3

    ChatGPT can answer all the question related to code. So I don't think interviewer should ask those questions anymore. They would focus on how we solve the problems by ideas

  • @zinomixx
    @zinomixx ปีที่แล้ว +2

    Awesome

  • @user-dt4uc8fu
    @user-dt4uc8fu 9 หลายเดือนก่อน +5

    The interviewee does not understand what he said. Unfortunately, he now becomes interviewer. This explains why so many people who knows these stupid stuff failed the interviews.

  • @nesrinehadjamar2197
    @nesrinehadjamar2197 หลายเดือนก่อน

    honestly i found the response of the interviewee so messy .. are they correct ?