Академический Документы
Профессиональный Документы
Культура Документы
Chap 11-1
Analisis Regresi
Noorlaily Fitdiarini, SE., MBA.
2002 Prentice-Hall, Inc.
Chap 11-2
Tujuan Analisis Regresi
X2 tests of independence digunakan untuk
menentukan adanya suatu hubungan statistik
antara 2 variabel, tetapi tidak menyebutkan
bagaimana hubungannya.
Analisis Regresi & Korelasi menunjukkan baik sifat
maupun kuatnya suatu hubungan antara kedua
variabel tersebut.
Setiap regresi pasti ada korelasinya, tetapi korelasi
belum tentu dilanjutkan oleh regresi.
Korelasi yang tidak dilanjutkan dengan regresi
adalah korelasi antara 2 variabel yang tidak
mempunyai hubungan kausal/sebab-akibat, atau
hubungan fungsional (berdasarkan teori/konsep)
2002 Prentice-Hall, Inc.
Chap 11-3
Macam-macam Model Regresi
Positive Linear Relationship
Negative Linear Relationship
Relationship NOT Linear
No Relationship
2002 Prentice-Hall, Inc.
Chap 11-4
Model Regresi Linear Sederhana
Hubungan di antara 2 variabel
digambarkan dengan fungsi linear
Perubahan pada satu variabel
menyebabkan perubahan pada variabel
yang lain
Ada ketergantungan satu variabel
terhadap yang lain
2002 Prentice-Hall, Inc.
Chap 11-5
Regresi Linear
Y intercept
Slope
Coefficient
Random
Error
Dependent
(Response)
Variable
Independent
(Explanatory)
Variable
i i i
Y X | | c
0 1
+ + =
2002 Prentice-Hall, Inc.
Chap 11-6
Regresi Linear
(continued)
i i i
Y X | | c
0 1
+ + =
= Random Error
Y
X
(Observed Value of Y) =
Observed Value of Y
i
c
|
0
|
1
2002 Prentice-Hall, Inc.
Chap 11-7
Interpretasi dari
Slope dan Intercept
adalah rata-rata dari nilai Y
jika nilai X sama dengan 0.
mengukur perubahan pada
rata-rata nilai Y sebagai akibat dari perubahan
satu unit X.
( )
| 0 E Y X |
0
= =
( )
1
| E Y X
X
|
A
=
A
2002 Prentice-Hall, Inc.
Chap 11-8
adalah rata-rata dari nilai Y
yang diestimasi jika nilai X sama dengan 0.
perubahan yang diestimasi
pada rata-rata nilai Y sebagai akibat dari perubahan
satu unit X.
(continued)
( )
| 0 b E Y X
0
= =
( )
1
| E Y X
b
X
A
=
A
Interpretation of the
Slope and the Intercept
2002 Prentice-Hall, Inc.
Chap 11-9
Regresi Linear Sederhana:
Contoh Kasus
Anda ingin menguji
ketergantungan linear
dari penjualan tahunan
dari suatu toko
terhadap ukuran/luas
toko. Sampel data
untuk 7 toko diperoleh.
Bagaimana persamaan
garis lurus yang paling
sesuai dengan data
tersebut?
Annual
Store Square Sales
Feet ($1000)
1 1,726 3,681
2 1,542 3,395
3 2,816 6,653
4 5,555 9,543
5 1,292 3,318
6 2,208 5,563
7 1,313 3,760
2002 Prentice-Hall, Inc.
Chap 11-10
Scatter Diagram: Contoh Kasus
0
2 0 0 0
4 0 0 0
6 0 0 0
8 0 0 0
1 0 0 0 0
1 2 0 0 0
0 1 0 0 0 2 0 0 0 3 0 0 0 4 0 0 0 5 0 0 0 6 0 0 0
S qua re Fe e t
A
n
n
u
a
l
S
a
l
e
s
(
$
0
0
0
)
Excel Output
2002 Prentice-Hall, Inc.
Chap 11-11
Persamaan Garis Regresi:
Contoh Kasus
0 1
1636.415 1.487
i i
i
Y b b X
X
= +
= +
From Excel Printout:
Co effi ci en ts
I n t e r c e p t 1 6 3 6 . 4 1 4 7 2 6
X V a r i a b l e 1 1 . 4 8 6 6 3 3 6 5 7
2002 Prentice-Hall, Inc.
Chap 11-12
Graph of the Sample
Regression Line: Example
0
2 0 0 0
4 0 0 0
6 0 0 0
8 0 0 0
1 0 0 0 0
1 2 0 0 0
0 1 0 0 0 2 0 0 0 3 0 0 0 4 0 0 0 5 0 0 0 6 0 0 0
S q u a r e F e e t
A
n
n
u
a
l
S
a
l
e
s
(
$
0
0
0
)
2002 Prentice-Hall, Inc.
Chap 11-13
Interpretation of Results:
Contoh Kasus
Slope = 1.487 berarti bahwa untuk setiap
peningkatan satu unit X, kita memprediksikan rata-
rata Y akan meningkat kira-kira sebesar 1,487 unit
Jadi setiap peningkatan 1 sq foot ukuran toko,
diperkirana penjual tahunan akan meningkat
sebesar $1487.
1636.415 1.487
i i
Y X = +
2002 Prentice-Hall, Inc.
Chap 11-14
Measure of Variation:
The Sum of Squares
(continued)
X
i
Y
X
Y
SST = (Y
i
- Y)
2
SSE =(Y
i
- Y
i
)
2
.
SSR = (Y
i
- Y)
2
.
_
_
_
2002 Prentice-Hall, Inc.
Chap 11-15
The ANOVA Table in Excel
ANOVA
df SS MS F
Significance
F
Regression p SSR
MSR
=SSR/p
MSR/MSE
P-value of
the F Test
Residuals n-p-1 SSE
MSE
=SSE/(n-p-1)
Total n-1 SST
2002 Prentice-Hall, Inc.
Chap 11-16
Measures of Variation
The Sum of Squares: Example
ANOVA
df SS MS F Significance F
Regression 1 30380456.12 30380456 81.17909 0.000281201
Residual 5 1871199.595 374239.92
Total 6 32251655.71
Excel Output for Produce Stores
SSR
SSE
Regression (explained) df
Degrees of freedom
Error (residual) df
Total df
SST
2002 Prentice-Hall, Inc.
Chap 11-17
The Coefficient of Determination &
Standard Error of Estimate
Coefficient of Determination
Mengukur proporsi dari variasi Y yang diterangkan
oleh variabel independen X pada model regresi
Standard Error of Estimate:
2
Regression Sum of Squares
Total Sum of Squares
SSR
r
SST
= =
( )
2
1
2 2
n
i
i
YX
Y Y
SSE
S
n n
=
= =
= =
. . 2 d f n =
2002 Prentice-Hall, Inc.
Chap 11-20
Example: Produce Store
Data for Seven Stores:
Estimated
Regression
Equation:
The slope of this
model is 1.487.
Is square footage of
the store affecting its
annual sales?
.
Annual
Store Square Sales
Feet ($000)
1 1,726 3,681
2 1,542 3,395
3 2,816 6,653
4 5,555 9,543
5 1,292 3,318
6 2,208 5,563
7 1,313 3,760
Y
i
= 1636.415 +1.487X
i
2002 Prentice-Hall, Inc.
Chap 11-21
Inferences about the Slope:
t Test Example
H
0
: |
1
= 0
H
1
: |
1
= 0
o = .05
df = 7 - 2 = 5
Critical Value(s):
Test Statistic:
Keputusan:
Kesimpulan:
Terdapat bukti bahwa
ukuran toko (sq foot)
mempengaruhi penjualan
tahunan.
t
0 2.5706 -2.5706
.025
Reject Reject
.025
From Excel Printout
Reject H
0
Coefficients Standard Error t Stat P-value
Intercept 1636.4147 451.4953 3.6244 0.01515
Footage 1.4866 0.1650 9.0099 0.00028
1
b
1
b
S
t
2002 Prentice-Hall, Inc.
Chap 11-22
Inferences about the Slope:
Confidence Interval Example
Confidence Interval Estimate of the Slope:
1
1 2 n b
b t S
=
= =
=
1
= =
2002 Prentice-Hall, Inc.
Chap 11-27
Example: Produce Stores
Reg ressi o n S tati sti cs
M u l t i p l e R 0 . 9 7 0 5 5 7 2
R S q u a r e 0 . 9 4 1 9 8 1 2 9
A d j u s t e d R S q u a r e 0 . 9 3 0 3 7 7 5 4
S t a n d a r d E r r o r 6 1 1 . 7 5 1 5 1 7
O b s e r va t i o n s 7
From Excel Printout
r
Is there any
evidence of a linear
relationship between
the annual sales of a
store and its square
footage at .05 level
of significance?
H
0
:
= 0 (No association)
H
1
: = 0 (Association)
o = .05
df = 7 - 2 = 5
2002 Prentice-Hall, Inc.
Chap 11-28
Example:
Produce Store Solution
0 2.5706 -2.5706
.025
Reject Reject
.025
Critical Value(s):
Conclusion:
There is evidence of a
linear relationship at 5%
level of significance
Decision:
Reject H
0
2
.9706
9.0099
1 .9420
5
2
r
t
r
n
= = =