top of page
Search

PYTHON CODING

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • Oct 20, 2025
  • 1 min read
import statsmodels.api as sm
X = sm.add_constant([1,2,3,4])
Y = [2,4,6,8]
model = sm.OLS(Y, X).fit()
print(model.params.tolist())

[Running] python3 -u "/Users/name/test/test485.py"
[0.0, 1.9999999999999996]
[Done] exited with code=0 in 1.967 seconds
#Python #PythonCoding #VSC

Try to run it.
Try to run it.

















 
 
 

Recent Posts

See All

1 Comment


Guest
Oct 20, 2025

Try to verify it.

Like
bottom of page