40
REGRESI LINIER SEDERHANA KULIAH #2 ANALISIS REGRESI Usman Bustaman

Regresi linier sederhana

Embed Size (px)

DESCRIPTION

Regresi linier sederhana. Kuliah #2 analisis regresi Usman Bustaman. Apa itu ?. Regresi Linier Sederhana. Regresi ( Buku 5: Kutner , Et All P. 5). Sir Francis Galton (latter part of the 19th century): studied the relation between heights of parents and children - PowerPoint PPT Presentation

Citation preview

Page 1: Regresi  linier  sederhana

REGRESI LINIER SEDERHANA

KULIAH #2 ANALISIS REGRESI

Usman Bustaman

Page 2: Regresi  linier  sederhana

APA ITU?• Regresi

• Linier

• Sederhana

Page 3: Regresi  linier  sederhana

REGRESI (Buku 5: Kutner, Et All P. 5)

Sir Francis Galton (latter part of the 19th century):

- studied the relation between heights of parents and children

- noted that the heights of children of both tall and short parents appeared to "revert" or "regress" to the mean of the group.

- developed a mathematical description of this regression tendency,

- today's regression models (to describe statistical relations between variables).

Page 4: Regresi  linier  sederhana

LINIER

Masih ingat Y=mX+B? Slope? Konstanta?

B

m

X

Y

Page 5: Regresi  linier  sederhana

LINIER LEBIH LANJUT…- Linier dalam paramater…

- Persamaan Linier orde 1:

- Persamaan Linier orde 2:

- Dst… (orde pangkat tertinggi yang terdapat pada variabel bebasnya)

Page 6: Regresi  linier  sederhana

SEDERHANA

Relasi antar 2 variabel:

1 variabel bebas (independent variable)

1 variabel tak bebas (dependent variable)

Y=mX+B?

Mana variabel bebas?

Mana variabel tak bebas?

B

m

X

Y

Page 7: Regresi  linier  sederhana

BAGAIMANA MEMBANGUN MODEL REGRESI LINIER SEDERHANA?

Analisis/Comment Grafik-2 Berikut:

Page 8: Regresi  linier  sederhana

Analisis/Comment Grafik-2 Berikut:

A B

C D

Page 9: Regresi  linier  sederhana

FUNGSI RATA-2 (Mean Function)

If you know something about X, this knowledge helps you predict something about Y.

Page 10: Regresi  linier  sederhana

PREDIKSI TERBAIK…

Bagaimana mengestimasi parameter dengan cara terbaik…

Page 11: Regresi  linier  sederhana

Regresi Linier

Page 12: Regresi  linier  sederhana

Regresi Linier

Koefisien regresi

Populasi

Sampel

Y = b0 + b1Xi

Y =𝛽0+𝛽1 𝑋

Page 13: Regresi  linier  sederhana

Regresi Linier Model

ie

X

Y

Y X b b0 1+=Yi

Xi

? (the actual value of Yi)

Page 14: Regresi  linier  sederhana

REGRESI TERBAIK = MINIMISASI ERROR- Semua residual harus nol

- Minimum Jumlah residual

- Minimum jumlah absolut residual

- Minimum versi Tshebysheff

- Minimum jumlah kuadrat residual OLS

Page 15: Regresi  linier  sederhana

ORDINARY LEAST SQUARE (OLS)

Page 16: Regresi  linier  sederhana

ASSUMPTIONS

Linear regression assumes that… • 1. The relationship between X and Y is linear• 2. Y is distributed normally at each value of X• 3. The variance of Y at every value of X is the same

(homogeneity of variances)• 4. The observations are independent

Page 17: Regresi  linier  sederhana

ASUMSI LEBIH LANJUT…

Alexander Von Eye & Christof Schuster (1998) Regression Analysis

for Social Sciences

Page 18: Regresi  linier  sederhana

ASUMSI LEBIH LANJUT…

Alexander Von Eye & Christof Schuster (1998) Regression Analysis

for Social Sciences

Page 19: Regresi  linier  sederhana

PROSES ESTIMASI PARAMETER (Drapper & Smith)

Page 20: Regresi  linier  sederhana

KOEFISIEN REGRESI

XbYb 10 21x

xy

xx

xy

S

Sb

n

XX

n

YY observasi jumlah n

