Skip to content

Commit 06c1351

Browse files
committed
linear regression ML tutorial
1 parent 0b6ce6c commit 06c1351

File tree

6 files changed

+433
-42
lines changed

6 files changed

+433
-42
lines changed

ML/1_linear_reg/1_linear_regression.ipynb

Lines changed: 356 additions & 41 deletions
Large diffs are not rendered by default.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
year,per capita income (US$)
2+
1970,3399.299037
3+
1971,3768.297935
4+
1972,4251.175484
5+
1973,4804.463248
6+
1974,5576.514583
7+
1975,5998.144346
8+
1976,7062.131392
9+
1977,7100.12617
10+
1978,7247.967035
11+
1979,7602.912681
12+
1980,8355.96812
13+
1981,9434.390652
14+
1982,9619.438377
15+
1983,10416.53659
16+
1984,10790.32872
17+
1985,11018.95585
18+
1986,11482.89153
19+
1987,12974.80662
20+
1988,15080.28345
21+
1989,16426.72548
22+
1990,16838.6732
23+
1991,17266.09769
24+
1992,16412.08309
25+
1993,15875.58673
26+
1994,15755.82027
27+
1995,16369.31725
28+
1996,16699.82668
29+
1997,17310.75775
30+
1998,16622.67187
31+
1999,17581.02414
32+
2000,18987.38241
33+
2001,18601.39724
34+
2002,19232.17556
35+
2003,22739.42628
36+
2004,25719.14715
37+
2005,29198.05569
38+
2006,32738.2629
39+
2007,36144.48122
40+
2008,37446.48609
41+
2009,32755.17682
42+
2010,38420.52289
43+
2011,42334.71121
44+
2012,42665.25597
45+
2013,42676.46837
46+
2014,41039.8936
47+
2015,35175.18898
48+
2016,34229.19363

ML/1_linear_reg/areas.csv

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
area
2+
1000
3+
1500
4+
2300
5+
3540
6+
4120
7+
4560
8+
5490
9+
3460
10+
4750
11+
2300
12+
9000
13+
8600
14+
7100

ML/1_linear_reg/equation.PNG

273 KB
Loading

ML/1_linear_reg/homeprices.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ area,price
33
3000,565000
44
3200,610000
55
3600,680000
6-
4000,725000
6+
4000,725000

ML/1_linear_reg/prediction.csv

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
area,prices
2+
1000,316404.1095890411
3+
1500,384297.9452054794
4+
2300,492928.0821917808
5+
3540,661304.794520548
6+
4120,740061.6438356165
7+
4560,799808.2191780822
8+
5490,926090.7534246575
9+
3460,650441.7808219178
10+
4750,825607.8767123288
11+
2300,492928.0821917808
12+
9000,1402705.479452055
13+
8600,1348390.4109589043
14+
7100,1144708.904109589

0 commit comments

Comments
 (0)