Hello,
Can anyone help me,how to calculate the area between a curve(I have the data, not the equation) and a line(linear regression for this curve).I need to do the summation of the area below and under this line.
I tried but it is only for the continuous curve!:
from scipy import integrate
def f(x):
return x**2
integrate.quad(f, x0, x1)
How can I calculate the desired area?