1

)( 1

2

n

YYYVar

n

i

1)( 1

2

n

XXXVar

n

i

xxS

)(SSTS yy

xyS

1),(Covar 1

n

YYXXYX

n

i

Page 21: Regresi  linier  sederhana

SIMBOL-2 (Weisberg p. 22)

Page 22: Regresi  linier  sederhana

MAKNA KOEFISIEN REGRESI

b0 ≈ …..

b1 ≈ …..

?x = 0

- Tinggi vs berat badan- Nilai math vs stat

- Lama sekolah vs pendptn- Lama training vs jml produksi

…….

Page 23: Regresi  linier  sederhana

C A

B

A

yi

 

x

yyi

 

C

B

ii xy

y

A2 B2 C2

SST Total squared distance of observations from naïve mean of y Total variation

SSR Distance from regression line to naïve mean of y

 Variability due to x (regression)   

SSEVariance around the regression line  Additional variability not explained by x—what least squares method aims to minimize

n

iii

n

i

n

iii yyyyyy

1

2

1 1

22 )ˆ()ˆ()(

REGRESSION PICTURE

Page 24: Regresi  linier  sederhana

Y

Variance to beexplained by predictors

(SST)

SST (SUM SQUARE TOTAL)

Page 25: Regresi  linier  sederhana

Y

X

Variance NOT explained by X

(SSE)

Variance explained by X

(SSR)

SSE & SSR

Page 26: Regresi  linier  sederhana

Y

X

Variance NOT explained by X

(SSE)

Variance explained by X

(SSR)

SST = SSR + SSE Variance to beexplained by predictors

(SST)

Page 27: Regresi  linier  sederhana

Koefisien Determinasi

orsby Predict explained be toVariance

Xby explained Variance2 SST

SSRR

Coefficient of Determinationto judge the adequacy of the regression model

Maknanya: …. ?

Page 28: Regresi  linier  sederhana

Koefisien Determinasi

Page 29: Regresi  linier  sederhana

SALAH PAHAM TTG R2

1. R2 tinggi prediksi semakin baik ….

2. R2 tinggi model regresi cocok dgn datanya …

3. R2 rendah (mendekati nol) tidak ada hubungan antara variabel X dan Y …

Page 30: Regresi  linier  sederhana

Korelasi

yx

xy

yyxx

xyxy

xy

SS

Sr

rRR

2

Correlationmeasures the strength of the linear association between two

variables.

Pearson Correlation…?

Buktikan…!

Page 31: Regresi  linier  sederhana

KORELASI & REGRESI

21x

xy

xx

xy

S

Sb

yx

xy

yyxx

xyxy

SS

Sr

𝑺𝒀=√𝑺𝒀𝒀

𝑺𝑿=√𝑺𝑿𝑿

Page 32: Regresi  linier  sederhana

ASSUMPTIONS

Linear regression assumes that… • 1. The relationship between X and Y is linear• 2. Y is distributed normally at each value of X• 3. The variance of Y at every value of X is the same

(homogeneity of variances)• 4. The observations are independent

Page 33: Regresi  linier  sederhana

UJI PARAMETER RLS

Linear regression assumes that… • 1. The relationship between X and Y is linear• 2. Y is distributed normally at each value of X• 3. The variance of Y at every value of X is the same

(homogeneity of variances)• 4. The observations are independent

Page 34: Regresi  linier  sederhana

DISTRIBUSI SAMPLING B1

Page 35: Regresi  linier  sederhana

b1 ~ Normal ~ Normal

Page 36: Regresi  linier  sederhana

Uji koefisien regresi

ib

iikn S

bt

)1(

0:

0:

1

0

i

i

H

H

Page 37: Regresi  linier  sederhana

Uji koefisien regresi

xx

eekn

SS

b

bS

bt

2

11

1

11)1( )(

0:

0:

1

10

AH

H

Page 38: Regresi  linier  sederhana

Selang Kepercayaan koefisien regresi

xx

ekn

xx

ekn S

Stb

S

Stb

2

)1(,2/11

2

)1(,2/1

Confidence Interval for b1

Page 39: Regresi  linier  sederhana

Uji koefisien regresi

xxe

ekn

SX

nS

b

bS

bt

22

00

0

00)1(

1)(

0:

0:

0

00

AH

H

Page 40: Regresi  linier  sederhana

xxekn

xxekn S

X

nStb

S

X

nStb

22

)1(,2/00

22

)1(,2/0

11

Confidence Interval for the intercept

Selang Kepercayaan koefisien regresi