Regression Practice
Regression Practice
8 15
7 19
6 25
4 23
2 34
1 40
4.- The grades obtained by five students in Mathematics and Accounting are:
Mathematics accounting
6 6.5
4 4.5
8 7.0
5 5.0
3.5 4.0
Determine the regression lines and calculate the expected grade in Physics for a
student who has 7.5 in Mathematics.
5- The heights and weights of 10 student basketball players from a team
son
6.- Based on the following data regarding hours worked in a workshop (X),
and produced units (Y), determine the regression line of Y on X, the
linear correlation coefficient and interpret it.
7.- A group of 50 individuals has been asked for information about the number of
hours they spend daily sleeping and watching television. The classification of the
responses have allowed us to create the following table:
8.- The following table gives us the aptitude test scores (X) given to six
dependent on trial and sales of the first trial month (Y) in hundreds
euros.
X 25 42 33 54 29 36
Y 42 72 50 90 45 48
a) Find the correlation coefficient and interpret the result obtained.
b) Calculate the regression line of Y on X. Predict the sales of a
seller who scores 47 on the test.
9. "The attached table shows the number of pages and the price of twelve
technical books
310 350
'
400 800
'
420 250
'
300 350
'
170 180
'
610 500
'
280 350
'
430 700
'
420 540
'
310 730
'
230 320
'
450 370
'
10.- 'The resistance of the cement depends, among other things, on the time of
drying of cement. In an experiment, the strength of blocks was obtained.
of cement with different drying times, the results were as follows
Time (days) Resistance (kg/cm) 2
1920 1.006 55
'
1945 747 97 '
1970 476 127
'
1925 1.162 48
'
1950 732 96 '
1975 386 115
'
1930 1.479 78
'
1955 683 89 '
1980 368 114
'
1935 805 82
'
1960 686 114 '
1940 795 86
'
1965 493 106 '
13 261
'
31 364
'
27 360
'
16 332
'
19 338
'
25 365
'
30 361
'
20 365
'
7 214
'
2 165
'
1 169
'
15 310
'
8 264
'
4 198
'
13 314
'
6 191
'
10 246
'
3. Estimate and calculate a confidence interval at 90% and 95% for the
salary prediction of a computer scientist with 8 years of experience
experience.
4. Is there any anomaly observed in the residuals vs. the graph?
regressed variable?
x y x y x y
77 84 102 88 133 146
137 116 91 104 115 128
117 123 104 129 105 115
94 128 107 86 87 79
116 155 112 96 91 85
102 101 113 144 100 120
111 118 110 139 76 60
93 113 125 113 66 51
88 104
X1 = X2 Y1 Y2 Y3 X4 Y4
=X3
10 804
'
914
'
746
'
8 658
'
8 695
'
814
'
677
'
8 576
'
13 758
'
874
'
1274 '
8 771
'
9 881
'
877
'
711
'
8 884
'
11 833
'
926
'
781
'
8 847
'
14 996
'
810
'
884
'
8 704
'
6 724
'
613
'
608
'
8 525
'
4 426
'
310
'
539
'
8 556
'
12 1084 '
913
'
815
'
8 791
'
7 482
'
726
'
642
'
8 689
'
5 568
'
474
'
573
'
19 1250 '
1. Calculate the regression line of Y against X in these four datasets.
de datos. Calcular el coeficiente de correlación.
15.- "In 34 batches of 120 pounds of peanuts, the average level was observed."
aflatoxin (parts per billion) and the percentage of peanuts not
contaminated in each batch .
X Y X Y X Y X Y X Y
30'
99971
'
188 '
99942
'
468
'
99863
'
123
'
99956
'
258
'
99858 '
47'
99979
'
189 '
99932
'
468
'
99811
'
713
'
99821
'
188
'
99975 '
83'
99982
'
217 '
99908
'
581
'
99877
'
125
'
99972
'
306
'
99987 '
93'
99971
'
219 '
99970
'
623
'
99798
'
126
'
99889
'
362
'
99958 '
99'
99957
'
228 '
99985
'
706
'
99855
'
159
'
99961
'
398
'
99909 '
110 '
99961
'
242 '
99933
'
711
'
99788
'
167
'
99982
'
443
'
99859 '
832 '
99830
'
836 '
99718
'
995
'
99642
'
1112 '
99658
'
1. Analyze this data and investigate the relationship between these two variables
to predict Y based on X. Is linear fitting appropriate?
2. Do the residues verify the structural hypotheses?
3. Attempt to find a parametric fit that improves upon the linear fit.
16.- ."In fifteen houses in the city of Milton Keynes, it was observed during a
period of time the average temperature difference (in degrees
degrees Celsius) between the temperature outside and the temperature at home, and the
daily gas consumption in kWh.
103
'
6981
'
134
'
7532
'
156 '
8635
'
114
'
8275
'
136
'
6981
'
164 '
11023 '
115
'
8175
'
150
'
7854
'
165 '
10655 '
125
'
8038
'
152
'
8129
'
170 '
8550
'
131
'
8589
'
153
'
9920
'
171 '
9002
'
1.- Make a graph of the data. Is there a relationship between these two?
variables?
2.- Can the gas consumption be explained by a linear relationship with the
temperature difference?
17.- ."The height (in centimeters) and weight (in kilograms) of thirty was measured.
eleven-year-old girls from the Keaton Medidle Acholo of Bradford. Study these
data and the relationship between both variables.
Height Weight Height Weight Height Weight Height Weight Height Weight
a a a a a
1. Analyze this data. Carry out a descriptive and graphic study of it.
same.
2. Study the relationship between the tests.
3. Check the model's hypotheses.
Who Mag Who Mag Who Mag Who Mag Who Mag Who Mag
24 25 18 19 17 12 21 18 20 21 25 16
16 22 20 10 19 15 24 22 24 18 15 16
24 17 21 23 16 15 15 20 24 20 16 26
18 21 20 20 15 15 20 21 23 25 27 28
18 20 21 19 15 15 20 21 29 20 27 28
10 13 15 15 13 17 25 25 27 18 30 30
14 16 16 16 24 18 27 22 23 19 29 32
16 14 15 16 22 16 22 18 19 16 26 28
25 28 25 36 32 40 28 33 25 33
GC 4520 '
4614 '
4820 '
5005
'
5280 '
5575
'
5857 '
PNB 1.0114'
1.0581 '
1.0876'
1.0856
'
1.1224'
1.1859 '
1.2550 '
GC 6027 '
6344 '
6579 '
6721
'
6968 '
7371
'
7685 '
PNB 1.2480'
1.2339 '
1.3004'
1.3717
'
1.4369'
1.4830 '
1.4807 '
GC 7636 '
7802 '
8237 '
8639
'
9048 '
9309
'
9351 '
t p t p t p t p
1 084
'
60 054
'
720 036
'
10080 008
'
5 071
'
120 047
'
1440 026
'
15 061
'
240 045
'
2880 020
'
30 056
'
480 038
'
5760 016
'
DEVELOPMENT