Professional Documents
Culture Documents
In [3]: df = pd.read_csv('Data.csv')
In [6]: CL = 0.95
alpha = 1 - CL
In [8]: n = len(S)
p = 1
degrees_of_freedom = n - p - 1
2.2281388519649385
In [12]: # Note: here the 10^3 is already multiplied that is why the value is 4292.307
instead of 4.292 where S is the Time period
a1=logic.coef_[0]
a0=logic.intercept_
print(f" Equation of the given line is : {a0:.2f} + {a1:.2f}*S")