Latihan 3 Linear Regression

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

LATIHAN 3

LINEAR REGRESSION

Gunakan dan pelajari e book yg sdh dishare di edmodo pada bab 14.
Kerjakan Soal berikut ini
14.3 Given the data
29.65 28.55 28.65 30.15 29.35 29.75 29.25
30.65 28.15 29.85 29.05 30.25 30.85 28.75
29.65 30.45 29.15 30.45 33.65 29.35 29.75
31.25 29.45 30.15 29.65 30.55 29.65 29.25
Determine
(a) the mean, (b) median, (c) mode, (d) range, (e) standard deviation, (f) variance, and (g)
coefficient of variation.
(h) Construct a histogram. Use a range from 28 to 34 with increments of 0.4.
(i) Assuming that the distribution is normal, and that your estimate of the standard deviation
is valid, compute the range (i.e., the lower and the upper values) that encompasses 68% of the
readings. Determine whether this is a valid estimate for the data in this problem.

14.7 The following data were gathered to determine the relationship


between pressure and temperature of a fixed volume of 1 kg of nitrogen.
The volume is 10 m3.

Employ the ideal gas law pV = nRT to determine R on the basis of these
data. Note that for the law, T must be expressed in kelvins.
Jawaban

1. Data : 29.65 28.55 28.65 30.15 29.35 29.75 29.25


30.65 28.15 29.85 29.05 30.25 30.85 28.75
29.65 30.45 29.15 30.45 33.65 29.35 29.75
31.25 29.45 30.15 29.65 30.55 29.65 29.25

i yi (yi-y)2
1 28.15 2.829
2 28.55 1.643
3 28.65 1.397
4 28.75 1.171
5 29.05 0.611
6 29.15 0.465
7 29.25 0.338
8 29.25 0.338
9 29.35 0.232
10 29.35 0.232
11 29.45 0.146
12 29.65 0.033
13 29.65 0.033
14 29.65 0.033
15 29.65 0.033
16 29.75 0.00674
17 29.75 0.00674
18 29.85 0.000319
19 30.15 0.101
20 30.15 0.101
21 30.25 0.174
22 30.45 0.381
23 30.45 0.381
24 30.55 0.515
25 30.65 0.668
26 30.85 1.036
27 31.25 2.010
28 33.65 14.576

Σ yi 835.3
a. Mean  ý= = =29.832
Σi 28
b. Median  29.65
c. Mode  29.65
d. Range  Max-Min = 33.65 – 28.15 = 5.5
e. s y = √ Σ ¿ ¿ ¿ (Standart deviation)
f. Variance  s2y =1.045 2=1.092
1.045
g. Coefficient of Variance  c.v. = x 100 %=3.502 %
29.832
h. Histogram

Lower Upper Midpoin Frequency


t
28 28.4 28.2 1
28.4 28.8 28.6 3
28.8 29.2 29 2
29.2 29.6 29.4 5
29.6 30 29.8 7
30 30.4 30.2 3
30.4 30.8 30.6 4
30.8 31.2 31 1
31.2 31.6 31.4 1
31.6 32 31.8
32 32.4 32.2
32.4 32.8 32.6
32.8 33.2 33
33.2 33.6 33.4
33.6 34 33.8 1

Histogram
7

0
28.2 28.6 29 29.4 29.8 30.2 30.6 31 31.4 31.8 32.2 32.6 33 33.4 33.8

i. 68% of the readings should fall between ý−s y and ý + s y . That is, between
29.83214 – 1.04529 = 28.78685 and 29.83214 + 1.04529 = 30.87743. Twenty-
two values fall between these bounds which is equal to 22/28 = 78.6% of the
values which is somewhat higher than the expected value of 68% for the normal
distribution.

2.

You might also like