Y=XB. Y and X is known.
i made a martix X ,first column is 1. next column is variable value. (RSM model . eg x1 x2 x3 x1^2 x1x2 x1x3 x2^2 x2x3 x3^2)
the column 2-10 isn;t normlized.
I use JMP fit this un-normlized X matrix and select marco/RSM.
the first step is use all the parameter and i can get the linear regression result
R-square is 0.91
if i use this un-normlized X matrix for linear regression. -- in python.
serval method.
1. pinv(x)*Y
2. pin(x.t*x)x.t*Y
3. lstsq(mat_X,mat_Y.T)
4. sm.OLS(mat_Y, mat_X)
the R-square result is about 0.92 which is similar to jmp reuslt.
if i normlized this X martix.
mat_X[:,1:]=np.around(2*(mat_X[:,1:]-mat_X[:,1:].mean(0))/(np.ptp(mat_X[:,1:],axis=0)))
the R-square result is about 0.87 .much smaller than JMP result.
so i wonder to know if JMP normlize the data during it's fit model...
According to DOE analysis . this normlization is necessary...