Last answered:

11 Mar 2024

Posted on:

09 Mar 2024

0

Regarding logit code implementation

I am applying the code, but it shows somewhat different results - 

1 answers ( 0 marked as helpful)
Instructor
Posted on:

11 Mar 2024

0

Hey Siddhant,


Thank you for reaching out!


Note that the first line in the last cell of your notebook reads

x = x1.add(x1)

while instead, it should read

x = x1.add_constant(x1)

Once you correct this, please restart the kernel of your notebook and rerun all cells in order.


Let me know if the problem persist and the result you get still differs from the one shown in the lesson.

 

Kind regards,

365 Hristina

Submit an answer