Professional Documents
Culture Documents
EXPERIMENT 6
GHADGE UTKARSH JAYANT
15BEE0197
1.
For the given details viz. Sector wise Number of Factories,
Productive Capital, No. of
Employees, Total Output and
Net Value Added Fit the Multiple Regression and interpret your
result. Assume the variables as Dependent and Independent
according to your requirement/description. File Name: Ex 3 data
file.
> d=read.csv('C:\\Users\\Admin\\Documents\\datafile.csv')
>d
factories productive employees
1
4074
121
4195
8040.14
1153.84
output
value
298.11
9193.98
175
362.11
9758
146
2160.66
20621 10007.82
390
3524.70
1078
3394 35503.56
1653 17402.97
10
18244 23196.48
11
12
13
766
5296.20
3341.72
19010 26538.20
1399
5443.54
398.79
225.69
847.00
14
906 48957.54
15
560
7828.49
16
75
17
416
777.89
657.85
7783 1971.12
833.44
12718 1812.71
333.73
18
5101 17617.82
19
8457 81283.13
20
755
4883.50
21
378 11283.28
22
77
23
141
24
1401
25
1997 26221.80
26
3446
27
6179 81672.67
28
2799 25750.41
29
4156 22055.62
30
729.50
8091.26
6117.76
9479.07
6589 2078.76
453.11
31
1955
4133.14
32
1084
8710.43
33
435
2548.88
29365 4376.38
612.55
34
944
2487.76
47760 5903.79
838.44
35
1237
36
5655 22471.17
37
6363 23526.76
4590.96
112.26
38
30
39
2775
7480.52
40
1321
2483.64
41
661
42
1982
4676.11
43
2068
7487.31
2192.47
2685
329.05
-25.99
673.31
949.47
44
1429
486.58
45
1853
5383.71
46
137
458.26
3885
47
318
811.56
8096 2274.73
48
528
1040.07
49
2836
50
1126 20378.27
51
4016
52
1300 12955.28
53
6442 42233.13
54
3724 16590.66
55
56
57
570
7693.60
8899.58
1352.14
4294 17942.80
16
217.17
10556 2378.60
168.84
45811 9448.81
681.62
988.97
118.66
571.80
10072 1522.04
218.64
13683 2305.76
442.94
337.19
181.72
58
723 21269.94
59
798 191739.79
60
3308 49973.23
61
727 45406.86
62
453 33475.03
63
4488 128855.12
64
660 11869.09
65
1273
66
1715 12659.35
67
3006 11412.21
68
6654 44571.25
69
135
8630.60
9474.91
70
4839 112809.31
71
634 20711.90
72
2066
9199.68
73
2700 29911.58
74
9715 52727.81
75
903 15567.50
76
1172 10222.97
77
8343
3519.92
78
1173
6447.31
79
1414 90914.58
80
2430
9445.98
81
7739
7921.86
82
1090
5212.97
83
23361 133685.59
84
5747 472212.59
85
1860 79455.67
86
3519 33453.50
87
518
2655.96
29192 7363.90
893.26
88
4037 36109.46
89
2950 22076.63
90
1504 12821.22
91
92
373
1478.36
4827 36376.21
93
78
94
1215
9483.01
95
1727
3494.33
96
1840
4835.95
97
5931 16515.23
98
10713 34328.52
99
1128
1068.16
9237.10
4330
728.31 -132.16
100
168
101
288 11344.64
102
304 14891.23
103
394
5177.39
104
151
412.05
105
545
5589.44
106
148
1723.42
107
86
108
109
3545.17
545.16
4.86
2698 42476.10
380.36
5.90
716.77
150.99
1.42
110
486
7694.84
111
218
1987.79
16437 9415.44
112
697 10602.92
113
597
114
2234.78
1512 14825.49
366.60
115
570
4137.60
116
950
6044.01
117
1130
6193.84
118
533 11969.20
119
717
3121.44
120
1070 10476.49
121
701 10129.18
122
139
1762.60
9809 2807.43
123
368
4187.59
124
62
125
109
126
1816
127
5515 49124.38
143.52
302.57
7031.79
453.53
302.96
3239 1272.67
55.24
182.32
128
798
9400.72
129
1383
130
99
131
551
9236.32
132
621
4558.57
133
897
3295.62
4145.69
2061.29
165.41
134
1656 16080.70
135
6005 48778.91
136
200 45306.56
137
745
8491.10
138
4361 60592.28
139
115 11656.57
140
16
18.90
37.72
8.39
141
131 11675.47
142
364
143
60
815.99
6022
698.86
136.79
144
54
192.86
1588
121.69
47.20
3415.51
145
937 12895.20
146
774
2070.15
147
93
141.20
926
120.83
27.89
148
1804 15106.55
149
1419
150
1277 22674.15
151
152
175
5531.25
201.25
1452 22875.40
153
14
208.63
154
180
498.40
155
102
471.94
344.98
94.02
134.52
10513 1344.72
2171
516.34
37.96
195.50
60.97
156
338
3742.94
157
894
5058.70
158
117
553.58
159
220
863.00
160
61
161
128
398.27
162
149
1760.25
163
51
164
726
3763.83
165
100
871.12
166
38
455.09
2317
295.14
108.86
167
22
407.56
1893
230.36
93.40
168
60
862.65
4210
525.50
202.26
169
156
170
60
171
213
172
173
286
174
6114
704
226.16
3217
28.21
791.68
141.95
7957 2554.65
1709
363.74
370.01
47.75
1274.34
6721 6610.12
347.03
2282
1185.13
93.66
198.74
120.79
67.94
617.38
326.87
418.43
192.58
101.00
1625.82
9276 233988.44
205.55
50.70
> l=lm(factories~output+value,data=c)
>l
Call:
lm(formula = factories ~ output + value, data = c)
Coefficients:
(Intercept)
1.250e+03
output
1.647e-03
value
1.072e-01
> summary(l)
Call:
lm(formula = factories ~ output + value, data = c)
Residuals:
Min
1Q Median
3Q
Max
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 1.250e+03 2.584e+02 4.838 2.92e-06 ***
output
value
1 16
38
17 17
30
22
26
2 28
38
3 16
16
4 23
51
22 31
60
48
73
5 18
52
25 38
32
20
14
6 30
25
43
53 36
39
33
38
7 19
19
55
28 41
51
33
45
8 19
9 34
29
10
10 16
53
21 27
29
37
19
11
11 25
39
18 34
61
40
56
12
12 16
42
31 29
58
35
70
13
13 16
43
15 28
39
32
71
14
14 16
18
15
15 16
16
16 32
26
17
17 19
18
18 17
10
55
48 53
43
42
19
19 24
17
52
16 36
54
38
75
20
20 26
12
57
39 41
32
42
67
52
52
60
54
52
54
46
16 21
39 40
17 52
20 56
1
0
1
0
34 38
20 38
39 37
17 25
39
30
35
23
0
0
0
0
40
27
30
36
20
42
21
26
0
1
0
1
> m=lm(Age+Gender~Married+HealthC+ChildC,data=t)
>m
Call:
lm(formula = Age + Gender ~ Married + HealthC + ChildC, data = t)
Coefficients:
(Intercept)
22.29824
Married
-1.89921
HealthC
-0.03077
ChildC
3.21078
37
35
47
26
15
88
16
64
44
25
38
39
> summary(m)
Call:
lm(formula = Age + Gender ~ Married + HealthC + ChildC, data = t)
Residuals:
Min
1Q Median
3Q
Max
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 22.29824 11.01317 2.025 0.0599 .
Married
-1.89921
HealthC
-0.03077
ChildC
3.21078