In: Advanced Math
All you have to do is just replace y by (Y=1/y)
rest code will be the same as that of linear regression
I am writing my code in python
PLEASE LIKE IT RAISE YOUR THUMBS UP
IF YOU ARE HAVING ANY DOUBT FEEL FREE TO ASK IN COMMENT SECTION