{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "___\n", "\n", "\n", "___\n", "
\n", " | TV | \n", "radio | \n", "newspaper | \n", "sales | \n", "
---|---|---|---|---|
0 | \n", "230.1 | \n", "37.8 | \n", "69.2 | \n", "22.1 | \n", "
1 | \n", "44.5 | \n", "39.3 | \n", "45.1 | \n", "10.4 | \n", "
2 | \n", "17.2 | \n", "45.9 | \n", "69.3 | \n", "9.3 | \n", "
3 | \n", "151.5 | \n", "41.3 | \n", "58.5 | \n", "18.5 | \n", "
4 | \n", "180.8 | \n", "10.8 | \n", "58.4 | \n", "12.9 | \n", "
\n", " | TV | \n", "radio | \n", "newspaper | \n", "
---|---|---|---|
85 | \n", "193.2 | \n", "18.4 | \n", "65.7 | \n", "
183 | \n", "287.6 | \n", "43.0 | \n", "71.8 | \n", "
127 | \n", "80.2 | \n", "0.0 | \n", "9.2 | \n", "
53 | \n", "182.6 | \n", "46.2 | \n", "58.7 | \n", "
100 | \n", "222.4 | \n", "4.3 | \n", "49.8 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "
63 | \n", "102.7 | \n", "29.6 | \n", "8.4 | \n", "
70 | \n", "199.1 | \n", "30.6 | \n", "38.7 | \n", "
81 | \n", "239.8 | \n", "4.1 | \n", "36.9 | \n", "
11 | \n", "214.7 | \n", "24.0 | \n", "4.0 | \n", "
95 | \n", "163.3 | \n", "31.6 | \n", "52.9 | \n", "
140 rows × 3 columns
\n", "\n", " | TV | \n", "radio | \n", "newspaper | \n", "
---|---|---|---|
37 | \n", "74.7 | \n", "49.4 | \n", "45.7 | \n", "
109 | \n", "255.4 | \n", "26.9 | \n", "5.5 | \n", "
31 | \n", "112.9 | \n", "17.4 | \n", "38.6 | \n", "
89 | \n", "109.8 | \n", "47.8 | \n", "51.4 | \n", "
66 | \n", "31.5 | \n", "24.6 | \n", "2.2 | \n", "
119 | \n", "19.4 | \n", "16.0 | \n", "22.3 | \n", "
54 | \n", "262.7 | \n", "28.8 | \n", "15.9 | \n", "
74 | \n", "213.4 | \n", "24.6 | \n", "13.1 | \n", "
145 | \n", "140.3 | \n", "1.9 | \n", "9.0 | \n", "
142 | \n", "220.5 | \n", "33.2 | \n", "37.9 | \n", "
148 | \n", "38.0 | \n", "40.3 | \n", "11.9 | \n", "
112 | \n", "175.7 | \n", "15.4 | \n", "2.4 | \n", "
174 | \n", "222.4 | \n", "3.4 | \n", "13.1 | \n", "
55 | \n", "198.9 | \n", "49.4 | \n", "60.0 | \n", "
141 | \n", "193.7 | \n", "35.4 | \n", "75.6 | \n", "
149 | \n", "44.7 | \n", "25.8 | \n", "20.6 | \n", "
25 | \n", "262.9 | \n", "3.5 | \n", "19.5 | \n", "
34 | \n", "95.7 | \n", "1.4 | \n", "7.4 | \n", "
170 | \n", "50.0 | \n", "11.6 | \n", "18.4 | \n", "
39 | \n", "228.0 | \n", "37.7 | \n", "32.0 | \n", "
172 | \n", "19.6 | \n", "20.1 | \n", "17.0 | \n", "
153 | \n", "171.3 | \n", "39.7 | \n", "37.7 | \n", "
175 | \n", "276.9 | \n", "48.9 | \n", "41.8 | \n", "
61 | \n", "261.3 | \n", "42.7 | \n", "54.7 | \n", "
65 | \n", "69.0 | \n", "9.3 | \n", "0.9 | \n", "
50 | \n", "199.8 | \n", "3.1 | \n", "34.6 | \n", "
42 | \n", "293.6 | \n", "27.7 | \n", "1.8 | \n", "
129 | \n", "59.6 | \n", "12.0 | \n", "43.1 | \n", "
179 | \n", "165.6 | \n", "10.0 | \n", "17.6 | \n", "
2 | \n", "17.2 | \n", "45.9 | \n", "69.3 | \n", "
12 | \n", "23.8 | \n", "35.1 | \n", "65.9 | \n", "
133 | \n", "219.8 | \n", "33.5 | \n", "45.1 | \n", "
90 | \n", "134.3 | \n", "4.9 | \n", "9.3 | \n", "
22 | \n", "13.2 | \n", "15.9 | \n", "49.6 | \n", "
41 | \n", "177.0 | \n", "33.4 | \n", "38.7 | \n", "
32 | \n", "97.2 | \n", "1.5 | \n", "30.0 | \n", "
125 | \n", "87.2 | \n", "11.8 | \n", "25.9 | \n", "
196 | \n", "94.2 | \n", "4.9 | \n", "8.1 | \n", "
158 | \n", "11.7 | \n", "36.9 | \n", "45.2 | \n", "
180 | \n", "156.6 | \n", "2.6 | \n", "8.3 | \n", "
16 | \n", "67.8 | \n", "36.6 | \n", "114.0 | \n", "
186 | \n", "139.5 | \n", "2.1 | \n", "26.6 | \n", "
144 | \n", "96.2 | \n", "14.8 | \n", "38.9 | \n", "
121 | \n", "18.8 | \n", "21.7 | \n", "50.4 | \n", "
80 | \n", "76.4 | \n", "26.7 | \n", "22.3 | \n", "
18 | \n", "69.2 | \n", "20.5 | \n", "18.3 | \n", "
78 | \n", "5.4 | \n", "29.9 | \n", "9.4 | \n", "
48 | \n", "227.2 | \n", "15.8 | \n", "49.9 | \n", "
4 | \n", "180.8 | \n", "10.8 | \n", "58.4 | \n", "
15 | \n", "195.4 | \n", "47.7 | \n", "52.9 | \n", "
1 | \n", "44.5 | \n", "39.3 | \n", "45.1 | \n", "
43 | \n", "206.9 | \n", "8.4 | \n", "26.4 | \n", "
102 | \n", "280.2 | \n", "10.1 | \n", "21.4 | \n", "
164 | \n", "117.2 | \n", "14.7 | \n", "5.4 | \n", "
9 | \n", "199.8 | \n", "2.6 | \n", "21.2 | \n", "
155 | \n", "4.1 | \n", "11.6 | \n", "5.7 | \n", "
36 | \n", "266.9 | \n", "43.8 | \n", "5.0 | \n", "
190 | \n", "39.5 | \n", "41.1 | \n", "5.8 | \n", "
33 | \n", "265.6 | \n", "20.0 | \n", "0.3 | \n", "
45 | \n", "175.1 | \n", "22.5 | \n", "31.5 | \n", "
Property\n", " | \n", "Value\n", " | \n", "Accuracy\n", " |
---|---|---|
Mean of x\n", " | \n", "9\n", " | \n", "exact\n", " |
Sample variance of x : \n", " | \n", "11\n", " | \n", "exact\n", " |
Mean of y\n", " | \n", "7.50\n", " | \n", "to 2 decimal places\n", " |
Sample variance of y : \n", " | \n", "4.125\n", " | \n", "±0.003\n", " |
Correlation between x and y\n", " | \n", "0.816\n", " | \n", "to 3 decimal places\n", " |
Linear regression line\n", " | \n", "y = 3.00 + 0.500x\n", " | \n", "to 2 and 3 decimal places, respectively\n", " |
Coefficient of determination of the linear regression : \n", " | \n", "0.67\n", " | \n", "to 2 decimal places\n", " |
\n", " | x | \n", "y | \n", "
---|---|---|
0 | \n", "8.0 | \n", "6.58 | \n", "
1 | \n", "8.0 | \n", "5.76 | \n", "
2 | \n", "8.0 | \n", "7.71 | \n", "
3 | \n", "8.0 | \n", "8.84 | \n", "
4 | \n", "8.0 | \n", "8.47 | \n", "
5 | \n", "8.0 | \n", "7.04 | \n", "
6 | \n", "8.0 | \n", "5.25 | \n", "
7 | \n", "19.0 | \n", "12.50 | \n", "
8 | \n", "8.0 | \n", "5.56 | \n", "
9 | \n", "8.0 | \n", "7.91 | \n", "
10 | \n", "8.0 | \n", "6.89 | \n", "
\n", " | Coefficient | \n", "
---|---|
TV | \n", "0.045765 | \n", "
radio | \n", "0.188530 | \n", "
newspaper | \n", "-0.001037 | \n", "
\n", " | TV | \n", "radio | \n", "newspaper | \n", "sales | \n", "
---|---|---|---|---|
TV | \n", "1.000000 | \n", "0.054809 | \n", "0.056648 | \n", "0.782224 | \n", "
radio | \n", "0.054809 | \n", "1.000000 | \n", "0.354104 | \n", "0.576223 | \n", "
newspaper | \n", "0.056648 | \n", "0.354104 | \n", "1.000000 | \n", "0.228299 | \n", "
sales | \n", "0.782224 | \n", "0.576223 | \n", "0.228299 | \n", "1.000000 | \n", "