OLEH
ZULAELA
Tujuan:
•Menyelidiki bentuk/pola hubungan antara Y dengan X.
•Meramalkan/mengestimasi/menduga mean atau rata-rata dari Y populasi
berdasarkan X yang diberikan.
Case Summariesa
Scatter Plot
Coefficientsa
Model Unstandardized Coefficients Standardized t Sig.
Coefficients
Untuk seorang anak yang berumur 18 bulan, maka berat anak tersebut dapat
diprediksi sebesar 12.151 kg
y x xy x2 y2
. . . . .
. . . . .
Σy=213 Σx=319 Σxy=4741 Σx2=7455 Σy2=3081
𝑦ො = 𝑏0 + 𝑏1 𝑥
𝑛 σ 𝑥𝑦 − σ 𝑥 σ 𝑦
𝑏1 =
𝑛 σ 𝑥 2 − (σ 𝑥)2
𝑏0 = 𝑦ത − 𝑏1 𝑥ҧ
σ𝑦
𝑦ത =
𝑛
σ𝑥
𝑥ҧ =
𝑛
Analisis Korelasi
n xy − x y
r=
[n x 2 − ( x) 2 ][n y 2 − ( y ) 2 ]
Spearman Correlation
Correlations
Berat Badan Umur
1 15 2 21 male
2 15 0 18 male
3 21 3 22 male
4 28 0 24 male
5 30 1 25 male
6 35 4 25 female
7 40 2 26 female
8 35 2 34 female
9 30 1 25 male
10 45 2 38 female
11 50 3 44 female
12 60 4 51 female
13 45 4 39 female
14 60 3 54 female
15 50 4 55 female
Total N 15 15 15 15
a. Limited to first 100 cases.
ANOVAa
Model Sum of Squares df Mean Square F Sig.
Coefficientsa
Model Unstandardized Standardized t Sig.
Coefficients Coefficients
Model Summary
Model R R Square Adjusted R Square Std. Error of the
Estimate
𝑌 = 𝑏0 + 𝑏1 𝑋1 + 𝑏2 𝑋2 + 𝑏3 𝑋3
Scatter Plot
AGRP * CHD Crosstabulation
CHD
Yes
Mean
No (proportion) Total
1 Count 9 1 10
% within AGRP 90.0% 10.0% 100.0%
2 Count 13 2 15
% within AGRP 86.7% 13.3% 100.0%
3 Count 9 3 12
% within AGRP 75.0% 25.0% 100.0%
4 Count 10 5 15
AGE_GROUP % within AGRP 66.7% 33.3% 100.0%
5 Count 7 6 13
% within AGRP 53.8% 46.2% 100.0%
6 Count 3 5 8
% within AGRP 37.5% 62.5% 100.0%
7 Count 4 13 17
% within AGRP 23.5% 76.5% 100.0%
8 Count 2 8 10
% within AGRP 20.0% 80.0% 100.0%
Count 57 43 100
Total % within AGRP 57.0% 43.0% 100.0%
Scatter Plot
Fungsi logistik:
f(z)
z
Model logistik dapat diperoleh dari fungsi logistik dengan mengganti
g ( x)
e 1
π = P(Y = 1) = E (Y = 1 | X i = xi ) = = − g ( x)
1+ e g ( x)
1+ e
dengan
π
g ( x) = ln = β0 + β1 x + ε
1 − π
Variables in the Equation
Lower Upper
1
𝑃 𝑌 = 1 = 𝑃 𝐶𝐻𝐷 =
1 + 𝑒 −(−5.309 + 0.111 AGE)
Jika seseorang mempunyai umur berturut-turut 50 tahun, 60 tahun dan 70
tahun, maka resiko atau probabilitas terkena CHD sebesar 0.560, 0.794,
dan 0.921
𝑂𝑅 = exp( 𝛽𝑖 ) = exp(0.111) = 1.117
Lower Upper
Constant
Lower Upper
21.003 2 .000
AGE_1_2_3
atau 1
P(Y = 1) = − ( 0 + 1 X 1 + 2 X 2 +......+ p X p )
1+ e
Transformasi logit dinyatakan sebagai:
P (Y = 1)
ln[ ] = 0 + 1 X 1 + 2 X 2 + ..... + p X p
1 − P (Y = 1)
OR = exp( i )
OR = exp( . i )
1
P (Y = 1) =
1 + e −(1.295 −.024 AGE −.014 LWT +1.004 RACE (1) +.433 RACE ( 2 ) −.049 FTV )