Professional Documents
Culture Documents
Bivariate analysis seeks to determine the extent to which one variable is related
to another variable.
If one variable is indeed related to another, then information about the first
variable might help us to predict the behavior of the second.
on the other hand, our analysis of these two variables shows absolutely no
relationship between the two, then we might need to discard one from the pair in
favor of a different variable which will be more predictive the other variable's
behavior.
• Where a relationship between variables does exist, we can
characterize each variable as being either dependent or
independent.
COMMON BIVARIATE METHODS
Scatterplots
Covariance
Linear Regression
SCATTERPLOTS
Multiple Regression
Polynomial Regression
MULTIPLE REGRESSION
X1 10 2 4 6 8 7 4 6 7 6
X2 7 3 2 4 6 5 3 3 4 3
Y 23 7 15 17 23 22 10 14 20 19
No Yi X1i X2i X1iYi X2iYi X1iX2i X1i 2 X2i 2
2 7 2 3 14 21 6 4 9
3 15 4 2 60 30 8 16 4
8 14 6 3 84 42 18 36 9
9 20 7 4 140 80 28 49 16
10 19 6 3 114 57 18 36 9
n = 10, k = 2 and (Yi – Ye ) 2 = 44.4888 then the value of Sy,12 2 = (44.4888)/7 = 6.3555
POLYNOMIAL REGRESSION
GENERAL EQUATION
9,497 c = 0,547
and the quadratic parabola regression
equation is:
Ye = - 1,759 + 9,497 X – 0,547 X 2
Xi Yi Xi 2 Xi 3 Xi 4 Xi Yi Xi 2 Yi 2
1 6 1 1 1 6 6
1 8 1 1 1 8 8
1 9 1 1 1 9 9
2 15 4 8 16 30 60
2 12 4 8 16 24 48
2 13 4 8 16 26 52
2 13 4 8 16 26 52
3 23 9 27 81 69 207
3 23 9 27 81 69 207
3 20 9 27 81 60 180
3 25 9 27 81 75 225
4 27 16 64 256 108 432
4 29 16 64 256 118 464
4 30 16 64 256 120 480
5 30 25 125 625 150 750
5 33 25 125 625 165 825
5 32 25 125 625 160 800
Xi Yi Xi 2 Xi 3 Xi 4 Xi Yi Xi 2 Yi 2
6 35 36 125 625 175 875
6 37 36 216 1296 222 1332
6 37 36 216 1296 222 1332
6 36 36 216 1296 216 1296
6 35 36 216 1296 210 1260
7 38 49 343 2401 266 1862
7 36 49 343 2401 252 1764
7 36 49 343 2401 252 1764
8 38 64 512 4096 304 2432
8 36 64 512 4096 288 2304
8 39 64 512 4096 312 2496
9 39 81 729 6561 351 3159
9 38 81 729 6561 342 3078
10 40 100 1000 10000 400 4000
10 38 100 1000 10000 380 3800
10 42 100 1000 10000 420 4200
172 948 1148 8722 71456 5833 41759
• The general equation is
QUBIC
Ye = a + b X + c X 2 + d X 3
PARABOLIC
MODEL • The normal equations have to solve for
Higher the power of X in regression getting the values a, b, c, and d, are
equation, more normal equations have
to solve. The quick solution is by using Σ Yi = an + b Σ Xi + c Σ Xi 2 + d ΣXi 3
matrix algebra
Σ XiYi = a Σ Xi + b Σ Xi 2 + c ΣXi 3 + d ΣXi 4
Σ Xi 2Yi = a Σ Xi 2 + b Σ Xi 3 + c Σ Xi 4 + d ΣXi
5
Σ Xi 3Yi = a Σ Xi 3 + b Σ Xi 4 + c Σ Xi 5 + d ΣXi
6
EXPONENTIAL MODEL
∑ log Yi ∑ Xi
log a = − log b
n n
Data Y
8 12 23 29 33 37 36 36 38 38
9 13 20 30 32 36 36 39 42
13 25 35 35
0.9031 1.0792 1.3617 1.4624 1.5185 1.5682 1.5563 1.5563 1.5798 1.5798
Data Y
Then a = 11.24
• The model of exponential equation is
Ye = (11.24) (1.173) X
• If we little change this equation model in another form as:
Ye = a e bX
12 53.8072 − (29.4519)(22.5134)
𝑏𝑏 = 2
= −0.2856
12 77.7543 − (29.4519)
The regression equation is:
−0.2856
377.6
𝑌𝑌𝑌𝑌 = 377.6 𝑋𝑋 𝑜𝑜𝑜𝑜 𝑌𝑌𝑌𝑌 = 0.2856
𝑋𝑋
• The simple general equation is:
1
𝑌𝑌𝑌𝑌 =
𝑎𝑎𝑏𝑏 𝑥𝑥
𝑎𝑎𝑎𝑎𝑎𝑎 𝑓𝑓𝑓𝑓𝑓𝑓 𝑌𝑌𝑌𝑌 ≠ 0 𝑡𝑡𝑡𝑡𝑡𝑡𝑡 𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒 𝑐𝑐𝑐𝑐𝑐𝑐 𝑏𝑏𝑏𝑏 𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐 𝑡𝑡𝑡𝑡
LOGISTIC MODEL
1
= 𝑎𝑎𝑎𝑎 𝑥𝑥
𝑌𝑌𝑌𝑌
• By logarithmic we get:
1
𝑙𝑙𝑙𝑙𝑙𝑙 = log 𝑎𝑎 + (log 𝑏𝑏)𝑋𝑋
𝑌𝑌𝑌𝑌
• This is a linier equation with variables of X and
log (1/Ye) and the value of a and b can be got
by exponential model by changing the term of
log Y by log (1/Ye)
• The simple general equation of
HYPERBOLIC hyperbolic model is:
MODEL
1 1
𝑌𝑌𝑌𝑌 = 𝑜𝑜𝑜𝑜 = 𝑎𝑎 + 𝑏𝑏𝑏𝑏
𝑎𝑎 + 𝑏𝑏𝑏𝑏 𝑌𝑌𝑌𝑌