0% found this document useful (0 votes)
9 views

Lec 9 Regression Model by Matrices 25042024 071412pm

This document contains information about regression statistics including multiple R, R square, adjusted R square, standard error, ANOVA table with coefficients, standard error, t stat and p-value. Matrices concepts like transpose, multiplication and inverse are also discussed with examples.

Uploaded by

Areeb Arshad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Lec 9 Regression Model by Matrices 25042024 071412pm

This document contains information about regression statistics including multiple R, R square, adjusted R square, standard error, ANOVA table with coefficients, standard error, t stat and p-value. Matrices concepts like transpose, multiplication and inverse are also discussed with examples.

Uploaded by

Areeb Arshad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Y X1 X2

5 1 1 XT 1 1 1 1
20 1 3 1 3 6 8
40 1 6
65 1 8 XTX 4 18
Y X 18 110
B's=[X X] .[X Y] T -1 T

X 4,2 [XTX]-1 0.948276 -0.155172 XTY


Y 4,1 -0.155172 0.034483
XT 2,4
XTX 2,4;4,2=2,2 [XTX]-1.[XTY] -4.741379
[X X] T -1
2,2 8.275862
XY T
2,4;4,1=2,1
[XTX]-1.[XTY] 2,2;2,1=2,1 -4.741379 {=MMULT(MINVERSE(MMULT(TRANSPOSE
8.275862
130
825

(MINVERSE(MMULT(TRANSPOSE(B2:C5),B2:C5)),MMULT(TRANSPOSE(B2:C5),A2:A5))}
Sales Adv SUMMARY OUTPUT
Y X
5 1 Regression Statistics
20 3 Multiple R 0.990375
40 6 R Square 0.980843
65 8 Adjusted R 0.971264
Standard E 4.404152
Observatio 4

ANOVA
df SS MS F Significance F
Regression 1 1986.207 1986.207 102.4 0.009625
Residual 2 38.7931 19.39655
Total 3 2025

Coefficients
Standard Error t Stat P-value Lower 95%
Intercept -4.741379 4.288739 -1.105542 0.384118 -23.19433
X 8.275862 0.81783 10.11929 0.009625 4.757022
Significance F

Upper 95%Lower 95.0%


Upper 95.0%
13.71158 -23.19433 13.71158
11.7947 4.757022 11.7947
Matrices Matrix Transpose
Rows become Columns and Columns become Row
Matrix multiplication
No. of columns of 1st matrix=No. of row of second matrix A 4,2
A T
2,4
DimensionRow x Colums
1 3
A 2 4 4,2
3 2 A*B
4 1 4,2;3,1? multiplication not possible

3 2 2,2
4 1 8 12 4
4 6 2
4 3,1 B*C ? 2 3 1
B 2 3,1;1,3=3,3
1
C C*B
2 3 1 1,3 1,3;3,1=1,1

4 1,1 scaler
Matrix Inverese
mns and Columns become Rows

1 2 3 4
3 4 2 1
1 2 0 2 4 9
A 7 3B 6 3 0 2
3,2 1 6 2,4

AB ` 12 8 4 13
3,2;2,4=3,4 18 23 28 69
36 20 4 21
2 1
A 4 6
Inverse of A
A-1 0.75 -0.125
-0.5 0.25

3 6
A 2 4
Inverse of A
A-1 Err:502 Err:502
Err:502 Err:502

You might also like