Example Of Gradient Descent For Linear Regression

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ต.ค. 2024
  • This is an example, in excel, where I try to find parameters of a linear regression. (Correction: The error is not well computed. Need to add the squares of G15-G20.)

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

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

    A question if I may, referring to the formula, at 8:26 aren't you supposed to minus theta1 with learning rate / size of training set * sum of the whole G15 to G20 (instead of just G15)? Thanks.

  • @PrachiChaudhary-v8w
    @PrachiChaudhary-v8w ปีที่แล้ว

    Calculation of gradient descent requires derivate of (h(theta) - y)^2. May I know why didn't you calculate the derivative or is it just not used in practice?

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

      It is baked in the algorithm.

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

    what is the formula to reach error sq. ??

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

      I think he has it wrong. Average of the sum of squares should be 68639.667 in the first iteration.

  • @AdityaKumar-sx6qk
    @AdityaKumar-sx6qk 7 หลายเดือนก่อน

    aren't we suppose calculate THETA1 and THETA2

    • @AdityaKumar-sx6qk
      @AdityaKumar-sx6qk 7 หลายเดือนก่อน +1

      initially using linear regression coefficient formula.