Rohmad Hidayat's Blog


My Notes on Mobile Technology, Python GUI, Python Web Framework, Software Development, Database, Server, Embedded System, Mini Computer

Simple Regression with Python

Here, Python ‘batteries’ for simple regression analysis

>>> from scipy import *
>>> x=[1,2,3]
>>> y=[2,3,4]
>>> reg=stats.linregress(x,y)
>>> reg
(1.0, 1.0, 1.0, 9.0031631615710612e-011, 0.0)

Nilai array yang keluar adalah nilai dari GRADIENT,INTERCEPT, R-Value, P-Value, Stdr Error


Filed under: Python

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: