Articles → MACHINE LEARNING → Multiple Linear Regression Algorithm In Machine Learning

Multiple Linear Regression Algorithm In Machine Learning






Purpose





Matrix Transpose




Picture showing the original matrix to be transposed




Picture showing the matrix after transpose



How Do You Multiply A 3 X 3 Matrix?




Picture showing multiplying two 3x3 matrix




Picture showing the formula of multiplying 2 matrix


Output ElementInput elementsActual CalculationActual Result
c11(a11*b11) + (a12*b21) + (a13*b31)(1*1) + (1*1) + (1*1) 3
c12(a11*b12) + (a12*b21) + (a13*b32)(1*170) + (1*160) + (1*180)510
c13(a11*b13) + (a12*b23) + (a13*b33)(1*25) + (1*30) + (1*28)83
c21(a21*b11) + (a22*b21) + (a23*b31)(170*1) + (160*1) +(180*1)510
c22(a21*b12) + (a22*b22) + (a23*b32)(170*170) + (160*160) +(180*180)86900
c23(a21*b13) + (a22*b23) + (a23*b33)(170*25) + (160*30) +(180*28)14090
c31(a31*b11) + (a32*b21) + (a33*b31)(25*1) + (30*1) + (28*1)83
c32(a31*b12) + (a32*b22) + (a33*b32)(25*170) + (30*160) + (28*180)14090
c33(a31*b13) + (a32*b23) + (a33*b33)(25*25) + (30*30) + (28*28)2309




Picture showing the output of multiplication of two 3X3 matrix



Scenario




HeightAgeWeight
1702565
1603060
1802875



Matrix Creation




Picture showing a 3X3 matrix


Picture showing a 3X1 matrix



Formula




Picture showing the formula of creating the multiple linear regression



Calculation


Picture showing


Picture showing


Picture showing


Picture showing


  1. First row: 1×65+1×60+1×75=200
  2. Second row: 170×65+160×60+180×75=34150
  3. Third row: 25×65+30×60+28×75=5525
Picture showing



Output


Picture showing




Picture showing




Picture showing





Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, May 27, 2025

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250