Escolar Documentos
Profissional Documentos
Cultura Documentos
Linear Regression
LINEAR REGRESSION
October 2, 2014 Saimadhu Polamuri 5 Comments DATAMINING
1
Shares
http://dataaspirant.com/2014/10/02/linear-regression/
1/8
1/2/2017
Linear Regression
cient
2/8
1/2/2017
Linear Regression
The below function is called as a cost function, the cost function ( J() ) is
nothing but just a Squared error function.
http://dataaspirant.com/2014/10/02/linear-regression/
3/8
1/2/2017
Linear Regression
Year
2000
http://dataaspirant.com/2014/10/02/linear-regression/
Population
1,014,004,000
4/8
1/2/2017
Linear Regression
2001
1,029,991,000
2002
1,045,845,000
2003
1,049,700,000
2004
1,065,071,000
2005
1,080,264,000
2006
1,095,352,000
2007
1,129,866,000
2008
1,147,996,000
10
2009
1,166,079,000
11
2010
1,173,108,000
12
2011
1,189,173,000
13
2012
1,205,074,000
Year
Population
2014
2,205,074,000
http://dataaspirant.com/2014/10/02/linear-regression/
5/8
1/2/2017
Linear Regression
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Required Packages
py.sign_in("username", "API_authentication_code")
x = [
datetime(year=2000,month=1,day=1),
datetime(year=2001,month=1,day=1),
datetime(year=2002,month=1,day=1),
datetime(year=2003,month=1,day=1),
datetime(year=2004,month=1,day=1),
datetime(year=2005,month=1,day=1),
datetime(year=2006,month=1,day=1),
datetime(year=2007,month=1,day=1),
datetime(year=2008,month=1,day=1),
datetime(year=2009,month=1,day=1),
datetime(year=2010,month=1,day=1),
datetime(year=2011,month=1,day=1),
datetime(year=2012,month=1,day=1)]
data = Data([
Scatter(
http://dataaspirant.com/2014/10/02/linear-regression/
6/8
1/2/2017
Linear Regression
28
29
30
31
32
33
34
35
36
37
x = x,
])
Follow us:
FACEBOOK|QUORA|TWITTER| GOOGLE+ | LINKEDIN|REDDIT| FLIPBOARD |
MEDIUM| GITHUB
I hope you liked todays post. If you have any questions then feel free to
http://dataaspirant.com/2014/10/02/linear-regression/
7/8
1/2/2017
Linear Regression
comment below. If you want me to write on one speci c topic then do tell
it to me in the comments below.
Share this:
Related
Linear Regression
Implementation in
Python
In "DATAMINING"
http://dataaspirant.com/2014/10/02/linear-regression/
Linear Regression
di erence between
classi cation and
regression in machine
learning
In "DATAMINING"
DataAspirant August2015
newsletter
In "DATAMINING"
8/8