Diskusi 5 ESPA4123 (Nadya Afrilia 045163973)

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Diskusi 5

permintaan (X) Harga (Y) x^2 y^2 xy

3 8 9 64 24
4 7 16 49 28
5 7 25 49 35
6 7 36 49 42
6 6 36 36 36
7 6 49 36 42
8 6 64 36 48
9 6 81 36 54
10 5 100 25 50
10 5 100 25 50
jumlah 68 63 516 405 409

a. Persamaan regresi
𝑛Σ𝑥𝑦−Σ𝑥Σ𝑦
𝑏= 2 2
𝑛Σ𝑥 −(Σ𝑥)
10(409) − (68)(63)
𝑏= 2
10(516) − (68)
𝑏 =− 0. 3619

𝑎 = 𝑦 − 𝑏𝑥
𝑎 = [ 63 ] − (− 0. 3619)[ 68 ]
10 10
𝑎 = 8. 7612

Persamaan garis regresi:


𝑌 = 8. 7612 − 0. 3619𝑋

b. Koefisien korelasi dan koefisien determinasi


Koefisien korelasi = r

10(409) − (68)(63)
𝑟 = 2 2
[10(516)−(68) ][10(405)−(63) ]
𝑟 = 0. 9311
2
𝑘𝑜𝑒𝑓𝑖𝑠𝑖𝑒𝑛 𝑑𝑒𝑡𝑒𝑟𝑚𝑖𝑛𝑎𝑠𝑖 = 𝑟
2 2
𝑟 = (0. 9311)
2
𝑟 = 0. 8669

You might also like